orbitchat 3.5.4 → 3.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/dist/assets/ChartRenderer-CRkKwoFL.js +78 -0
  2. package/dist/assets/{MermaidRenderer-qzVgEt2x.js → MermaidRenderer-B3IpBAYI.js} +6 -6
  3. package/dist/assets/{MusicRenderer-D7rL8A6g.js → MusicRenderer--TIzwyJe.js} +2 -2
  4. package/dist/assets/{SVGRenderer-BEKEOm3s.js → SVGRenderer-B1jdoJ4P.js} +1 -1
  5. package/dist/assets/{_basePickBy-DjEbiWID.js → _basePickBy-DE8kKsHR.js} +1 -1
  6. package/dist/assets/{_baseUniq-BJ_CGYjc.js → _baseUniq-Clue9vf0.js} +1 -1
  7. package/dist/assets/{architectureDiagram-2XIMDMQ5-Os-EdwOr.js → architectureDiagram-2XIMDMQ5-BGF7kK68.js} +1 -1
  8. package/dist/assets/{blockDiagram-WCTKOSBZ-dOlyr0sT.js → blockDiagram-WCTKOSBZ-Byd2JD88.js} +1 -1
  9. package/dist/assets/{c4Diagram-IC4MRINW-Bo18Ckoj.js → c4Diagram-IC4MRINW-BdJh4j3j.js} +1 -1
  10. package/dist/assets/channel-ByGCPEwQ.js +1 -0
  11. package/dist/assets/{chunk-4BX2VUAB-Bd4J2y84.js → chunk-4BX2VUAB-BibQqD9y.js} +1 -1
  12. package/dist/assets/{chunk-55IACEB6-D31lfA_a.js → chunk-55IACEB6-gjZyNH_o.js} +1 -1
  13. package/dist/assets/{chunk-FMBD7UC4-D7f0j4zs.js → chunk-FMBD7UC4-DX6LH-cn.js} +1 -1
  14. package/dist/assets/{chunk-JSJVCQXG-i60xlQfX.js → chunk-JSJVCQXG-CZVNc-8N.js} +1 -1
  15. package/dist/assets/{chunk-KX2RTZJC-DOMFBwQb.js → chunk-KX2RTZJC-C1_7Uv3y.js} +1 -1
  16. package/dist/assets/{chunk-NQ4KR5QH-Z6JCXOAb.js → chunk-NQ4KR5QH-C4mTw-1X.js} +1 -1
  17. package/dist/assets/{chunk-QZHKN3VN-EGcB7IW2.js → chunk-QZHKN3VN-p28FY_qp.js} +1 -1
  18. package/dist/assets/{chunk-WL4C6EOR-Dtoe_nFJ.js → chunk-WL4C6EOR-VlgOCclu.js} +1 -1
  19. package/dist/assets/classDiagram-VBA2DB6C-CkkfdRp_.js +1 -0
  20. package/dist/assets/classDiagram-v2-RAHNMMFH-CkkfdRp_.js +1 -0
  21. package/dist/assets/clone-B26JPn0A.js +1 -0
  22. package/dist/assets/{cose-bilkent-S5V4N54A-DwaP6XDY.js → cose-bilkent-S5V4N54A-CZ3_3aGv.js} +1 -1
  23. package/dist/assets/{dagre-KLK3FWXG-3iS8nwUM.js → dagre-KLK3FWXG-C1dn84St.js} +1 -1
  24. package/dist/assets/diagram-E7M64L7V-CqZmtrXE.js +24 -0
  25. package/dist/assets/{diagram-IFDJBPK2-CeCAfVij.js → diagram-IFDJBPK2-Da_Jhz3F.js} +1 -1
  26. package/dist/assets/{diagram-P4PSJMXO-mjl_7jtT.js → diagram-P4PSJMXO-D1uOY55F.js} +1 -1
  27. package/dist/assets/{erDiagram-INFDFZHY-Dl81qwyk.js → erDiagram-INFDFZHY-BJ_9cjPR.js} +1 -1
  28. package/dist/assets/{flowDiagram-PKNHOUZH-Du4oI4VY.js → flowDiagram-PKNHOUZH-C7gcNiTk.js} +1 -1
  29. package/dist/assets/ganttDiagram-A5KZAMGK-BTMVujZd.js +292 -0
  30. package/dist/assets/{gitGraphDiagram-K3NZZRJ6-Cju5-Jsp.js → gitGraphDiagram-K3NZZRJ6-C023eQi8.js} +1 -1
  31. package/dist/assets/{graph-BRWBJHvn.js → graph-RUzlorf7.js} +1 -1
  32. package/dist/assets/{index-O3Qu_V1p.js → index-BQilf7Vz.js} +1 -1
  33. package/dist/assets/index-Bw59sLto.js +621 -0
  34. package/dist/assets/index-CRisEKFT.css +1 -0
  35. package/dist/assets/{infoDiagram-LFFYTUFH-BtIElN3U.js → infoDiagram-LFFYTUFH-fpMB_9Of.js} +1 -1
  36. package/dist/assets/{ishikawaDiagram-PHBUUO56-BKL_bByI.js → ishikawaDiagram-PHBUUO56-774l_BQB.js} +1 -1
  37. package/dist/assets/{journeyDiagram-4ABVD52K-B7azS9rj.js → journeyDiagram-4ABVD52K-BDRZkTWt.js} +1 -1
  38. package/dist/assets/{kanban-definition-K7BYSVSG-jcg_PkQS.js → kanban-definition-K7BYSVSG-08jdhaPr.js} +1 -1
  39. package/dist/assets/{layout-M6cSIos1.js → layout-Bi6OqCvS.js} +1 -1
  40. package/dist/assets/linear-BmIPqizB.js +1 -0
  41. package/dist/assets/{mindmap-definition-YRQLILUH-Cf0IOJrc.js → mindmap-definition-YRQLILUH-BMltpbO_.js} +1 -1
  42. package/dist/assets/{pieDiagram-SKSYHLDU-DZkXQWf1.js → pieDiagram-SKSYHLDU-BqWjMa3F.js} +1 -1
  43. package/dist/assets/{purify.es-DIZLy5JB.js → purify.es-Bc-0F0ao.js} +1 -1
  44. package/dist/assets/{quadrantDiagram-337W2JSQ-CBv4NF9N.js → quadrantDiagram-337W2JSQ-BWS6P7V9.js} +4 -4
  45. package/dist/assets/{requirementDiagram-Z7DCOOCP-DBFzO_Ft.js → requirementDiagram-Z7DCOOCP-DundWNeg.js} +1 -1
  46. package/dist/assets/{sankeyDiagram-WA2Y5GQK-CSP7f-pA.js → sankeyDiagram-WA2Y5GQK-Bfy6vaBy.js} +1 -1
  47. package/dist/assets/{sequenceDiagram-2WXFIKYE-BTC0RRGS.js → sequenceDiagram-2WXFIKYE-DzPaOnGU.js} +1 -1
  48. package/dist/assets/{stateDiagram-RAJIS63D-CAh_mwJy.js → stateDiagram-RAJIS63D-Dhx9f_zH.js} +1 -1
  49. package/dist/assets/stateDiagram-v2-FVOUBMTO-DkeilTKm.js +1 -0
  50. package/dist/assets/time-DEO-mtw_.js +1 -0
  51. package/dist/assets/{timeline-definition-YZTLITO2-BLdeBeSr.js → timeline-definition-YZTLITO2-DKbWbxeI.js} +1 -1
  52. package/dist/assets/{treemap-KZPCXAKY-LlRSRQLF.js → treemap-KZPCXAKY-BB_bxQV0.js} +1 -1
  53. package/dist/assets/{vennDiagram-LZ73GAT5-_Bk0EQ8g.js → vennDiagram-LZ73GAT5-DLVWYof0.js} +1 -1
  54. package/dist/assets/{xychartDiagram-JWTSCODW-CB8cW01V.js → xychartDiagram-JWTSCODW-BlbcnWY9.js} +2 -2
  55. package/dist/index.html +2 -2
  56. package/package.json +1 -1
  57. package/dist/assets/ChartRenderer-BK9VmJeQ.js +0 -80
  58. package/dist/assets/channel-u3m7-f_Y.js +0 -1
  59. package/dist/assets/classDiagram-VBA2DB6C-CK4JEESe.js +0 -1
  60. package/dist/assets/classDiagram-v2-RAHNMMFH-CK4JEESe.js +0 -1
  61. package/dist/assets/clone-lXpWKNyV.js +0 -1
  62. package/dist/assets/defaultLocale-DX6XiGOO.js +0 -1
  63. package/dist/assets/diagram-E7M64L7V-DWn04JQu.js +0 -24
  64. package/dist/assets/ganttDiagram-A5KZAMGK-B4O-QXYi.js +0 -292
  65. package/dist/assets/index-BWh0EToq.css +0 -1
  66. package/dist/assets/index-C8kIMiLQ.js +0 -620
  67. package/dist/assets/linear-CKzVTQ0r.js +0 -1
  68. package/dist/assets/stateDiagram-v2-FVOUBMTO-DnFZfFm4.js +0 -1
  69. package/dist/assets/time-h5EapSZu.js +0 -1
@@ -1,4 +1,4 @@
1
- import{_ as b,D as u,H as B,e as C,l as w,b as S,a as D,p as T,q as E,g as F,s as P,E as z,F as A,y as W}from"./MermaidRenderer-qzVgEt2x.js";import{p as _}from"./chunk-4BX2VUAB-Bd4J2y84.js";import{p as N}from"./treemap-KZPCXAKY-LlRSRQLF.js";import"./index-C8kIMiLQ.js";import"./purify.es-DIZLy5JB.js";import"./step-EjIQ8UIn.js";import"./_baseUniq-BJ_CGYjc.js";import"./_basePickBy-DjEbiWID.js";import"./clone-lXpWKNyV.js";var L=z.packet,m,v=(m=class{constructor(){this.packet=[],this.setAccTitle=S,this.getAccTitle=D,this.setDiagramTitle=T,this.getDiagramTitle=E,this.getAccDescription=F,this.setAccDescription=P}getConfig(){const t=u({...L,...A().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){W(),this.packet=[]}},b(m,"PacketDB"),m),M=1e4,Y=b((e,t)=>{_(e,t);let o=-1,r=[],n=1;const{bitsPerRow:l}=t.getConfig();for(let{start:a,end:i,bits:d,label:c}of e.blocks){if(a!==void 0&&i!==void 0&&i<a)throw new Error(`Packet block ${a} - ${i} is invalid. End must be greater than start.`);if(a??(a=o+1),a!==o+1)throw new Error(`Packet block ${a} - ${i??a} is not contiguous. It should start from ${o+1}.`);if(d===0)throw new Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);for(i??(i=a+(d??1)-1),d??(d=i-a+1),o=i,w.debug(`Packet block ${a} - ${o} with label ${c}`);r.length<=l+1&&t.getPacket().length<M;){const[p,s]=H({start:a,end:i,bits:d,label:c},n,l);if(r.push(p),p.end+1===n*l&&(t.pushWord(r),r=[],n++),!s)break;({start:a,end:i,bits:d,label:c}=s)}}t.pushWord(r)},"populate"),H=b((e,t,o)=>{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*o)return[e,void 0];const r=t*o-1,n=t*o;return[{start:e.start,end:r,label:e.label,bits:r-e.start},{start:n,end:e.end,label:e.label,bits:e.end-n}]},"getNextFittingBlock"),x={parser:{yy:void 0},parse:b(async e=>{var r;const t=await N("packet",e),o=(r=x.parser)==null?void 0:r.yy;if(!(o instanceof v))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");w.debug(t),Y(t,o)},"parse")},I=b((e,t,o,r)=>{const n=r.db,l=n.getConfig(),{rowHeight:a,paddingY:i,bitWidth:d,bitsPerRow:c}=l,p=n.getPacket(),s=n.getDiagramTitle(),h=a+i,g=h*(p.length+1)-(s?0:a),k=d*c+2,f=B(t);f.attr("viewBox",`0 0 ${k} ${g}`),C(f,g,k,l.useMaxWidth);for(const[y,$]of p.entries())O(f,$,y,l);f.append("text").text(s).attr("x",k/2).attr("y",g-h/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),O=b((e,t,o,{rowHeight:r,paddingX:n,paddingY:l,bitWidth:a,bitsPerRow:i,showBits:d})=>{const c=e.append("g"),p=o*(r+l)+l;for(const s of t){const h=s.start%i*a+1,g=(s.end-s.start+1)*a-n;if(c.append("rect").attr("x",h).attr("y",p).attr("width",g).attr("height",r).attr("class","packetBlock"),c.append("text").attr("x",h+g/2).attr("y",p+r/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(s.label),!d)continue;const k=s.end===s.start,f=p-2;c.append("text").attr("x",h+(k?g/2:0)).attr("y",f).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",k?"middle":"start").text(s.start),k||c.append("text").attr("x",h+g).attr("y",f).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(s.end)}},"drawWord"),j={draw:I},q={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},G=b(({packet:e}={})=>{const t=u(q,e);return`
1
+ import{_ as b,D as u,H as B,e as C,l as w,b as S,a as D,p as T,q as E,g as F,s as P,E as z,F as A,y as W}from"./MermaidRenderer-B3IpBAYI.js";import{p as _}from"./chunk-4BX2VUAB-BibQqD9y.js";import{p as N}from"./treemap-KZPCXAKY-BB_bxQV0.js";import"./index-Bw59sLto.js";import"./purify.es-Bc-0F0ao.js";import"./step-EjIQ8UIn.js";import"./_baseUniq-Clue9vf0.js";import"./_basePickBy-DE8kKsHR.js";import"./clone-B26JPn0A.js";var L=z.packet,m,v=(m=class{constructor(){this.packet=[],this.setAccTitle=S,this.getAccTitle=D,this.setDiagramTitle=T,this.getDiagramTitle=E,this.getAccDescription=F,this.setAccDescription=P}getConfig(){const t=u({...L,...A().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){W(),this.packet=[]}},b(m,"PacketDB"),m),M=1e4,Y=b((e,t)=>{_(e,t);let o=-1,r=[],n=1;const{bitsPerRow:l}=t.getConfig();for(let{start:a,end:i,bits:d,label:c}of e.blocks){if(a!==void 0&&i!==void 0&&i<a)throw new Error(`Packet block ${a} - ${i} is invalid. End must be greater than start.`);if(a??(a=o+1),a!==o+1)throw new Error(`Packet block ${a} - ${i??a} is not contiguous. It should start from ${o+1}.`);if(d===0)throw new Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);for(i??(i=a+(d??1)-1),d??(d=i-a+1),o=i,w.debug(`Packet block ${a} - ${o} with label ${c}`);r.length<=l+1&&t.getPacket().length<M;){const[p,s]=H({start:a,end:i,bits:d,label:c},n,l);if(r.push(p),p.end+1===n*l&&(t.pushWord(r),r=[],n++),!s)break;({start:a,end:i,bits:d,label:c}=s)}}t.pushWord(r)},"populate"),H=b((e,t,o)=>{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*o)return[e,void 0];const r=t*o-1,n=t*o;return[{start:e.start,end:r,label:e.label,bits:r-e.start},{start:n,end:e.end,label:e.label,bits:e.end-n}]},"getNextFittingBlock"),x={parser:{yy:void 0},parse:b(async e=>{var r;const t=await N("packet",e),o=(r=x.parser)==null?void 0:r.yy;if(!(o instanceof v))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");w.debug(t),Y(t,o)},"parse")},I=b((e,t,o,r)=>{const n=r.db,l=n.getConfig(),{rowHeight:a,paddingY:i,bitWidth:d,bitsPerRow:c}=l,p=n.getPacket(),s=n.getDiagramTitle(),h=a+i,g=h*(p.length+1)-(s?0:a),k=d*c+2,f=B(t);f.attr("viewBox",`0 0 ${k} ${g}`),C(f,g,k,l.useMaxWidth);for(const[y,$]of p.entries())O(f,$,y,l);f.append("text").text(s).attr("x",k/2).attr("y",g-h/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),O=b((e,t,o,{rowHeight:r,paddingX:n,paddingY:l,bitWidth:a,bitsPerRow:i,showBits:d})=>{const c=e.append("g"),p=o*(r+l)+l;for(const s of t){const h=s.start%i*a+1,g=(s.end-s.start+1)*a-n;if(c.append("rect").attr("x",h).attr("y",p).attr("width",g).attr("height",r).attr("class","packetBlock"),c.append("text").attr("x",h+g/2).attr("y",p+r/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(s.label),!d)continue;const k=s.end===s.start,f=p-2;c.append("text").attr("x",h+(k?g/2:0)).attr("y",f).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",k?"middle":"start").text(s.start),k||c.append("text").attr("x",h+g).attr("y",f).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(s.end)}},"drawWord"),j={draw:I},q={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},G=b(({packet:e}={})=>{const t=u(q,e);return`
2
2
  .packetByte {
3
3
  font-size: ${t.byteFontSize};
4
4
  }
@@ -1,4 +1,4 @@
1
- import{g as Vt}from"./chunk-55IACEB6-D31lfA_a.js";import{s as Mt}from"./chunk-KX2RTZJC-DOMFBwQb.js";import{_ as u,b as Bt,a as Ft,s as Yt,g as Pt,p as zt,q as Gt,c as it,l as L,y as Kt,x as Ut,A as Zt,B as jt,o as Wt,r as Qt,d as Xt,u as qt}from"./MermaidRenderer-qzVgEt2x.js";import{c as Ht}from"./channel-u3m7-f_Y.js";import"./index-C8kIMiLQ.js";import"./purify.es-DIZLy5JB.js";import"./step-EjIQ8UIn.js";var _t=function(){var s=u(function(R,n,a,c){for(a=a||{},c=R.length;c--;a[R[c]]=n);return a},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52],h=[1,10],d=[1,11],o=[1,12],l=[1,13],f=[1,23],_=[1,24],E=[1,25],V=[1,26],W=[1,27],S=[1,19],rt=[1,28],Q=[1,29],T=[1,20],I=[1,18],M=[1,21],B=[1,22],nt=[1,36],at=[1,37],ct=[1,38],lt=[1,39],ot=[1,40],F=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52,65,66,67,68,69],O=[1,45],N=[1,46],Y=[1,55],P=[40,48,50,51,52,70,71],z=[1,66],G=[1,64],A=[1,61],K=[1,65],U=[1,67],X=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,51,52,65,66,67,68,69],gt=[65,66,67,68,69],bt=[1,84],mt=[1,83],Et=[1,81],kt=[1,82],St=[6,10,42,47],v=[6,10,13,41,42,47,48,49],q=[1,92],H=[1,91],J=[1,90],Z=[19,58],Tt=[1,101],Ot=[1,100],ht=[19,58,60,62],ut={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,DECIMAL_NUM:51,ENTITY_ONE:52,attribute:53,attributeType:54,attributeName:55,attributeKeyTypeList:56,attributeComment:57,ATTRIBUTE_WORD:58,attributeKeyType:59,",":60,ATTRIBUTE_KEY:61,COMMENT:62,cardinality:63,relType:64,ZERO_OR_ONE:65,ZERO_OR_MORE:66,ONE_OR_MORE:67,ONLY_ONE:68,MD_PARENT:69,NON_IDENTIFYING:70,IDENTIFYING:71,WORD:72,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",51:"DECIMAL_NUM",52:"ENTITY_ONE",58:"ATTRIBUTE_WORD",60:",",61:"ATTRIBUTE_KEY",62:"COMMENT",65:"ZERO_OR_ONE",66:"ZERO_OR_MORE",67:"ONE_OR_MORE",68:"ONLY_ONE",69:"MD_PARENT",70:"NON_IDENTIFYING",71:"IDENTIFYING",72:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[11,1],[11,1],[11,1],[18,1],[18,2],[53,2],[53,3],[53,3],[53,4],[54,1],[55,1],[56,1],[56,3],[59,1],[57,1],[12,3],[63,1],[63,1],[63,1],[63,1],[63,1],[64,1],[64,1],[14,1],[14,1],[14,1]],performAction:u(function(n,a,c,r,p,t,j){var e=t.length-1;switch(p){case 1:break;case 2:this.$=[];break;case 3:t[e-1].push(t[e]),this.$=t[e-1];break;case 4:case 5:this.$=t[e];break;case 6:case 7:this.$=[];break;case 8:r.addEntity(t[e-4]),r.addEntity(t[e-2]),r.addRelationship(t[e-4],t[e],t[e-2],t[e-3]);break;case 9:r.addEntity(t[e-8]),r.addEntity(t[e-4]),r.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),r.setClass([t[e-8]],t[e-6]),r.setClass([t[e-4]],t[e-2]);break;case 10:r.addEntity(t[e-6]),r.addEntity(t[e-2]),r.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),r.setClass([t[e-6]],t[e-4]);break;case 11:r.addEntity(t[e-6]),r.addEntity(t[e-4]),r.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),r.setClass([t[e-4]],t[e-2]);break;case 12:r.addEntity(t[e-3]),r.addAttributes(t[e-3],t[e-1]);break;case 13:r.addEntity(t[e-5]),r.addAttributes(t[e-5],t[e-1]),r.setClass([t[e-5]],t[e-3]);break;case 14:r.addEntity(t[e-2]);break;case 15:r.addEntity(t[e-4]),r.setClass([t[e-4]],t[e-2]);break;case 16:r.addEntity(t[e]);break;case 17:r.addEntity(t[e-2]),r.setClass([t[e-2]],t[e]);break;case 18:r.addEntity(t[e-6],t[e-4]),r.addAttributes(t[e-6],t[e-1]);break;case 19:r.addEntity(t[e-8],t[e-6]),r.addAttributes(t[e-8],t[e-1]),r.setClass([t[e-8]],t[e-3]);break;case 20:r.addEntity(t[e-5],t[e-3]);break;case 21:r.addEntity(t[e-7],t[e-5]),r.setClass([t[e-7]],t[e-2]);break;case 22:r.addEntity(t[e-3],t[e-1]);break;case 23:r.addEntity(t[e-5],t[e-3]),r.setClass([t[e-5]],t[e]);break;case 24:case 25:this.$=t[e].trim(),r.setAccTitle(this.$);break;case 26:case 27:this.$=t[e].trim(),r.setAccDescription(this.$);break;case 32:r.setDirection("TB");break;case 33:r.setDirection("BT");break;case 34:r.setDirection("RL");break;case 35:r.setDirection("LR");break;case 36:this.$=t[e-3],r.addClass(t[e-2],t[e-1]);break;case 37:case 38:case 59:case 67:this.$=[t[e]];break;case 39:case 40:this.$=t[e-2].concat([t[e]]);break;case 41:this.$=t[e-2],r.setClass(t[e-1],t[e]);break;case 42:this.$=t[e-3],r.addCssStyles(t[e-2],t[e-1]);break;case 43:this.$=[t[e]];break;case 44:t[e-2].push(t[e]),this.$=t[e-2];break;case 46:this.$=t[e-1]+t[e];break;case 54:case 79:case 80:this.$=t[e].replace(/"/g,"");break;case 55:case 56:case 57:case 58:case 81:this.$=t[e];break;case 60:t[e].push(t[e-1]),this.$=t[e];break;case 61:this.$={type:t[e-1],name:t[e]};break;case 62:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 63:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 64:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 65:case 66:case 69:this.$=t[e];break;case 68:t[e-2].push(t[e]),this.$=t[e-2];break;case 70:this.$=t[e].replace(/"/g,"");break;case 71:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 72:this.$=r.Cardinality.ZERO_OR_ONE;break;case 73:this.$=r.Cardinality.ZERO_OR_MORE;break;case 74:this.$=r.Cardinality.ONE_OR_MORE;break;case 75:this.$=r.Cardinality.ONLY_ONE;break;case 76:this.$=r.Cardinality.MD_PARENT;break;case 77:this.$=r.Identification.NON_IDENTIFYING;break;case 78:this.$=r.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:h,24:d,26:o,28:l,29:14,30:15,31:16,32:17,33:f,34:_,35:E,36:V,37:W,40:S,43:rt,44:Q,48:T,50:I,51:M,52:B},s(i,[2,7],{1:[2,1]}),s(i,[2,3]),{9:30,11:9,22:h,24:d,26:o,28:l,29:14,30:15,31:16,32:17,33:f,34:_,35:E,36:V,37:W,40:S,43:rt,44:Q,48:T,50:I,51:M,52:B},s(i,[2,5]),s(i,[2,6]),s(i,[2,16],{12:31,63:35,15:[1,32],17:[1,33],20:[1,34],65:nt,66:at,67:ct,68:lt,69:ot}),{23:[1,41]},{25:[1,42]},{27:[1,43]},s(i,[2,27]),s(i,[2,28]),s(i,[2,29]),s(i,[2,30]),s(i,[2,31]),s(F,[2,54]),s(F,[2,55]),s(F,[2,56]),s(F,[2,57]),s(F,[2,58]),s(i,[2,32]),s(i,[2,33]),s(i,[2,34]),s(i,[2,35]),{16:44,40:O,41:N},{16:47,40:O,41:N},{16:48,40:O,41:N},s(i,[2,4]),{11:49,40:S,48:T,50:I,51:M,52:B},{16:50,40:O,41:N},{18:51,19:[1,52],53:53,54:54,58:Y},{11:56,40:S,48:T,50:I,51:M,52:B},{64:57,70:[1,58],71:[1,59]},s(P,[2,72]),s(P,[2,73]),s(P,[2,74]),s(P,[2,75]),s(P,[2,76]),s(i,[2,24]),s(i,[2,25]),s(i,[2,26]),{13:z,38:60,41:G,42:A,45:62,46:63,48:K,49:U},s(X,[2,37]),s(X,[2,38]),{16:68,40:O,41:N,42:A},{13:z,38:69,41:G,42:A,45:62,46:63,48:K,49:U},{13:[1,70],15:[1,71]},s(i,[2,17],{63:35,12:72,17:[1,73],42:A,65:nt,66:at,67:ct,68:lt,69:ot}),{19:[1,74]},s(i,[2,14]),{18:75,19:[2,59],53:53,54:54,58:Y},{55:76,58:[1,77]},{58:[2,65]},{21:[1,78]},{63:79,65:nt,66:at,67:ct,68:lt,69:ot},s(gt,[2,77]),s(gt,[2,78]),{6:bt,10:mt,39:80,42:Et,47:kt},{40:[1,85],41:[1,86]},s(St,[2,43],{46:87,13:z,41:G,48:K,49:U}),s(v,[2,45]),s(v,[2,50]),s(v,[2,51]),s(v,[2,52]),s(v,[2,53]),s(i,[2,41],{42:A}),{6:bt,10:mt,39:88,42:Et,47:kt},{14:89,40:q,50:H,72:J},{16:93,40:O,41:N},{11:94,40:S,48:T,50:I,51:M,52:B},{18:95,19:[1,96],53:53,54:54,58:Y},s(i,[2,12]),{19:[2,60]},s(Z,[2,61],{56:97,57:98,59:99,61:Tt,62:Ot}),s([19,58,61,62],[2,66]),s(i,[2,22],{15:[1,103],17:[1,102]}),s([40,48,50,51,52],[2,71]),s(i,[2,36]),{13:z,41:G,45:104,46:63,48:K,49:U},s(i,[2,47]),s(i,[2,48]),s(i,[2,49]),s(X,[2,39]),s(X,[2,40]),s(v,[2,46]),s(i,[2,42]),s(i,[2,8]),s(i,[2,79]),s(i,[2,80]),s(i,[2,81]),{13:[1,105],42:A},{13:[1,107],15:[1,106]},{19:[1,108]},s(i,[2,15]),s(Z,[2,62],{57:109,60:[1,110],62:Ot}),s(Z,[2,63]),s(ht,[2,67]),s(Z,[2,70]),s(ht,[2,69]),{18:111,19:[1,112],53:53,54:54,58:Y},{16:113,40:O,41:N},s(St,[2,44],{46:87,13:z,41:G,48:K,49:U}),{14:114,40:q,50:H,72:J},{16:115,40:O,41:N},{14:116,40:q,50:H,72:J},s(i,[2,13]),s(Z,[2,64]),{59:117,61:Tt},{19:[1,118]},s(i,[2,20]),s(i,[2,23],{17:[1,119],42:A}),s(i,[2,11]),{13:[1,120],42:A},s(i,[2,10]),s(ht,[2,68]),s(i,[2,18]),{18:121,19:[1,122],53:53,54:54,58:Y},{14:123,40:q,50:H,72:J},{19:[1,124]},s(i,[2,21]),s(i,[2,9]),s(i,[2,19])],defaultActions:{55:[2,65],75:[2,60]},parseError:u(function(n,a){if(a.recoverable)this.trace(n);else{var c=new Error(n);throw c.hash=a,c}},"parseError"),parse:u(function(n){var a=this,c=[0],r=[],p=[null],t=[],j=this.table,e="",tt=0,Nt=0,vt=2,At=1,Dt=t.slice.call(arguments,1),y=Object.create(this.lexer),x={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(x.yy[dt]=this.yy[dt]);y.setInput(n,x.yy),x.yy.lexer=y,x.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var pt=y.yylloc;t.push(pt);var Lt=y.options&&y.options.ranges;typeof x.yy.parseError=="function"?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function wt(b){c.length=c.length-2*b,p.length=p.length-b,t.length=t.length-b}u(wt,"popStack");function Rt(){var b;return b=r.pop()||y.lex()||At,typeof b!="number"&&(b instanceof Array&&(r=b,b=r.pop()),b=a.symbols_[b]||b),b}u(Rt,"lex");for(var g,C,m,yt,D={},et,k,It,st;;){if(C=c[c.length-1],this.defaultActions[C]?m=this.defaultActions[C]:((g===null||typeof g>"u")&&(g=Rt()),m=j[C]&&j[C][g]),typeof m>"u"||!m.length||!m[0]){var ft="";st=[];for(et in j[C])this.terminals_[et]&&et>vt&&st.push("'"+this.terminals_[et]+"'");y.showPosition?ft="Parse error on line "+(tt+1)+`:
1
+ import{g as Vt}from"./chunk-55IACEB6-gjZyNH_o.js";import{s as Mt}from"./chunk-KX2RTZJC-C1_7Uv3y.js";import{_ as u,b as Bt,a as Ft,s as Yt,g as Pt,p as zt,q as Gt,c as it,l as L,y as Kt,x as Ut,A as Zt,B as jt,o as Wt,r as Qt,d as Xt,u as qt}from"./MermaidRenderer-B3IpBAYI.js";import{c as Ht}from"./channel-ByGCPEwQ.js";import"./index-Bw59sLto.js";import"./purify.es-Bc-0F0ao.js";import"./step-EjIQ8UIn.js";var _t=function(){var s=u(function(R,n,a,c){for(a=a||{},c=R.length;c--;a[R[c]]=n);return a},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52],h=[1,10],d=[1,11],o=[1,12],l=[1,13],f=[1,23],_=[1,24],E=[1,25],V=[1,26],W=[1,27],S=[1,19],rt=[1,28],Q=[1,29],T=[1,20],I=[1,18],M=[1,21],B=[1,22],nt=[1,36],at=[1,37],ct=[1,38],lt=[1,39],ot=[1,40],F=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52,65,66,67,68,69],O=[1,45],N=[1,46],Y=[1,55],P=[40,48,50,51,52,70,71],z=[1,66],G=[1,64],A=[1,61],K=[1,65],U=[1,67],X=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,51,52,65,66,67,68,69],gt=[65,66,67,68,69],bt=[1,84],mt=[1,83],Et=[1,81],kt=[1,82],St=[6,10,42,47],v=[6,10,13,41,42,47,48,49],q=[1,92],H=[1,91],J=[1,90],Z=[19,58],Tt=[1,101],Ot=[1,100],ht=[19,58,60,62],ut={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,DECIMAL_NUM:51,ENTITY_ONE:52,attribute:53,attributeType:54,attributeName:55,attributeKeyTypeList:56,attributeComment:57,ATTRIBUTE_WORD:58,attributeKeyType:59,",":60,ATTRIBUTE_KEY:61,COMMENT:62,cardinality:63,relType:64,ZERO_OR_ONE:65,ZERO_OR_MORE:66,ONE_OR_MORE:67,ONLY_ONE:68,MD_PARENT:69,NON_IDENTIFYING:70,IDENTIFYING:71,WORD:72,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",51:"DECIMAL_NUM",52:"ENTITY_ONE",58:"ATTRIBUTE_WORD",60:",",61:"ATTRIBUTE_KEY",62:"COMMENT",65:"ZERO_OR_ONE",66:"ZERO_OR_MORE",67:"ONE_OR_MORE",68:"ONLY_ONE",69:"MD_PARENT",70:"NON_IDENTIFYING",71:"IDENTIFYING",72:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[11,1],[11,1],[11,1],[18,1],[18,2],[53,2],[53,3],[53,3],[53,4],[54,1],[55,1],[56,1],[56,3],[59,1],[57,1],[12,3],[63,1],[63,1],[63,1],[63,1],[63,1],[64,1],[64,1],[14,1],[14,1],[14,1]],performAction:u(function(n,a,c,r,p,t,j){var e=t.length-1;switch(p){case 1:break;case 2:this.$=[];break;case 3:t[e-1].push(t[e]),this.$=t[e-1];break;case 4:case 5:this.$=t[e];break;case 6:case 7:this.$=[];break;case 8:r.addEntity(t[e-4]),r.addEntity(t[e-2]),r.addRelationship(t[e-4],t[e],t[e-2],t[e-3]);break;case 9:r.addEntity(t[e-8]),r.addEntity(t[e-4]),r.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),r.setClass([t[e-8]],t[e-6]),r.setClass([t[e-4]],t[e-2]);break;case 10:r.addEntity(t[e-6]),r.addEntity(t[e-2]),r.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),r.setClass([t[e-6]],t[e-4]);break;case 11:r.addEntity(t[e-6]),r.addEntity(t[e-4]),r.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),r.setClass([t[e-4]],t[e-2]);break;case 12:r.addEntity(t[e-3]),r.addAttributes(t[e-3],t[e-1]);break;case 13:r.addEntity(t[e-5]),r.addAttributes(t[e-5],t[e-1]),r.setClass([t[e-5]],t[e-3]);break;case 14:r.addEntity(t[e-2]);break;case 15:r.addEntity(t[e-4]),r.setClass([t[e-4]],t[e-2]);break;case 16:r.addEntity(t[e]);break;case 17:r.addEntity(t[e-2]),r.setClass([t[e-2]],t[e]);break;case 18:r.addEntity(t[e-6],t[e-4]),r.addAttributes(t[e-6],t[e-1]);break;case 19:r.addEntity(t[e-8],t[e-6]),r.addAttributes(t[e-8],t[e-1]),r.setClass([t[e-8]],t[e-3]);break;case 20:r.addEntity(t[e-5],t[e-3]);break;case 21:r.addEntity(t[e-7],t[e-5]),r.setClass([t[e-7]],t[e-2]);break;case 22:r.addEntity(t[e-3],t[e-1]);break;case 23:r.addEntity(t[e-5],t[e-3]),r.setClass([t[e-5]],t[e]);break;case 24:case 25:this.$=t[e].trim(),r.setAccTitle(this.$);break;case 26:case 27:this.$=t[e].trim(),r.setAccDescription(this.$);break;case 32:r.setDirection("TB");break;case 33:r.setDirection("BT");break;case 34:r.setDirection("RL");break;case 35:r.setDirection("LR");break;case 36:this.$=t[e-3],r.addClass(t[e-2],t[e-1]);break;case 37:case 38:case 59:case 67:this.$=[t[e]];break;case 39:case 40:this.$=t[e-2].concat([t[e]]);break;case 41:this.$=t[e-2],r.setClass(t[e-1],t[e]);break;case 42:this.$=t[e-3],r.addCssStyles(t[e-2],t[e-1]);break;case 43:this.$=[t[e]];break;case 44:t[e-2].push(t[e]),this.$=t[e-2];break;case 46:this.$=t[e-1]+t[e];break;case 54:case 79:case 80:this.$=t[e].replace(/"/g,"");break;case 55:case 56:case 57:case 58:case 81:this.$=t[e];break;case 60:t[e].push(t[e-1]),this.$=t[e];break;case 61:this.$={type:t[e-1],name:t[e]};break;case 62:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 63:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 64:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 65:case 66:case 69:this.$=t[e];break;case 68:t[e-2].push(t[e]),this.$=t[e-2];break;case 70:this.$=t[e].replace(/"/g,"");break;case 71:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 72:this.$=r.Cardinality.ZERO_OR_ONE;break;case 73:this.$=r.Cardinality.ZERO_OR_MORE;break;case 74:this.$=r.Cardinality.ONE_OR_MORE;break;case 75:this.$=r.Cardinality.ONLY_ONE;break;case 76:this.$=r.Cardinality.MD_PARENT;break;case 77:this.$=r.Identification.NON_IDENTIFYING;break;case 78:this.$=r.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:h,24:d,26:o,28:l,29:14,30:15,31:16,32:17,33:f,34:_,35:E,36:V,37:W,40:S,43:rt,44:Q,48:T,50:I,51:M,52:B},s(i,[2,7],{1:[2,1]}),s(i,[2,3]),{9:30,11:9,22:h,24:d,26:o,28:l,29:14,30:15,31:16,32:17,33:f,34:_,35:E,36:V,37:W,40:S,43:rt,44:Q,48:T,50:I,51:M,52:B},s(i,[2,5]),s(i,[2,6]),s(i,[2,16],{12:31,63:35,15:[1,32],17:[1,33],20:[1,34],65:nt,66:at,67:ct,68:lt,69:ot}),{23:[1,41]},{25:[1,42]},{27:[1,43]},s(i,[2,27]),s(i,[2,28]),s(i,[2,29]),s(i,[2,30]),s(i,[2,31]),s(F,[2,54]),s(F,[2,55]),s(F,[2,56]),s(F,[2,57]),s(F,[2,58]),s(i,[2,32]),s(i,[2,33]),s(i,[2,34]),s(i,[2,35]),{16:44,40:O,41:N},{16:47,40:O,41:N},{16:48,40:O,41:N},s(i,[2,4]),{11:49,40:S,48:T,50:I,51:M,52:B},{16:50,40:O,41:N},{18:51,19:[1,52],53:53,54:54,58:Y},{11:56,40:S,48:T,50:I,51:M,52:B},{64:57,70:[1,58],71:[1,59]},s(P,[2,72]),s(P,[2,73]),s(P,[2,74]),s(P,[2,75]),s(P,[2,76]),s(i,[2,24]),s(i,[2,25]),s(i,[2,26]),{13:z,38:60,41:G,42:A,45:62,46:63,48:K,49:U},s(X,[2,37]),s(X,[2,38]),{16:68,40:O,41:N,42:A},{13:z,38:69,41:G,42:A,45:62,46:63,48:K,49:U},{13:[1,70],15:[1,71]},s(i,[2,17],{63:35,12:72,17:[1,73],42:A,65:nt,66:at,67:ct,68:lt,69:ot}),{19:[1,74]},s(i,[2,14]),{18:75,19:[2,59],53:53,54:54,58:Y},{55:76,58:[1,77]},{58:[2,65]},{21:[1,78]},{63:79,65:nt,66:at,67:ct,68:lt,69:ot},s(gt,[2,77]),s(gt,[2,78]),{6:bt,10:mt,39:80,42:Et,47:kt},{40:[1,85],41:[1,86]},s(St,[2,43],{46:87,13:z,41:G,48:K,49:U}),s(v,[2,45]),s(v,[2,50]),s(v,[2,51]),s(v,[2,52]),s(v,[2,53]),s(i,[2,41],{42:A}),{6:bt,10:mt,39:88,42:Et,47:kt},{14:89,40:q,50:H,72:J},{16:93,40:O,41:N},{11:94,40:S,48:T,50:I,51:M,52:B},{18:95,19:[1,96],53:53,54:54,58:Y},s(i,[2,12]),{19:[2,60]},s(Z,[2,61],{56:97,57:98,59:99,61:Tt,62:Ot}),s([19,58,61,62],[2,66]),s(i,[2,22],{15:[1,103],17:[1,102]}),s([40,48,50,51,52],[2,71]),s(i,[2,36]),{13:z,41:G,45:104,46:63,48:K,49:U},s(i,[2,47]),s(i,[2,48]),s(i,[2,49]),s(X,[2,39]),s(X,[2,40]),s(v,[2,46]),s(i,[2,42]),s(i,[2,8]),s(i,[2,79]),s(i,[2,80]),s(i,[2,81]),{13:[1,105],42:A},{13:[1,107],15:[1,106]},{19:[1,108]},s(i,[2,15]),s(Z,[2,62],{57:109,60:[1,110],62:Ot}),s(Z,[2,63]),s(ht,[2,67]),s(Z,[2,70]),s(ht,[2,69]),{18:111,19:[1,112],53:53,54:54,58:Y},{16:113,40:O,41:N},s(St,[2,44],{46:87,13:z,41:G,48:K,49:U}),{14:114,40:q,50:H,72:J},{16:115,40:O,41:N},{14:116,40:q,50:H,72:J},s(i,[2,13]),s(Z,[2,64]),{59:117,61:Tt},{19:[1,118]},s(i,[2,20]),s(i,[2,23],{17:[1,119],42:A}),s(i,[2,11]),{13:[1,120],42:A},s(i,[2,10]),s(ht,[2,68]),s(i,[2,18]),{18:121,19:[1,122],53:53,54:54,58:Y},{14:123,40:q,50:H,72:J},{19:[1,124]},s(i,[2,21]),s(i,[2,9]),s(i,[2,19])],defaultActions:{55:[2,65],75:[2,60]},parseError:u(function(n,a){if(a.recoverable)this.trace(n);else{var c=new Error(n);throw c.hash=a,c}},"parseError"),parse:u(function(n){var a=this,c=[0],r=[],p=[null],t=[],j=this.table,e="",tt=0,Nt=0,vt=2,At=1,Dt=t.slice.call(arguments,1),y=Object.create(this.lexer),x={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(x.yy[dt]=this.yy[dt]);y.setInput(n,x.yy),x.yy.lexer=y,x.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var pt=y.yylloc;t.push(pt);var Lt=y.options&&y.options.ranges;typeof x.yy.parseError=="function"?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function wt(b){c.length=c.length-2*b,p.length=p.length-b,t.length=t.length-b}u(wt,"popStack");function Rt(){var b;return b=r.pop()||y.lex()||At,typeof b!="number"&&(b instanceof Array&&(r=b,b=r.pop()),b=a.symbols_[b]||b),b}u(Rt,"lex");for(var g,C,m,yt,D={},et,k,It,st;;){if(C=c[c.length-1],this.defaultActions[C]?m=this.defaultActions[C]:((g===null||typeof g>"u")&&(g=Rt()),m=j[C]&&j[C][g]),typeof m>"u"||!m.length||!m[0]){var ft="";st=[];for(et in j[C])this.terminals_[et]&&et>vt&&st.push("'"+this.terminals_[et]+"'");y.showPosition?ft="Parse error on line "+(tt+1)+`:
2
2
  `+y.showPosition()+`
3
3
  Expecting `+st.join(", ")+", got '"+(this.terminals_[g]||g)+"'":ft="Parse error on line "+(tt+1)+": Unexpected "+(g==At?"end of input":"'"+(this.terminals_[g]||g)+"'"),this.parseError(ft,{text:y.match,token:this.terminals_[g]||g,line:y.yylineno,loc:pt,expected:st})}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+g);switch(m[0]){case 1:c.push(g),p.push(y.yytext),t.push(y.yylloc),c.push(m[1]),g=null,Nt=y.yyleng,e=y.yytext,tt=y.yylineno,pt=y.yylloc;break;case 2:if(k=this.productions_[m[1]][1],D.$=p[p.length-k],D._$={first_line:t[t.length-(k||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(k||1)].first_column,last_column:t[t.length-1].last_column},Lt&&(D._$.range=[t[t.length-(k||1)].range[0],t[t.length-1].range[1]]),yt=this.performAction.apply(D,[e,Nt,tt,x.yy,m[1],p,t].concat(Dt)),typeof yt<"u")return yt;k&&(c=c.slice(0,-1*k*2),p=p.slice(0,-1*k),t=t.slice(0,-1*k)),c.push(this.productions_[m[1]][0]),p.push(D.$),t.push(D._$),It=j[c[c.length-2]][c[c.length-1]],c.push(It);break;case 3:return!0}}return!0},"parse")},Ct=function(){var R={EOF:1,parseError:u(function(a,c){if(this.yy.parser)this.yy.parser.parseError(a,c);else throw new Error(a)},"parseError"),setInput:u(function(n,a){return this.yy=a||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:u(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var a=n.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},"input"),unput:u(function(n){var a=n.length,c=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;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),c.length-1&&(this.yylineno-=c.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===r.length?this.yylloc.first_column:0)+r[r.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:u(function(){return this._more=!0,this},"more"),reject:u(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:u(function(n){this.unput(this.match.slice(n))},"less"),pastInput:u(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:u(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:u(function(){var n=this.pastInput(),a=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{g as Ht}from"./chunk-FMBD7UC4-D7f0j4zs.js";import{_ as m,n as Mt,l as t1,c as b1,d as O1,o as Xt,r as Qt,u as rt,b as Jt,s as Zt,p as $t,a as te,g as ee,q as se,k as ie,t as re,J as ae,v as ne,x as it,y as ue,z as oe,A as le}from"./MermaidRenderer-qzVgEt2x.js";import{c as ce}from"./chunk-JSJVCQXG-i60xlQfX.js";import{g as he}from"./chunk-55IACEB6-D31lfA_a.js";import{s as de}from"./chunk-KX2RTZJC-DOMFBwQb.js";import{p as pe}from"./purify.es-DIZLy5JB.js";import{c as fe}from"./channel-u3m7-f_Y.js";import"./index-C8kIMiLQ.js";import"./step-EjIQ8UIn.js";var ge="flowchart-",G1,be=(G1=class{constructor(){this.vertexCounter=0,this.config=b1(),this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=Jt,this.setAccDescription=Zt,this.setDiagramTitle=$t,this.getAccTitle=te,this.getAccDescription=ee,this.getDiagramTitle=se,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return ie.sanitizeText(i,this.config)}sanitizeNodeLabelType(i){switch(i){case"markdown":case"string":case"text":return i;default:return"markdown"}}lookUpDomId(i){for(const n of this.vertices.values())if(n.id===i)return n.domId;return i}addVertex(i,n,a,u,o,f,c={},A){var L,T;if(!i||i.trim().length===0)return;let r;if(A!==void 0){let d;A.includes(`
1
+ import{g as Ht}from"./chunk-FMBD7UC4-DX6LH-cn.js";import{_ as m,n as Mt,l as t1,c as b1,d as O1,o as Xt,r as Qt,u as rt,b as Jt,s as Zt,p as $t,a as te,g as ee,q as se,k as ie,t as re,J as ae,v as ne,x as it,y as ue,z as oe,A as le}from"./MermaidRenderer-B3IpBAYI.js";import{c as ce}from"./chunk-JSJVCQXG-CZVNc-8N.js";import{g as he}from"./chunk-55IACEB6-gjZyNH_o.js";import{s as de}from"./chunk-KX2RTZJC-C1_7Uv3y.js";import{p as pe}from"./purify.es-Bc-0F0ao.js";import{c as fe}from"./channel-ByGCPEwQ.js";import"./index-Bw59sLto.js";import"./step-EjIQ8UIn.js";var ge="flowchart-",G1,be=(G1=class{constructor(){this.vertexCounter=0,this.config=b1(),this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=Jt,this.setAccDescription=Zt,this.setDiagramTitle=$t,this.getAccTitle=te,this.getAccDescription=ee,this.getDiagramTitle=se,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return ie.sanitizeText(i,this.config)}sanitizeNodeLabelType(i){switch(i){case"markdown":case"string":case"text":return i;default:return"markdown"}}lookUpDomId(i){for(const n of this.vertices.values())if(n.id===i)return n.domId;return i}addVertex(i,n,a,u,o,f,c={},A){var L,T;if(!i||i.trim().length===0)return;let r;if(A!==void 0){let d;A.includes(`
2
2
  `)?d=A+`
3
3
  `:d=`{
4
4
  `+A+`
@@ -0,0 +1,292 @@
1
+ import{g as Yn,s as Fn,q as Un,p as En,a as Ln,b as In,_ as d,c as wt,d as Pt,e as An,aE as rt,l as gt,k as Wn,j as On,y as $n,u as Hn}from"./MermaidRenderer-B3IpBAYI.js";import{c as jt,g as Qt}from"./index-Bw59sLto.js";import{t as Nn,m as Pn,a as Vn}from"./time-DEO-mtw_.js";import{l as zn}from"./linear-BmIPqizB.js";import{R as Xe,r as Rn,o as Ge,q as je,C as Qe,u as Kt,v as Zn}from"./step-EjIQ8UIn.js";import"./purify.es-Bc-0F0ao.js";import"./init-Dmth1JHB.js";function Bn(t){return t}var zt=1,te=2,le=3,Vt=4,Ie=1e-6;function qn(t){return"translate("+t+",0)"}function Xn(t){return"translate(0,"+t+")"}function Gn(t){return e=>+t(e)}function jn(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function Qn(){return!this.__axis}function Je(t,e){var n=[],r=null,s=null,o=6,c=6,y=3,Y=typeof window<"u"&&window.devicePixelRatio>1?0:.5,L=t===zt||t===Vt?-1:1,C=t===Vt||t===te?"x":"y",H=t===zt||t===le?qn:Xn;function U(S){var G=r??(e.ticks?e.ticks.apply(e,n):e.domain()),W=s??(e.tickFormat?e.tickFormat.apply(e,n):Bn),_=Math.max(o,0)+y,E=e.range(),V=+E[0]+Y,I=+E[E.length-1]+Y,Z=(e.bandwidth?jn:Gn)(e.copy(),Y),j=S.selection?S.selection():S,F=j.selectAll(".domain").data([null]),T=j.selectAll(".tick").data(G,e).order(),m=T.exit(),h=T.enter().append("g").attr("class","tick"),b=T.select("line"),x=T.select("text");F=F.merge(F.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),T=T.merge(h),b=b.merge(h.append("line").attr("stroke","currentColor").attr(C+"2",L*o)),x=x.merge(h.append("text").attr("fill","currentColor").attr(C,L*_).attr("dy",t===zt?"0em":t===le?"0.71em":"0.32em")),S!==j&&(F=F.transition(S),T=T.transition(S),b=b.transition(S),x=x.transition(S),m=m.transition(S).attr("opacity",Ie).attr("transform",function(k){return isFinite(k=Z(k))?H(k+Y):this.getAttribute("transform")}),h.attr("opacity",Ie).attr("transform",function(k){var g=this.parentNode.__axis;return H((g&&isFinite(g=g(k))?g:Z(k))+Y)})),m.remove(),F.attr("d",t===Vt||t===te?c?"M"+L*c+","+V+"H"+Y+"V"+I+"H"+L*c:"M"+Y+","+V+"V"+I:c?"M"+V+","+L*c+"V"+Y+"H"+I+"V"+L*c:"M"+V+","+Y+"H"+I),T.attr("opacity",1).attr("transform",function(k){return H(Z(k)+Y)}),b.attr(C+"2",L*o),x.attr(C,L*_).text(W),j.filter(Qn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===te?"start":t===Vt?"end":"middle"),j.each(function(){this.__axis=Z})}return U.scale=function(S){return arguments.length?(e=S,U):e},U.ticks=function(){return n=Array.from(arguments),U},U.tickArguments=function(S){return arguments.length?(n=S==null?[]:Array.from(S),U):n.slice()},U.tickValues=function(S){return arguments.length?(r=S==null?null:Array.from(S),U):r&&r.slice()},U.tickFormat=function(S){return arguments.length?(s=S,U):s},U.tickSize=function(S){return arguments.length?(o=c=+S,U):o},U.tickSizeInner=function(S){return arguments.length?(o=+S,U):o},U.tickSizeOuter=function(S){return arguments.length?(c=+S,U):c},U.tickPadding=function(S){return arguments.length?(y=+S,U):y},U.offset=function(S){return arguments.length?(Y=+S,U):Y},U}function Jn(t){return Je(zt,t)}function Kn(t){return Je(le,t)}const tr=Math.PI/180,er=180/Math.PI,Bt=18,Ke=.96422,tn=1,en=.82521,nn=4/29,Ct=6/29,rn=3*Ct*Ct,nr=Ct*Ct*Ct;function sn(t){if(t instanceof lt)return new lt(t.l,t.a,t.b,t.opacity);if(t instanceof dt)return an(t);t instanceof Xe||(t=Rn(t));var e=ie(t.r),n=ie(t.g),r=ie(t.b),s=ee((.2225045*e+.7168786*n+.0606169*r)/tn),o,c;return e===n&&n===r?o=c=s:(o=ee((.4360747*e+.3850649*n+.1430804*r)/Ke),c=ee((.0139322*e+.0971045*n+.7141733*r)/en)),new lt(116*s-16,500*(o-s),200*(s-c),t.opacity)}function rr(t,e,n,r){return arguments.length===1?sn(t):new lt(t,e,n,r??1)}function lt(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}Ge(lt,rr,je(Qe,{brighter(t){return new lt(this.l+Bt*(t??1),this.a,this.b,this.opacity)},darker(t){return new lt(this.l-Bt*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=Ke*ne(e),t=tn*ne(t),n=en*ne(n),new Xe(re(3.1338561*e-1.6168667*t-.4906146*n),re(-.9787684*e+1.9161415*t+.033454*n),re(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function ee(t){return t>nr?Math.pow(t,1/3):t/rn+nn}function ne(t){return t>Ct?t*t*t:rn*(t-nn)}function re(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ie(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function ir(t){if(t instanceof dt)return new dt(t.h,t.c,t.l,t.opacity);if(t instanceof lt||(t=sn(t)),t.a===0&&t.b===0)return new dt(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*er;return new dt(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function fe(t,e,n,r){return arguments.length===1?ir(t):new dt(t,e,n,r??1)}function dt(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function an(t){if(isNaN(t.h))return new lt(t.l,0,0,t.opacity);var e=t.h*tr;return new lt(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}Ge(dt,fe,je(Qe,{brighter(t){return new dt(this.h,this.c,this.l+Bt*(t??1),this.opacity)},darker(t){return new dt(this.h,this.c,this.l-Bt*(t??1),this.opacity)},rgb(){return an(this).rgb()}}));function sr(t){return function(e,n){var r=t((e=fe(e)).h,(n=fe(n)).h),s=Kt(e.c,n.c),o=Kt(e.l,n.l),c=Kt(e.opacity,n.opacity);return function(y){return e.h=r(y),e.c=s(y),e.l=o(y),e.opacity=c(y),e+""}}}const ar=sr(Zn),se=new Date,ae=new Date;function et(t,e,n,r){function s(o){return t(o=arguments.length===0?new Date:new Date(+o)),o}return s.floor=o=>(t(o=new Date(+o)),o),s.ceil=o=>(t(o=new Date(o-1)),e(o,1),t(o),o),s.round=o=>{const c=s(o),y=s.ceil(o);return o-c<y-o?c:y},s.offset=(o,c)=>(e(o=new Date(+o),c==null?1:Math.floor(c)),o),s.range=(o,c,y)=>{const Y=[];if(o=s.ceil(o),y=y==null?1:Math.floor(y),!(o<c)||!(y>0))return Y;let L;do Y.push(L=new Date(+o)),e(o,y),t(o);while(L<o&&o<c);return Y},s.filter=o=>et(c=>{if(c>=c)for(;t(c),!o(c);)c.setTime(c-1)},(c,y)=>{if(c>=c)if(y<0)for(;++y<=0;)for(;e(c,-1),!o(c););else for(;--y>=0;)for(;e(c,1),!o(c););}),n&&(s.count=(o,c)=>(se.setTime(+o),ae.setTime(+c),t(se),t(ae),Math.floor(n(se,ae))),s.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?s.filter(r?c=>r(c)%o===0:c=>s.count(0,c)%o===0):s)),s}const Ut=et(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Ut.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?et(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Ut);Ut.range;const Et=1e3,mt=Et*60,Lt=mt*60,It=Lt*24,on=It*7,de=et(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*Et)},(t,e)=>(e-t)/Et,t=>t.getUTCSeconds());de.range;const he=et(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Et)},(t,e)=>{t.setTime(+t+e*mt)},(t,e)=>(e-t)/mt,t=>t.getMinutes());he.range;const or=et(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*mt)},(t,e)=>(e-t)/mt,t=>t.getUTCMinutes());or.range;const me=et(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Et-t.getMinutes()*mt)},(t,e)=>{t.setTime(+t+e*Lt)},(t,e)=>(e-t)/Lt,t=>t.getHours());me.range;const cr=et(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*Lt)},(t,e)=>(e-t)/Lt,t=>t.getUTCHours());cr.range;const At=et(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*mt)/It,t=>t.getDate()-1);At.range;const xe=et(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/It,t=>t.getUTCDate()-1);xe.range;const ur=et(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/It,t=>Math.floor(t/It));ur.range;function vt(t){return et(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*mt)/on)}const be=vt(0),Wt=vt(1),cn=vt(2),un=vt(3),yt=vt(4),ln=vt(5),fn=vt(6);be.range;Wt.range;cn.range;un.range;yt.range;ln.range;fn.range;function Tt(t){return et(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/on)}const dn=Tt(0),qt=Tt(1),lr=Tt(2),fr=Tt(3),Mt=Tt(4),dr=Tt(5),hr=Tt(6);dn.range;qt.range;lr.range;fr.range;Mt.range;dr.range;hr.range;const ge=et(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());ge.range;const mr=et(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());mr.range;const kt=et(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());kt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:et(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});kt.range;const pt=et(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());pt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:et(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});pt.range;function oe(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function ce(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function _t(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function gr(t){var e=t.dateTime,n=t.date,r=t.time,s=t.periods,o=t.days,c=t.shortDays,y=t.months,Y=t.shortMonths,L=Yt(s),C=Ft(s),H=Yt(o),U=Ft(o),S=Yt(c),G=Ft(c),W=Yt(y),_=Ft(y),E=Yt(Y),V=Ft(Y),I={a:v,A:D,b:a,B:q,c:null,d:Ne,e:Ne,f:$r,g:Xr,G:jr,H:Ar,I:Wr,j:Or,L:hn,m:Hr,M:Nr,p:i,q:M,Q:ze,s:Re,S:Pr,u:Vr,U:zr,V:Rr,w:Zr,W:Br,x:null,X:null,y:qr,Y:Gr,Z:Qr,"%":Ve},Z={a:R,A:z,b:N,B:K,c:null,d:Pe,e:Pe,f:ei,g:fi,G:hi,H:Jr,I:Kr,j:ti,L:gn,m:ni,M:ri,p:O,q:st,Q:ze,s:Re,S:ii,u:si,U:ai,V:oi,w:ci,W:ui,x:null,X:null,y:li,Y:di,Z:mi,"%":Ve},j={a:b,A:x,b:k,B:g,c:u,d:$e,e:$e,f:Ur,g:Oe,G:We,H:He,I:He,j:Sr,L:Fr,m:Mr,M:_r,p:h,q:Dr,Q:Lr,s:Ir,S:Yr,u:Tr,U:xr,V:br,w:vr,W:wr,x:f,X:p,y:Oe,Y:We,Z:Cr,"%":Er};I.x=F(n,I),I.X=F(r,I),I.c=F(e,I),Z.x=F(n,Z),Z.X=F(r,Z),Z.c=F(e,Z);function F(w,$){return function(P){var l=[],J=-1,A=0,Q=w.length,X,it,at;for(P instanceof Date||(P=new Date(+P));++J<Q;)w.charCodeAt(J)===37&&(l.push(w.slice(A,J)),(it=Ae[X=w.charAt(++J)])!=null?X=w.charAt(++J):it=X==="e"?" ":"0",(at=$[X])&&(X=at(P,it)),l.push(X),A=J+1);return l.push(w.slice(A,J)),l.join("")}}function T(w,$){return function(P){var l=_t(1900,void 0,1),J=m(l,w,P+="",0),A,Q;if(J!=P.length)return null;if("Q"in l)return new Date(l.Q);if("s"in l)return new Date(l.s*1e3+("L"in l?l.L:0));if($&&!("Z"in l)&&(l.Z=0),"p"in l&&(l.H=l.H%12+l.p*12),l.m===void 0&&(l.m="q"in l?l.q:0),"V"in l){if(l.V<1||l.V>53)return null;"w"in l||(l.w=1),"Z"in l?(A=ce(_t(l.y,0,1)),Q=A.getUTCDay(),A=Q>4||Q===0?qt.ceil(A):qt(A),A=xe.offset(A,(l.V-1)*7),l.y=A.getUTCFullYear(),l.m=A.getUTCMonth(),l.d=A.getUTCDate()+(l.w+6)%7):(A=oe(_t(l.y,0,1)),Q=A.getDay(),A=Q>4||Q===0?Wt.ceil(A):Wt(A),A=At.offset(A,(l.V-1)*7),l.y=A.getFullYear(),l.m=A.getMonth(),l.d=A.getDate()+(l.w+6)%7)}else("W"in l||"U"in l)&&("w"in l||(l.w="u"in l?l.u%7:"W"in l?1:0),Q="Z"in l?ce(_t(l.y,0,1)).getUTCDay():oe(_t(l.y,0,1)).getDay(),l.m=0,l.d="W"in l?(l.w+6)%7+l.W*7-(Q+5)%7:l.w+l.U*7-(Q+6)%7);return"Z"in l?(l.H+=l.Z/100|0,l.M+=l.Z%100,ce(l)):oe(l)}}function m(w,$,P,l){for(var J=0,A=$.length,Q=P.length,X,it;J<A;){if(l>=Q)return-1;if(X=$.charCodeAt(J++),X===37){if(X=$.charAt(J++),it=j[X in Ae?$.charAt(J++):X],!it||(l=it(w,P,l))<0)return-1}else if(X!=P.charCodeAt(l++))return-1}return l}function h(w,$,P){var l=L.exec($.slice(P));return l?(w.p=C.get(l[0].toLowerCase()),P+l[0].length):-1}function b(w,$,P){var l=S.exec($.slice(P));return l?(w.w=G.get(l[0].toLowerCase()),P+l[0].length):-1}function x(w,$,P){var l=H.exec($.slice(P));return l?(w.w=U.get(l[0].toLowerCase()),P+l[0].length):-1}function k(w,$,P){var l=E.exec($.slice(P));return l?(w.m=V.get(l[0].toLowerCase()),P+l[0].length):-1}function g(w,$,P){var l=W.exec($.slice(P));return l?(w.m=_.get(l[0].toLowerCase()),P+l[0].length):-1}function u(w,$,P){return m(w,e,$,P)}function f(w,$,P){return m(w,n,$,P)}function p(w,$,P){return m(w,r,$,P)}function v(w){return c[w.getDay()]}function D(w){return o[w.getDay()]}function a(w){return Y[w.getMonth()]}function q(w){return y[w.getMonth()]}function i(w){return s[+(w.getHours()>=12)]}function M(w){return 1+~~(w.getMonth()/3)}function R(w){return c[w.getUTCDay()]}function z(w){return o[w.getUTCDay()]}function N(w){return Y[w.getUTCMonth()]}function K(w){return y[w.getUTCMonth()]}function O(w){return s[+(w.getUTCHours()>=12)]}function st(w){return 1+~~(w.getUTCMonth()/3)}return{format:function(w){var $=F(w+="",I);return $.toString=function(){return w},$},parse:function(w){var $=T(w+="",!1);return $.toString=function(){return w},$},utcFormat:function(w){var $=F(w+="",Z);return $.toString=function(){return w},$},utcParse:function(w){var $=T(w+="",!0);return $.toString=function(){return w},$}}}var Ae={"-":"",_:" ",0:"0"},nt=/^\s*\d+/,yr=/^%/,kr=/[\\^$*+?|[\]().{}]/g;function B(t,e,n){var r=t<0?"-":"",s=(r?-t:t)+"",o=s.length;return r+(o<n?new Array(n-o+1).join(e)+s:s)}function pr(t){return t.replace(kr,"\\$&")}function Yt(t){return new RegExp("^(?:"+t.map(pr).join("|")+")","i")}function Ft(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function vr(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Tr(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function xr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function br(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function wr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function We(t,e,n){var r=nt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Oe(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Cr(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Dr(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function Mr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function $e(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Sr(t,e,n){var r=nt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function He(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function _r(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Yr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Fr(t,e,n){var r=nt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Ur(t,e,n){var r=nt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Er(t,e,n){var r=yr.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Lr(t,e,n){var r=nt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Ir(t,e,n){var r=nt.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Ne(t,e){return B(t.getDate(),e,2)}function Ar(t,e){return B(t.getHours(),e,2)}function Wr(t,e){return B(t.getHours()%12||12,e,2)}function Or(t,e){return B(1+At.count(kt(t),t),e,3)}function hn(t,e){return B(t.getMilliseconds(),e,3)}function $r(t,e){return hn(t,e)+"000"}function Hr(t,e){return B(t.getMonth()+1,e,2)}function Nr(t,e){return B(t.getMinutes(),e,2)}function Pr(t,e){return B(t.getSeconds(),e,2)}function Vr(t){var e=t.getDay();return e===0?7:e}function zr(t,e){return B(be.count(kt(t)-1,t),e,2)}function mn(t){var e=t.getDay();return e>=4||e===0?yt(t):yt.ceil(t)}function Rr(t,e){return t=mn(t),B(yt.count(kt(t),t)+(kt(t).getDay()===4),e,2)}function Zr(t){return t.getDay()}function Br(t,e){return B(Wt.count(kt(t)-1,t),e,2)}function qr(t,e){return B(t.getFullYear()%100,e,2)}function Xr(t,e){return t=mn(t),B(t.getFullYear()%100,e,2)}function Gr(t,e){return B(t.getFullYear()%1e4,e,4)}function jr(t,e){var n=t.getDay();return t=n>=4||n===0?yt(t):yt.ceil(t),B(t.getFullYear()%1e4,e,4)}function Qr(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+B(e/60|0,"0",2)+B(e%60,"0",2)}function Pe(t,e){return B(t.getUTCDate(),e,2)}function Jr(t,e){return B(t.getUTCHours(),e,2)}function Kr(t,e){return B(t.getUTCHours()%12||12,e,2)}function ti(t,e){return B(1+xe.count(pt(t),t),e,3)}function gn(t,e){return B(t.getUTCMilliseconds(),e,3)}function ei(t,e){return gn(t,e)+"000"}function ni(t,e){return B(t.getUTCMonth()+1,e,2)}function ri(t,e){return B(t.getUTCMinutes(),e,2)}function ii(t,e){return B(t.getUTCSeconds(),e,2)}function si(t){var e=t.getUTCDay();return e===0?7:e}function ai(t,e){return B(dn.count(pt(t)-1,t),e,2)}function yn(t){var e=t.getUTCDay();return e>=4||e===0?Mt(t):Mt.ceil(t)}function oi(t,e){return t=yn(t),B(Mt.count(pt(t),t)+(pt(t).getUTCDay()===4),e,2)}function ci(t){return t.getUTCDay()}function ui(t,e){return B(qt.count(pt(t)-1,t),e,2)}function li(t,e){return B(t.getUTCFullYear()%100,e,2)}function fi(t,e){return t=yn(t),B(t.getUTCFullYear()%100,e,2)}function di(t,e){return B(t.getUTCFullYear()%1e4,e,4)}function hi(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Mt(t):Mt.ceil(t),B(t.getUTCFullYear()%1e4,e,4)}function mi(){return"+0000"}function Ve(){return"%"}function ze(t){return+t}function Re(t){return Math.floor(+t/1e3)}var bt,ye;gi({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function gi(t){return bt=gr(t),ye=bt.format,bt.parse,bt.utcFormat,bt.utcParse,bt}var kn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(jt,function(){var n="day";return function(r,s,o){var c=function(L){return L.add(4-L.isoWeekday(),n)},y=s.prototype;y.isoWeekYear=function(){return c(this).year()},y.isoWeek=function(L){if(!this.$utils().u(L))return this.add(7*(L-this.isoWeek()),n);var C,H,U,S,G=c(this),W=(C=this.isoWeekYear(),H=this.$u,U=(H?o.utc:o)().year(C).startOf("year"),S=4-U.isoWeekday(),U.isoWeekday()>4&&(S+=7),U.add(S,n));return G.diff(W,"week")+1},y.isoWeekday=function(L){return this.$utils().u(L)?this.day()||7:this.day(this.day()%7?L:L-7)};var Y=y.startOf;y.startOf=function(L,C){var H=this.$utils(),U=!!H.u(C)||C;return H.p(L)==="isoweek"?U?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):Y.bind(this)(L,C)}}})})(kn);var yi=kn.exports;const ki=Qt(yi);var pn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(jt,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,s=/\d/,o=/\d\d/,c=/\d\d?/,y=/\d*[^-_:/,()\s\d]+/,Y={},L=function(_){return(_=+_)+(_>68?1900:2e3)},C=function(_){return function(E){this[_]=+E}},H=[/[+-]\d\d:?(\d\d)?|Z/,function(_){(this.zone||(this.zone={})).offset=function(E){if(!E||E==="Z")return 0;var V=E.match(/([+-]|\d\d)/g),I=60*V[1]+(+V[2]||0);return I===0?0:V[0]==="+"?-I:I}(_)}],U=function(_){var E=Y[_];return E&&(E.indexOf?E:E.s.concat(E.f))},S=function(_,E){var V,I=Y.meridiem;if(I){for(var Z=1;Z<=24;Z+=1)if(_.indexOf(I(Z,0,E))>-1){V=Z>12;break}}else V=_===(E?"pm":"PM");return V},G={A:[y,function(_){this.afternoon=S(_,!1)}],a:[y,function(_){this.afternoon=S(_,!0)}],Q:[s,function(_){this.month=3*(_-1)+1}],S:[s,function(_){this.milliseconds=100*+_}],SS:[o,function(_){this.milliseconds=10*+_}],SSS:[/\d{3}/,function(_){this.milliseconds=+_}],s:[c,C("seconds")],ss:[c,C("seconds")],m:[c,C("minutes")],mm:[c,C("minutes")],H:[c,C("hours")],h:[c,C("hours")],HH:[c,C("hours")],hh:[c,C("hours")],D:[c,C("day")],DD:[o,C("day")],Do:[y,function(_){var E=Y.ordinal,V=_.match(/\d+/);if(this.day=V[0],E)for(var I=1;I<=31;I+=1)E(I).replace(/\[|\]/g,"")===_&&(this.day=I)}],w:[c,C("week")],ww:[o,C("week")],M:[c,C("month")],MM:[o,C("month")],MMM:[y,function(_){var E=U("months"),V=(U("monthsShort")||E.map(function(I){return I.slice(0,3)})).indexOf(_)+1;if(V<1)throw new Error;this.month=V%12||V}],MMMM:[y,function(_){var E=U("months").indexOf(_)+1;if(E<1)throw new Error;this.month=E%12||E}],Y:[/[+-]?\d+/,C("year")],YY:[o,function(_){this.year=L(_)}],YYYY:[/\d{4}/,C("year")],Z:H,ZZ:H};function W(_){var E,V;E=_,V=Y&&Y.formats;for(var I=(_=E.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(b,x,k){var g=k&&k.toUpperCase();return x||V[k]||n[k]||V[g].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(u,f,p){return f||p.slice(1)})})).match(r),Z=I.length,j=0;j<Z;j+=1){var F=I[j],T=G[F],m=T&&T[0],h=T&&T[1];I[j]=h?{regex:m,parser:h}:F.replace(/^\[|\]$/g,"")}return function(b){for(var x={},k=0,g=0;k<Z;k+=1){var u=I[k];if(typeof u=="string")g+=u.length;else{var f=u.regex,p=u.parser,v=b.slice(g),D=f.exec(v)[0];p.call(x,D),b=b.replace(D,"")}}return function(a){var q=a.afternoon;if(q!==void 0){var i=a.hours;q?i<12&&(a.hours+=12):i===12&&(a.hours=0),delete a.afternoon}}(x),x}}return function(_,E,V){V.p.customParseFormat=!0,_&&_.parseTwoDigitYear&&(L=_.parseTwoDigitYear);var I=E.prototype,Z=I.parse;I.parse=function(j){var F=j.date,T=j.utc,m=j.args;this.$u=T;var h=m[1];if(typeof h=="string"){var b=m[2]===!0,x=m[3]===!0,k=b||x,g=m[2];x&&(g=m[2]),Y=this.$locale(),!b&&g&&(Y=V.Ls[g]),this.$d=function(v,D,a,q){try{if(["x","X"].indexOf(D)>-1)return new Date((D==="X"?1e3:1)*v);var i=W(D)(v),M=i.year,R=i.month,z=i.day,N=i.hours,K=i.minutes,O=i.seconds,st=i.milliseconds,w=i.zone,$=i.week,P=new Date,l=z||(M||R?1:P.getDate()),J=M||P.getFullYear(),A=0;M&&!R||(A=R>0?R-1:P.getMonth());var Q,X=N||0,it=K||0,at=O||0,ht=st||0;return w?new Date(Date.UTC(J,A,l,X,it,at,ht+60*w.offset*1e3)):a?new Date(Date.UTC(J,A,l,X,it,at,ht)):(Q=new Date(J,A,l,X,it,at,ht),$&&(Q=q(Q).week($).toDate()),Q)}catch{return new Date("")}}(F,h,T,V),this.init(),g&&g!==!0&&(this.$L=this.locale(g).$L),k&&F!=this.format(h)&&(this.$d=new Date("")),Y={}}else if(h instanceof Array)for(var u=h.length,f=1;f<=u;f+=1){m[1]=h[f-1];var p=V.apply(this,m);if(p.isValid()){this.$d=p.$d,this.$L=p.$L,this.init();break}f===u&&(this.$d=new Date(""))}else Z.call(this,j)}}})})(pn);var pi=pn.exports;const vi=Qt(pi);var vn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(jt,function(){return function(n,r){var s=r.prototype,o=s.format;s.format=function(c){var y=this,Y=this.$locale();if(!this.isValid())return o.bind(this)(c);var L=this.$utils(),C=(c||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(H){switch(H){case"Q":return Math.ceil((y.$M+1)/3);case"Do":return Y.ordinal(y.$D);case"gggg":return y.weekYear();case"GGGG":return y.isoWeekYear();case"wo":return Y.ordinal(y.week(),"W");case"w":case"ww":return L.s(y.week(),H==="w"?1:2,"0");case"W":case"WW":return L.s(y.isoWeek(),H==="W"?1:2,"0");case"k":case"kk":return L.s(String(y.$H===0?24:y.$H),H==="k"?1:2,"0");case"X":return Math.floor(y.$d.getTime()/1e3);case"x":return y.$d.getTime();case"z":return"["+y.offsetName()+"]";case"zzz":return"["+y.offsetName("long")+"]";default:return H}});return o.bind(this)(C)}}})})(vn);var Ti=vn.exports;const xi=Qt(Ti);var Tn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(jt,function(){var n,r,s=1e3,o=6e4,c=36e5,y=864e5,Y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,L=31536e6,C=2628e6,H=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,U={years:L,months:C,days:y,hours:c,minutes:o,seconds:s,milliseconds:1,weeks:6048e5},S=function(F){return F instanceof Z},G=function(F,T,m){return new Z(F,m,T.$l)},W=function(F){return r.p(F)+"s"},_=function(F){return F<0},E=function(F){return _(F)?Math.ceil(F):Math.floor(F)},V=function(F){return Math.abs(F)},I=function(F,T){return F?_(F)?{negative:!0,format:""+V(F)+T}:{negative:!1,format:""+F+T}:{negative:!1,format:""}},Z=function(){function F(m,h,b){var x=this;if(this.$d={},this.$l=b,m===void 0&&(this.$ms=0,this.parseFromMilliseconds()),h)return G(m*U[W(h)],this);if(typeof m=="number")return this.$ms=m,this.parseFromMilliseconds(),this;if(typeof m=="object")return Object.keys(m).forEach(function(u){x.$d[W(u)]=m[u]}),this.calMilliseconds(),this;if(typeof m=="string"){var k=m.match(H);if(k){var g=k.slice(2).map(function(u){return u!=null?Number(u):0});return this.$d.years=g[0],this.$d.months=g[1],this.$d.weeks=g[2],this.$d.days=g[3],this.$d.hours=g[4],this.$d.minutes=g[5],this.$d.seconds=g[6],this.calMilliseconds(),this}}return this}var T=F.prototype;return T.calMilliseconds=function(){var m=this;this.$ms=Object.keys(this.$d).reduce(function(h,b){return h+(m.$d[b]||0)*U[b]},0)},T.parseFromMilliseconds=function(){var m=this.$ms;this.$d.years=E(m/L),m%=L,this.$d.months=E(m/C),m%=C,this.$d.days=E(m/y),m%=y,this.$d.hours=E(m/c),m%=c,this.$d.minutes=E(m/o),m%=o,this.$d.seconds=E(m/s),m%=s,this.$d.milliseconds=m},T.toISOString=function(){var m=I(this.$d.years,"Y"),h=I(this.$d.months,"M"),b=+this.$d.days||0;this.$d.weeks&&(b+=7*this.$d.weeks);var x=I(b,"D"),k=I(this.$d.hours,"H"),g=I(this.$d.minutes,"M"),u=this.$d.seconds||0;this.$d.milliseconds&&(u+=this.$d.milliseconds/1e3,u=Math.round(1e3*u)/1e3);var f=I(u,"S"),p=m.negative||h.negative||x.negative||k.negative||g.negative||f.negative,v=k.format||g.format||f.format?"T":"",D=(p?"-":"")+"P"+m.format+h.format+x.format+v+k.format+g.format+f.format;return D==="P"||D==="-P"?"P0D":D},T.toJSON=function(){return this.toISOString()},T.format=function(m){var h=m||"YYYY-MM-DDTHH:mm:ss",b={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return h.replace(Y,function(x,k){return k||String(b[x])})},T.as=function(m){return this.$ms/U[W(m)]},T.get=function(m){var h=this.$ms,b=W(m);return b==="milliseconds"?h%=1e3:h=b==="weeks"?E(h/U[b]):this.$d[b],h||0},T.add=function(m,h,b){var x;return x=h?m*U[W(h)]:S(m)?m.$ms:G(m,this).$ms,G(this.$ms+x*(b?-1:1),this)},T.subtract=function(m,h){return this.add(m,h,!0)},T.locale=function(m){var h=this.clone();return h.$l=m,h},T.clone=function(){return G(this.$ms,this)},T.humanize=function(m){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!m)},T.valueOf=function(){return this.asMilliseconds()},T.milliseconds=function(){return this.get("milliseconds")},T.asMilliseconds=function(){return this.as("milliseconds")},T.seconds=function(){return this.get("seconds")},T.asSeconds=function(){return this.as("seconds")},T.minutes=function(){return this.get("minutes")},T.asMinutes=function(){return this.as("minutes")},T.hours=function(){return this.get("hours")},T.asHours=function(){return this.as("hours")},T.days=function(){return this.get("days")},T.asDays=function(){return this.as("days")},T.weeks=function(){return this.get("weeks")},T.asWeeks=function(){return this.as("weeks")},T.months=function(){return this.get("months")},T.asMonths=function(){return this.as("months")},T.years=function(){return this.get("years")},T.asYears=function(){return this.as("years")},F}(),j=function(F,T,m){return F.add(T.years()*m,"y").add(T.months()*m,"M").add(T.days()*m,"d").add(T.hours()*m,"h").add(T.minutes()*m,"m").add(T.seconds()*m,"s").add(T.milliseconds()*m,"ms")};return function(F,T,m){n=m,r=m().$utils(),m.duration=function(x,k){var g=m.locale();return G(x,{$l:g},k)},m.isDuration=S;var h=T.prototype.add,b=T.prototype.subtract;T.prototype.add=function(x,k){return S(x)?j(this,x,1):h.bind(this)(x,k)},T.prototype.subtract=function(x,k){return S(x)?j(this,x,-1):b.bind(this)(x,k)}}})})(Tn);var bi=Tn.exports;const wi=Qt(bi);var ke=function(){var t=d(function(g,u,f,p){for(f=f||{},p=g.length;p--;f[g[p]]=u);return f},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],r=[1,27],s=[1,28],o=[1,29],c=[1,30],y=[1,31],Y=[1,32],L=[1,33],C=[1,34],H=[1,9],U=[1,10],S=[1,11],G=[1,12],W=[1,13],_=[1,14],E=[1,15],V=[1,16],I=[1,19],Z=[1,20],j=[1,21],F=[1,22],T=[1,23],m=[1,25],h=[1,35],b={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:d(function(u,f,p,v,D,a,q){var i=a.length-1;switch(D){case 1:return a[i-1];case 2:this.$=[];break;case 3:a[i-1].push(a[i]),this.$=a[i-1];break;case 4:case 5:this.$=a[i];break;case 6:case 7:this.$=[];break;case 8:v.setWeekday("monday");break;case 9:v.setWeekday("tuesday");break;case 10:v.setWeekday("wednesday");break;case 11:v.setWeekday("thursday");break;case 12:v.setWeekday("friday");break;case 13:v.setWeekday("saturday");break;case 14:v.setWeekday("sunday");break;case 15:v.setWeekend("friday");break;case 16:v.setWeekend("saturday");break;case 17:v.setDateFormat(a[i].substr(11)),this.$=a[i].substr(11);break;case 18:v.enableInclusiveEndDates(),this.$=a[i].substr(18);break;case 19:v.TopAxis(),this.$=a[i].substr(8);break;case 20:v.setAxisFormat(a[i].substr(11)),this.$=a[i].substr(11);break;case 21:v.setTickInterval(a[i].substr(13)),this.$=a[i].substr(13);break;case 22:v.setExcludes(a[i].substr(9)),this.$=a[i].substr(9);break;case 23:v.setIncludes(a[i].substr(9)),this.$=a[i].substr(9);break;case 24:v.setTodayMarker(a[i].substr(12)),this.$=a[i].substr(12);break;case 27:v.setDiagramTitle(a[i].substr(6)),this.$=a[i].substr(6);break;case 28:this.$=a[i].trim(),v.setAccTitle(this.$);break;case 29:case 30:this.$=a[i].trim(),v.setAccDescription(this.$);break;case 31:v.addSection(a[i].substr(8)),this.$=a[i].substr(8);break;case 33:v.addTask(a[i-1],a[i]),this.$="task";break;case 34:this.$=a[i-1],v.setClickEvent(a[i-1],a[i],null);break;case 35:this.$=a[i-2],v.setClickEvent(a[i-2],a[i-1],a[i]);break;case 36:this.$=a[i-2],v.setClickEvent(a[i-2],a[i-1],null),v.setLink(a[i-2],a[i]);break;case 37:this.$=a[i-3],v.setClickEvent(a[i-3],a[i-2],a[i-1]),v.setLink(a[i-3],a[i]);break;case 38:this.$=a[i-2],v.setClickEvent(a[i-2],a[i],null),v.setLink(a[i-2],a[i-1]);break;case 39:this.$=a[i-3],v.setClickEvent(a[i-3],a[i-1],a[i]),v.setLink(a[i-3],a[i-2]);break;case 40:this.$=a[i-1],v.setLink(a[i-1],a[i]);break;case 41:case 47:this.$=a[i-1]+" "+a[i];break;case 42:case 43:case 45:this.$=a[i-2]+" "+a[i-1]+" "+a[i];break;case 44:case 46:this.$=a[i-3]+" "+a[i-2]+" "+a[i-1]+" "+a[i];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:17,12:n,13:r,14:s,15:o,16:c,17:y,18:Y,19:18,20:L,21:C,22:H,23:U,24:S,25:G,26:W,27:_,28:E,29:V,30:I,31:Z,33:j,35:F,36:T,37:24,38:m,40:h},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:n,13:r,14:s,15:o,16:c,17:y,18:Y,19:18,20:L,21:C,22:H,23:U,24:S,25:G,26:W,27:_,28:E,29:V,30:I,31:Z,33:j,35:F,36:T,37:24,38:m,40:h},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:d(function(u,f){if(f.recoverable)this.trace(u);else{var p=new Error(u);throw p.hash=f,p}},"parseError"),parse:d(function(u){var f=this,p=[0],v=[],D=[null],a=[],q=this.table,i="",M=0,R=0,z=2,N=1,K=a.slice.call(arguments,1),O=Object.create(this.lexer),st={yy:{}};for(var w in this.yy)Object.prototype.hasOwnProperty.call(this.yy,w)&&(st.yy[w]=this.yy[w]);O.setInput(u,st.yy),st.yy.lexer=O,st.yy.parser=this,typeof O.yylloc>"u"&&(O.yylloc={});var $=O.yylloc;a.push($);var P=O.options&&O.options.ranges;typeof st.yy.parseError=="function"?this.parseError=st.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function l(ot){p.length=p.length-2*ot,D.length=D.length-ot,a.length=a.length-ot}d(l,"popStack");function J(){var ot;return ot=v.pop()||O.lex()||N,typeof ot!="number"&&(ot instanceof Array&&(v=ot,ot=v.pop()),ot=f.symbols_[ot]||ot),ot}d(J,"lex");for(var A,Q,X,it,at={},ht,ct,Le,Nt;;){if(Q=p[p.length-1],this.defaultActions[Q]?X=this.defaultActions[Q]:((A===null||typeof A>"u")&&(A=J()),X=q[Q]&&q[Q][A]),typeof X>"u"||!X.length||!X[0]){var Jt="";Nt=[];for(ht in q[Q])this.terminals_[ht]&&ht>z&&Nt.push("'"+this.terminals_[ht]+"'");O.showPosition?Jt="Parse error on line "+(M+1)+`:
2
+ `+O.showPosition()+`
3
+ Expecting `+Nt.join(", ")+", got '"+(this.terminals_[A]||A)+"'":Jt="Parse error on line "+(M+1)+": Unexpected "+(A==N?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(Jt,{text:O.match,token:this.terminals_[A]||A,line:O.yylineno,loc:$,expected:Nt})}if(X[0]instanceof Array&&X.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Q+", token: "+A);switch(X[0]){case 1:p.push(A),D.push(O.yytext),a.push(O.yylloc),p.push(X[1]),A=null,R=O.yyleng,i=O.yytext,M=O.yylineno,$=O.yylloc;break;case 2:if(ct=this.productions_[X[1]][1],at.$=D[D.length-ct],at._$={first_line:a[a.length-(ct||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(ct||1)].first_column,last_column:a[a.length-1].last_column},P&&(at._$.range=[a[a.length-(ct||1)].range[0],a[a.length-1].range[1]]),it=this.performAction.apply(at,[i,R,M,st.yy,X[1],D,a].concat(K)),typeof it<"u")return it;ct&&(p=p.slice(0,-1*ct*2),D=D.slice(0,-1*ct),a=a.slice(0,-1*ct)),p.push(this.productions_[X[1]][0]),D.push(at.$),a.push(at._$),Le=q[p[p.length-2]][p[p.length-1]],p.push(Le);break;case 3:return!0}}return!0},"parse")},x=function(){var g={EOF:1,parseError:d(function(f,p){if(this.yy.parser)this.yy.parser.parseError(f,p);else throw new Error(f)},"parseError"),setInput:d(function(u,f){return this.yy=f||this.yy||{},this._input=u,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:d(function(){var u=this._input[0];this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u;var f=u.match(/(?:\r\n?|\n).*/g);return f?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),u},"input"),unput:d(function(u){var f=u.length,p=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-f),this.offset-=f;var v=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),p.length-1&&(this.yylineno-=p.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:p?(p.length===v.length?this.yylloc.first_column:0)+v[v.length-p.length].length-p[0].length:this.yylloc.first_column-f},this.options.ranges&&(this.yylloc.range=[D[0],D[0]+this.yyleng-f]),this.yyleng=this.yytext.length,this},"unput"),more:d(function(){return this._more=!0,this},"more"),reject:d(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:d(function(u){this.unput(this.match.slice(u))},"less"),pastInput:d(function(){var u=this.matched.substr(0,this.matched.length-this.match.length);return(u.length>20?"...":"")+u.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:d(function(){var u=this.match;return u.length<20&&(u+=this._input.substr(0,20-u.length)),(u.substr(0,20)+(u.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:d(function(){var u=this.pastInput(),f=new Array(u.length+1).join("-");return u+this.upcomingInput()+`
5
+ `+f+"^"},"showPosition"),test_match:d(function(u,f){var p,v,D;if(this.options.backtrack_lexer&&(D={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&&(D.yylloc.range=this.yylloc.range.slice(0))),v=u[0].match(/(?:\r\n?|\n).*/g),v&&(this.yylineno+=v.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:v?v[v.length-1].length-v[v.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+u[0].length},this.yytext+=u[0],this.match+=u[0],this.matches=u,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(u[0].length),this.matched+=u[0],p=this.performAction.call(this,this.yy,this,f,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),p)return p;if(this._backtrack){for(var a in D)this[a]=D[a];return!1}return!1},"test_match"),next:d(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var u,f,p,v;this._more||(this.yytext="",this.match="");for(var D=this._currentRules(),a=0;a<D.length;a++)if(p=this._input.match(this.rules[D[a]]),p&&(!f||p[0].length>f[0].length)){if(f=p,v=a,this.options.backtrack_lexer){if(u=this.test_match(p,D[a]),u!==!1)return u;if(this._backtrack){f=!1;continue}else return!1}else if(!this.options.flex)break}return f?(u=this.test_match(f,D[v]),u!==!1?u:!1):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:d(function(){var f=this.next();return f||this.lex()},"lex"),begin:d(function(f){this.conditionStack.push(f)},"begin"),popState:d(function(){var f=this.conditionStack.length-1;return f>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:d(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:d(function(f){return f=this.conditionStack.length-1-Math.abs(f||0),f>=0?this.conditionStack[f]:"INITIAL"},"topState"),pushState:d(function(f){this.begin(f)},"pushState"),stateStackSize:d(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:d(function(f,p,v,D){switch(v){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),31;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),33;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return g}();b.lexer=x;function k(){this.yy={}}return d(k,"Parser"),k.prototype=b,b.Parser=k,new k}();ke.parser=ke;var Ci=ke;rt.extend(ki);rt.extend(vi);rt.extend(xi);var Ze={friday:5,saturday:6},ut="",we="",Ce=void 0,De="",Ot=[],$t=[],Me=new Map,Se=[],Xt=[],St="",_e="",xn=["active","done","crit","milestone","vert"],Ye=[],Ht=!1,Fe=!1,Ue="sunday",Gt="saturday",pe=0,Di=d(function(){Se=[],Xt=[],St="",Ye=[],Rt=0,Te=void 0,Zt=void 0,tt=[],ut="",we="",_e="",Ce=void 0,De="",Ot=[],$t=[],Ht=!1,Fe=!1,pe=0,Me=new Map,$n(),Ue="sunday",Gt="saturday"},"clear"),Mi=d(function(t){we=t},"setAxisFormat"),Si=d(function(){return we},"getAxisFormat"),_i=d(function(t){Ce=t},"setTickInterval"),Yi=d(function(){return Ce},"getTickInterval"),Fi=d(function(t){De=t},"setTodayMarker"),Ui=d(function(){return De},"getTodayMarker"),Ei=d(function(t){ut=t},"setDateFormat"),Li=d(function(){Ht=!0},"enableInclusiveEndDates"),Ii=d(function(){return Ht},"endDatesAreInclusive"),Ai=d(function(){Fe=!0},"enableTopAxis"),Wi=d(function(){return Fe},"topAxisEnabled"),Oi=d(function(t){_e=t},"setDisplayMode"),$i=d(function(){return _e},"getDisplayMode"),Hi=d(function(){return ut},"getDateFormat"),Ni=d(function(t){Ot=t.toLowerCase().split(/[\s,]+/)},"setIncludes"),Pi=d(function(){return Ot},"getIncludes"),Vi=d(function(t){$t=t.toLowerCase().split(/[\s,]+/)},"setExcludes"),zi=d(function(){return $t},"getExcludes"),Ri=d(function(){return Me},"getLinks"),Zi=d(function(t){St=t,Se.push(t)},"addSection"),Bi=d(function(){return Se},"getSections"),qi=d(function(){let t=Be();const e=10;let n=0;for(;!t&&n<e;)t=Be(),n++;return Xt=tt,Xt},"getTasks"),bn=d(function(t,e,n,r){const s=t.format(e.trim()),o=t.format("YYYY-MM-DD");return r.includes(s)||r.includes(o)?!1:n.includes("weekends")&&(t.isoWeekday()===Ze[Gt]||t.isoWeekday()===Ze[Gt]+1)||n.includes(t.format("dddd").toLowerCase())?!0:n.includes(s)||n.includes(o)},"isInvalidDate"),Xi=d(function(t){Ue=t},"setWeekday"),Gi=d(function(){return Ue},"getWeekday"),ji=d(function(t){Gt=t},"setWeekend"),wn=d(function(t,e,n,r){if(!n.length||t.manualEndTime)return;let s;t.startTime instanceof Date?s=rt(t.startTime):s=rt(t.startTime,e,!0),s=s.add(1,"d");let o;t.endTime instanceof Date?o=rt(t.endTime):o=rt(t.endTime,e,!0);const[c,y]=Qi(s,o,e,n,r);t.endTime=c.toDate(),t.renderEndTime=y},"checkTaskDates"),Qi=d(function(t,e,n,r,s){let o=!1,c=null;for(;t<=e;)o||(c=e.toDate()),o=bn(t,n,r,s),o&&(e=e.add(1,"d")),t=t.add(1,"d");return[e,c]},"fixTaskDates"),ve=d(function(t,e,n){if(n=n.trim(),d(y=>{const Y=y.trim();return Y==="x"||Y==="X"},"isTimestampFormat")(e)&&/^\d+$/.test(n))return new Date(Number(n));const o=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(o!==null){let y=null;for(const L of o.groups.ids.split(" ")){let C=xt(L);C!==void 0&&(!y||C.endTime>y.endTime)&&(y=C)}if(y)return y.endTime;const Y=new Date;return Y.setHours(0,0,0,0),Y}let c=rt(n,e.trim(),!0);if(c.isValid())return c.toDate();{gt.debug("Invalid date:"+n),gt.debug("With date format:"+e.trim());const y=new Date(n);if(y===void 0||isNaN(y.getTime())||y.getFullYear()<-1e4||y.getFullYear()>1e4)throw new Error("Invalid date:"+n);return y}},"getStartDate"),Cn=d(function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return e!==null?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},"parseDuration"),Dn=d(function(t,e,n,r=!1){n=n.trim();const o=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(o!==null){let C=null;for(const U of o.groups.ids.split(" ")){let S=xt(U);S!==void 0&&(!C||S.startTime<C.startTime)&&(C=S)}if(C)return C.startTime;const H=new Date;return H.setHours(0,0,0,0),H}let c=rt(n,e.trim(),!0);if(c.isValid())return r&&(c=c.add(1,"d")),c.toDate();let y=rt(t);const[Y,L]=Cn(n);if(!Number.isNaN(Y)){const C=y.add(Y,L);C.isValid()&&(y=C)}return y.toDate()},"getEndDate"),Rt=0,Dt=d(function(t){return t===void 0?(Rt=Rt+1,"task"+Rt):t},"parseId"),Ji=d(function(t,e){let n;e.substr(0,1)===":"?n=e.substr(1,e.length):n=e;const r=n.split(","),s={};Ee(r,s,xn);for(let c=0;c<r.length;c++)r[c]=r[c].trim();let o="";switch(r.length){case 1:s.id=Dt(),s.startTime=t.endTime,o=r[0];break;case 2:s.id=Dt(),s.startTime=ve(void 0,ut,r[0]),o=r[1];break;case 3:s.id=Dt(r[0]),s.startTime=ve(void 0,ut,r[1]),o=r[2];break}return o&&(s.endTime=Dn(s.startTime,ut,o,Ht),s.manualEndTime=rt(o,"YYYY-MM-DD",!0).isValid(),wn(s,ut,$t,Ot)),s},"compileData"),Ki=d(function(t,e){let n;e.substr(0,1)===":"?n=e.substr(1,e.length):n=e;const r=n.split(","),s={};Ee(r,s,xn);for(let o=0;o<r.length;o++)r[o]=r[o].trim();switch(r.length){case 1:s.id=Dt(),s.startTime={type:"prevTaskEnd",id:t},s.endTime={data:r[0]};break;case 2:s.id=Dt(),s.startTime={type:"getStartDate",startData:r[0]},s.endTime={data:r[1]};break;case 3:s.id=Dt(r[0]),s.startTime={type:"getStartDate",startData:r[1]},s.endTime={data:r[2]};break}return s},"parseData"),Te,Zt,tt=[],Mn={},ts=d(function(t,e){const n={section:St,type:St,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},r=Ki(Zt,e);n.raw.startTime=r.startTime,n.raw.endTime=r.endTime,n.id=r.id,n.prevTaskId=Zt,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.vert=r.vert,n.order=pe,pe++;const s=tt.push(n);Zt=n.id,Mn[n.id]=s-1},"addTask"),xt=d(function(t){const e=Mn[t];return tt[e]},"findTaskById"),es=d(function(t,e){const n={section:St,type:St,description:t,task:t,classes:[]},r=Ji(Te,e);n.startTime=r.startTime,n.endTime=r.endTime,n.id=r.id,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.vert=r.vert,Te=n,Xt.push(n)},"addTaskOrg"),Be=d(function(){const t=d(function(n){const r=tt[n];let s="";switch(tt[n].raw.startTime.type){case"prevTaskEnd":{const o=xt(r.prevTaskId);r.startTime=o.endTime;break}case"getStartDate":s=ve(void 0,ut,tt[n].raw.startTime.startData),s&&(tt[n].startTime=s);break}return tt[n].startTime&&(tt[n].endTime=Dn(tt[n].startTime,ut,tt[n].raw.endTime.data,Ht),tt[n].endTime&&(tt[n].processed=!0,tt[n].manualEndTime=rt(tt[n].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),wn(tt[n],ut,$t,Ot))),tt[n].processed},"compileTask");let e=!0;for(const[n,r]of tt.entries())t(n),e=e&&r.processed;return e},"compileTasks"),ns=d(function(t,e){let n=e;wt().securityLevel!=="loose"&&(n=On(e)),t.split(",").forEach(function(r){xt(r)!==void 0&&(_n(r,()=>{window.open(n,"_self")}),Me.set(r,n))}),Sn(t,"clickable")},"setLink"),Sn=d(function(t,e){t.split(",").forEach(function(n){let r=xt(n);r!==void 0&&r.classes.push(e)})},"setClass"),rs=d(function(t,e,n){if(wt().securityLevel!=="loose"||e===void 0)return;let r=[];if(typeof n=="string"){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let o=0;o<r.length;o++){let c=r[o].trim();c.startsWith('"')&&c.endsWith('"')&&(c=c.substr(1,c.length-2)),r[o]=c}}r.length===0&&r.push(t),xt(t)!==void 0&&_n(t,()=>{Hn.runFunc(e,...r)})},"setClickFun"),_n=d(function(t,e){Ye.push(function(){const n=document.querySelector(`[id="${t}"]`);n!==null&&n.addEventListener("click",function(){e()})},function(){const n=document.querySelector(`[id="${t}-text"]`);n!==null&&n.addEventListener("click",function(){e()})})},"pushFun"),is=d(function(t,e,n){t.split(",").forEach(function(r){rs(r,e,n)}),Sn(t,"clickable")},"setClickEvent"),ss=d(function(t){Ye.forEach(function(e){e(t)})},"bindFunctions"),as={getConfig:d(()=>wt().gantt,"getConfig"),clear:Di,setDateFormat:Ei,getDateFormat:Hi,enableInclusiveEndDates:Li,endDatesAreInclusive:Ii,enableTopAxis:Ai,topAxisEnabled:Wi,setAxisFormat:Mi,getAxisFormat:Si,setTickInterval:_i,getTickInterval:Yi,setTodayMarker:Fi,getTodayMarker:Ui,setAccTitle:In,getAccTitle:Ln,setDiagramTitle:En,getDiagramTitle:Un,setDisplayMode:Oi,getDisplayMode:$i,setAccDescription:Fn,getAccDescription:Yn,addSection:Zi,getSections:Bi,getTasks:qi,addTask:ts,findTaskById:xt,addTaskOrg:es,setIncludes:Ni,getIncludes:Pi,setExcludes:Vi,getExcludes:zi,setClickEvent:is,setLink:ns,getLinks:Ri,bindFunctions:ss,parseDuration:Cn,isInvalidDate:bn,setWeekday:Xi,getWeekday:Gi,setWeekend:ji};function Ee(t,e,n){let r=!0;for(;r;)r=!1,n.forEach(function(s){const o="^\\s*"+s+"\\s*$",c=new RegExp(o);t[0].match(c)&&(e[s]=!0,t.shift(1),r=!0)})}d(Ee,"getTaskTags");rt.extend(wi);var os=d(function(){gt.debug("Something is calling, setConf, remove the call")},"setConf"),qe={monday:Wt,tuesday:cn,wednesday:un,thursday:yt,friday:ln,saturday:fn,sunday:be},cs=d((t,e)=>{let n=[...t].map(()=>-1/0),r=[...t].sort((o,c)=>o.startTime-c.startTime||o.order-c.order),s=0;for(const o of r)for(let c=0;c<n.length;c++)if(o.startTime>=n[c]){n[c]=o.endTime,o.order=c+e,c>s&&(s=c);break}return s},"getMaxIntersections"),ft,ue=1e4,us=d(function(t,e,n,r){const s=wt().gantt,o=wt().securityLevel;let c;o==="sandbox"&&(c=Pt("#i"+e));const y=o==="sandbox"?Pt(c.nodes()[0].contentDocument.body):Pt("body"),Y=o==="sandbox"?c.nodes()[0].contentDocument:document,L=Y.getElementById(e);ft=L.parentElement.offsetWidth,ft===void 0&&(ft=1200),s.useWidth!==void 0&&(ft=s.useWidth);const C=r.db.getTasks();let H=[];for(const h of C)H.push(h.type);H=m(H);const U={};let S=2*s.topPadding;if(r.db.getDisplayMode()==="compact"||s.displayMode==="compact"){const h={};for(const x of C)h[x.section]===void 0?h[x.section]=[x]:h[x.section].push(x);let b=0;for(const x of Object.keys(h)){const k=cs(h[x],b)+1;b+=k,S+=k*(s.barHeight+s.barGap),U[x]=k}}else{S+=C.length*(s.barHeight+s.barGap);for(const h of H)U[h]=C.filter(b=>b.type===h).length}L.setAttribute("viewBox","0 0 "+ft+" "+S);const G=y.select(`[id="${e}"]`),W=Nn().domain([Pn(C,function(h){return h.startTime}),Vn(C,function(h){return h.endTime})]).rangeRound([0,ft-s.leftPadding-s.rightPadding]);function _(h,b){const x=h.startTime,k=b.startTime;let g=0;return x>k?g=1:x<k&&(g=-1),g}d(_,"taskCompare"),C.sort(_),E(C,ft,S),An(G,S,ft,s.useMaxWidth),G.append("text").text(r.db.getDiagramTitle()).attr("x",ft/2).attr("y",s.titleTopMargin).attr("class","titleText");function E(h,b,x){const k=s.barHeight,g=k+s.barGap,u=s.topPadding,f=s.leftPadding,p=zn().domain([0,H.length]).range(["#00B9FA","#F95002"]).interpolate(ar);I(g,u,f,b,x,h,r.db.getExcludes(),r.db.getIncludes()),j(f,u,b,x),V(h,g,u,f,k,p,b),F(g,u),T(f,u,b,x)}d(E,"makeGantt");function V(h,b,x,k,g,u,f){h.sort((i,M)=>i.vert===M.vert?0:i.vert?1:-1);const v=[...new Set(h.map(i=>i.order))].map(i=>h.find(M=>M.order===i));G.append("g").selectAll("rect").data(v).enter().append("rect").attr("x",0).attr("y",function(i,M){return M=i.order,M*b+x-2}).attr("width",function(){return f-s.rightPadding/2}).attr("height",b).attr("class",function(i){for(const[M,R]of H.entries())if(i.type===R)return"section section"+M%s.numberSectionStyles;return"section section0"}).enter();const D=G.append("g").selectAll("rect").data(h).enter(),a=r.db.getLinks();if(D.append("rect").attr("id",function(i){return i.id}).attr("rx",3).attr("ry",3).attr("x",function(i){return i.milestone?W(i.startTime)+k+.5*(W(i.endTime)-W(i.startTime))-.5*g:W(i.startTime)+k}).attr("y",function(i,M){return M=i.order,i.vert?s.gridLineStartPadding:M*b+x}).attr("width",function(i){return i.milestone?g:i.vert?.08*g:W(i.renderEndTime||i.endTime)-W(i.startTime)}).attr("height",function(i){return i.vert?C.length*(s.barHeight+s.barGap)+s.barHeight*2:g}).attr("transform-origin",function(i,M){return M=i.order,(W(i.startTime)+k+.5*(W(i.endTime)-W(i.startTime))).toString()+"px "+(M*b+x+.5*g).toString()+"px"}).attr("class",function(i){const M="task";let R="";i.classes.length>0&&(R=i.classes.join(" "));let z=0;for(const[K,O]of H.entries())i.type===O&&(z=K%s.numberSectionStyles);let N="";return i.active?i.crit?N+=" activeCrit":N=" active":i.done?i.crit?N=" doneCrit":N=" done":i.crit&&(N+=" crit"),N.length===0&&(N=" task"),i.milestone&&(N=" milestone "+N),i.vert&&(N=" vert "+N),N+=z,N+=" "+R,M+N}),D.append("text").attr("id",function(i){return i.id+"-text"}).text(function(i){return i.task}).attr("font-size",s.fontSize).attr("x",function(i){let M=W(i.startTime),R=W(i.renderEndTime||i.endTime);if(i.milestone&&(M+=.5*(W(i.endTime)-W(i.startTime))-.5*g,R=M+g),i.vert)return W(i.startTime)+k;const z=this.getBBox().width;return z>R-M?R+z+1.5*s.leftPadding>f?M+k-5:R+k+5:(R-M)/2+M+k}).attr("y",function(i,M){return i.vert?s.gridLineStartPadding+C.length*(s.barHeight+s.barGap)+60:(M=i.order,M*b+s.barHeight/2+(s.fontSize/2-2)+x)}).attr("text-height",g).attr("class",function(i){const M=W(i.startTime);let R=W(i.endTime);i.milestone&&(R=M+g);const z=this.getBBox().width;let N="";i.classes.length>0&&(N=i.classes.join(" "));let K=0;for(const[st,w]of H.entries())i.type===w&&(K=st%s.numberSectionStyles);let O="";return i.active&&(i.crit?O="activeCritText"+K:O="activeText"+K),i.done?i.crit?O=O+" doneCritText"+K:O=O+" doneText"+K:i.crit&&(O=O+" critText"+K),i.milestone&&(O+=" milestoneText"),i.vert&&(O+=" vertText"),z>R-M?R+z+1.5*s.leftPadding>f?N+" taskTextOutsideLeft taskTextOutside"+K+" "+O:N+" taskTextOutsideRight taskTextOutside"+K+" "+O+" width-"+z:N+" taskText taskText"+K+" "+O+" width-"+z}),wt().securityLevel==="sandbox"){let i;i=Pt("#i"+e);const M=i.nodes()[0].contentDocument;D.filter(function(R){return a.has(R.id)}).each(function(R){var z=M.querySelector("#"+R.id),N=M.querySelector("#"+R.id+"-text");const K=z.parentNode;var O=M.createElement("a");O.setAttribute("xlink:href",a.get(R.id)),O.setAttribute("target","_top"),K.appendChild(O),O.appendChild(z),O.appendChild(N)})}}d(V,"drawRects");function I(h,b,x,k,g,u,f,p){if(f.length===0&&p.length===0)return;let v,D;for(const{startTime:z,endTime:N}of u)(v===void 0||z<v)&&(v=z),(D===void 0||N>D)&&(D=N);if(!v||!D)return;if(rt(D).diff(rt(v),"year")>5){gt.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}const a=r.db.getDateFormat(),q=[];let i=null,M=rt(v);for(;M.valueOf()<=D;)r.db.isInvalidDate(M,a,f,p)?i?i.end=M:i={start:M,end:M}:i&&(q.push(i),i=null),M=M.add(1,"d");G.append("g").selectAll("rect").data(q).enter().append("rect").attr("id",z=>"exclude-"+z.start.format("YYYY-MM-DD")).attr("x",z=>W(z.start.startOf("day"))+x).attr("y",s.gridLineStartPadding).attr("width",z=>W(z.end.endOf("day"))-W(z.start.startOf("day"))).attr("height",g-b-s.gridLineStartPadding).attr("transform-origin",function(z,N){return(W(z.start)+x+.5*(W(z.end)-W(z.start))).toString()+"px "+(N*h+.5*g).toString()+"px"}).attr("class","exclude-range")}d(I,"drawExcludeDays");function Z(h,b,x,k){if(x<=0||h>b)return 1/0;const g=b-h,u=rt.duration({[k??"day"]:x}).asMilliseconds();return u<=0?1/0:Math.ceil(g/u)}d(Z,"getEstimatedTickCount");function j(h,b,x,k){const g=r.db.getDateFormat(),u=r.db.getAxisFormat();let f;u?f=u:g==="D"?f="%d":f=s.axisFormat??"%Y-%m-%d";let p=Kn(W).tickSize(-k+b+s.gridLineStartPadding).tickFormat(ye(f));const D=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||s.tickInterval);if(D!==null){const a=parseInt(D[1],10);if(isNaN(a)||a<=0)gt.warn(`Invalid tick interval value: "${D[1]}". Skipping custom tick interval.`);else{const q=D[2],i=r.db.getWeekday()||s.weekday,M=W.domain(),R=M[0],z=M[1],N=Z(R,z,a,q);if(N>ue)gt.warn(`The tick interval "${a}${q}" would generate ${N} ticks, which exceeds the maximum allowed (${ue}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(q){case"millisecond":p.ticks(Ut.every(a));break;case"second":p.ticks(de.every(a));break;case"minute":p.ticks(he.every(a));break;case"hour":p.ticks(me.every(a));break;case"day":p.ticks(At.every(a));break;case"week":p.ticks(qe[i].every(a));break;case"month":p.ticks(ge.every(a));break}}}if(G.append("g").attr("class","grid").attr("transform","translate("+h+", "+(k-50)+")").call(p).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),r.db.topAxisEnabled()||s.topAxis){let a=Jn(W).tickSize(-k+b+s.gridLineStartPadding).tickFormat(ye(f));if(D!==null){const q=parseInt(D[1],10);if(isNaN(q)||q<=0)gt.warn(`Invalid tick interval value: "${D[1]}". Skipping custom tick interval.`);else{const i=D[2],M=r.db.getWeekday()||s.weekday,R=W.domain(),z=R[0],N=R[1];if(Z(z,N,q,i)<=ue)switch(i){case"millisecond":a.ticks(Ut.every(q));break;case"second":a.ticks(de.every(q));break;case"minute":a.ticks(he.every(q));break;case"hour":a.ticks(me.every(q));break;case"day":a.ticks(At.every(q));break;case"week":a.ticks(qe[M].every(q));break;case"month":a.ticks(ge.every(q));break}}}G.append("g").attr("class","grid").attr("transform","translate("+h+", "+b+")").call(a).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}d(j,"makeGrid");function F(h,b){let x=0;const k=Object.keys(U).map(g=>[g,U[g]]);G.append("g").selectAll("text").data(k).enter().append(function(g){const u=g[0].split(Wn.lineBreakRegex),f=-(u.length-1)/2,p=Y.createElementNS("http://www.w3.org/2000/svg","text");p.setAttribute("dy",f+"em");for(const[v,D]of u.entries()){const a=Y.createElementNS("http://www.w3.org/2000/svg","tspan");a.setAttribute("alignment-baseline","central"),a.setAttribute("x","10"),v>0&&a.setAttribute("dy","1em"),a.textContent=D,p.appendChild(a)}return p}).attr("x",10).attr("y",function(g,u){if(u>0)for(let f=0;f<u;f++)return x+=k[u-1][1],g[1]*h/2+x*h+b;else return g[1]*h/2+b}).attr("font-size",s.sectionFontSize).attr("class",function(g){for(const[u,f]of H.entries())if(g[0]===f)return"sectionTitle sectionTitle"+u%s.numberSectionStyles;return"sectionTitle"})}d(F,"vertLabels");function T(h,b,x,k){const g=r.db.getTodayMarker();if(g==="off")return;const u=G.append("g").attr("class","today"),f=new Date,p=u.append("line");p.attr("x1",W(f)+h).attr("x2",W(f)+h).attr("y1",s.titleTopMargin).attr("y2",k-s.titleTopMargin).attr("class","today"),g!==""&&p.attr("style",g.replace(/,/g,";"))}d(T,"drawToday");function m(h){const b={},x=[];for(let k=0,g=h.length;k<g;++k)Object.prototype.hasOwnProperty.call(b,h[k])||(b[h[k]]=!0,x.push(h[k]));return x}d(m,"checkUnique")},"draw"),ls={setConf:os,draw:us},fs=d(t=>`
7
+ .mermaid-main-font {
8
+ font-family: ${t.fontFamily};
9
+ }
10
+
11
+ .exclude-range {
12
+ fill: ${t.excludeBkgColor};
13
+ }
14
+
15
+ .section {
16
+ stroke: none;
17
+ opacity: 0.2;
18
+ }
19
+
20
+ .section0 {
21
+ fill: ${t.sectionBkgColor};
22
+ }
23
+
24
+ .section2 {
25
+ fill: ${t.sectionBkgColor2};
26
+ }
27
+
28
+ .section1,
29
+ .section3 {
30
+ fill: ${t.altSectionBkgColor};
31
+ opacity: 0.2;
32
+ }
33
+
34
+ .sectionTitle0 {
35
+ fill: ${t.titleColor};
36
+ }
37
+
38
+ .sectionTitle1 {
39
+ fill: ${t.titleColor};
40
+ }
41
+
42
+ .sectionTitle2 {
43
+ fill: ${t.titleColor};
44
+ }
45
+
46
+ .sectionTitle3 {
47
+ fill: ${t.titleColor};
48
+ }
49
+
50
+ .sectionTitle {
51
+ text-anchor: start;
52
+ font-family: ${t.fontFamily};
53
+ }
54
+
55
+
56
+ /* Grid and axis */
57
+
58
+ .grid .tick {
59
+ stroke: ${t.gridColor};
60
+ opacity: 0.8;
61
+ shape-rendering: crispEdges;
62
+ }
63
+
64
+ .grid .tick text {
65
+ font-family: ${t.fontFamily};
66
+ fill: ${t.textColor};
67
+ }
68
+
69
+ .grid path {
70
+ stroke-width: 0;
71
+ }
72
+
73
+
74
+ /* Today line */
75
+
76
+ .today {
77
+ fill: none;
78
+ stroke: ${t.todayLineColor};
79
+ stroke-width: 2px;
80
+ }
81
+
82
+
83
+ /* Task styling */
84
+
85
+ /* Default task */
86
+
87
+ .task {
88
+ stroke-width: 2;
89
+ }
90
+
91
+ .taskText {
92
+ text-anchor: middle;
93
+ font-family: ${t.fontFamily};
94
+ }
95
+
96
+ .taskTextOutsideRight {
97
+ fill: ${t.taskTextDarkColor};
98
+ text-anchor: start;
99
+ font-family: ${t.fontFamily};
100
+ }
101
+
102
+ .taskTextOutsideLeft {
103
+ fill: ${t.taskTextDarkColor};
104
+ text-anchor: end;
105
+ }
106
+
107
+
108
+ /* Special case clickable */
109
+
110
+ .task.clickable {
111
+ cursor: pointer;
112
+ }
113
+
114
+ .taskText.clickable {
115
+ cursor: pointer;
116
+ fill: ${t.taskTextClickableColor} !important;
117
+ font-weight: bold;
118
+ }
119
+
120
+ .taskTextOutsideLeft.clickable {
121
+ cursor: pointer;
122
+ fill: ${t.taskTextClickableColor} !important;
123
+ font-weight: bold;
124
+ }
125
+
126
+ .taskTextOutsideRight.clickable {
127
+ cursor: pointer;
128
+ fill: ${t.taskTextClickableColor} !important;
129
+ font-weight: bold;
130
+ }
131
+
132
+
133
+ /* Specific task settings for the sections*/
134
+
135
+ .taskText0,
136
+ .taskText1,
137
+ .taskText2,
138
+ .taskText3 {
139
+ fill: ${t.taskTextColor};
140
+ }
141
+
142
+ .task0,
143
+ .task1,
144
+ .task2,
145
+ .task3 {
146
+ fill: ${t.taskBkgColor};
147
+ stroke: ${t.taskBorderColor};
148
+ }
149
+
150
+ .taskTextOutside0,
151
+ .taskTextOutside2
152
+ {
153
+ fill: ${t.taskTextOutsideColor};
154
+ }
155
+
156
+ .taskTextOutside1,
157
+ .taskTextOutside3 {
158
+ fill: ${t.taskTextOutsideColor};
159
+ }
160
+
161
+
162
+ /* Active task */
163
+
164
+ .active0,
165
+ .active1,
166
+ .active2,
167
+ .active3 {
168
+ fill: ${t.activeTaskBkgColor};
169
+ stroke: ${t.activeTaskBorderColor};
170
+ }
171
+
172
+ .activeText0,
173
+ .activeText1,
174
+ .activeText2,
175
+ .activeText3 {
176
+ fill: ${t.taskTextDarkColor} !important;
177
+ }
178
+
179
+
180
+ /* Completed task */
181
+
182
+ .done0,
183
+ .done1,
184
+ .done2,
185
+ .done3 {
186
+ stroke: ${t.doneTaskBorderColor};
187
+ fill: ${t.doneTaskBkgColor};
188
+ stroke-width: 2;
189
+ }
190
+
191
+ .doneText0,
192
+ .doneText1,
193
+ .doneText2,
194
+ .doneText3 {
195
+ fill: ${t.taskTextDarkColor} !important;
196
+ }
197
+
198
+ /* Done task text displayed outside the bar sits against the diagram background,
199
+ not against the done-task bar, so it must use the outside/contrast color. */
200
+ .doneText0.taskTextOutsideLeft,
201
+ .doneText0.taskTextOutsideRight,
202
+ .doneText1.taskTextOutsideLeft,
203
+ .doneText1.taskTextOutsideRight,
204
+ .doneText2.taskTextOutsideLeft,
205
+ .doneText2.taskTextOutsideRight,
206
+ .doneText3.taskTextOutsideLeft,
207
+ .doneText3.taskTextOutsideRight {
208
+ fill: ${t.taskTextOutsideColor} !important;
209
+ }
210
+
211
+
212
+ /* Tasks on the critical line */
213
+
214
+ .crit0,
215
+ .crit1,
216
+ .crit2,
217
+ .crit3 {
218
+ stroke: ${t.critBorderColor};
219
+ fill: ${t.critBkgColor};
220
+ stroke-width: 2;
221
+ }
222
+
223
+ .activeCrit0,
224
+ .activeCrit1,
225
+ .activeCrit2,
226
+ .activeCrit3 {
227
+ stroke: ${t.critBorderColor};
228
+ fill: ${t.activeTaskBkgColor};
229
+ stroke-width: 2;
230
+ }
231
+
232
+ .doneCrit0,
233
+ .doneCrit1,
234
+ .doneCrit2,
235
+ .doneCrit3 {
236
+ stroke: ${t.critBorderColor};
237
+ fill: ${t.doneTaskBkgColor};
238
+ stroke-width: 2;
239
+ cursor: pointer;
240
+ shape-rendering: crispEdges;
241
+ }
242
+
243
+ .milestone {
244
+ transform: rotate(45deg) scale(0.8,0.8);
245
+ }
246
+
247
+ .milestoneText {
248
+ font-style: italic;
249
+ }
250
+ .doneCritText0,
251
+ .doneCritText1,
252
+ .doneCritText2,
253
+ .doneCritText3 {
254
+ fill: ${t.taskTextDarkColor} !important;
255
+ }
256
+
257
+ /* Done-crit task text outside the bar — same reasoning as doneText above. */
258
+ .doneCritText0.taskTextOutsideLeft,
259
+ .doneCritText0.taskTextOutsideRight,
260
+ .doneCritText1.taskTextOutsideLeft,
261
+ .doneCritText1.taskTextOutsideRight,
262
+ .doneCritText2.taskTextOutsideLeft,
263
+ .doneCritText2.taskTextOutsideRight,
264
+ .doneCritText3.taskTextOutsideLeft,
265
+ .doneCritText3.taskTextOutsideRight {
266
+ fill: ${t.taskTextOutsideColor} !important;
267
+ }
268
+
269
+ .vert {
270
+ stroke: ${t.vertLineColor};
271
+ }
272
+
273
+ .vertText {
274
+ font-size: 15px;
275
+ text-anchor: middle;
276
+ fill: ${t.vertLineColor} !important;
277
+ }
278
+
279
+ .activeCritText0,
280
+ .activeCritText1,
281
+ .activeCritText2,
282
+ .activeCritText3 {
283
+ fill: ${t.taskTextDarkColor} !important;
284
+ }
285
+
286
+ .titleText {
287
+ text-anchor: middle;
288
+ font-size: 18px;
289
+ fill: ${t.titleColor||t.textColor};
290
+ font-family: ${t.fontFamily};
291
+ }
292
+ `,"getStyles"),ds=fs,Ts={parser:Ci,db:as,renderer:ls,styles:ds};export{Ts as diagram};