cmcts-c-agent-embedding 1.1.1-cmcuni → 1.1.3-cmcuni
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_basePickBy-1057a1b4.js +1 -0
- package/dist/_basePickBy-cbf78fb3.js +1 -0
- package/dist/_baseUniq-38ea2195.js +1 -0
- package/dist/_baseUniq-52a47b7b.js +1 -0
- package/dist/arc-6b847bc0.js +1 -0
- package/dist/arc-8928af28.js +1 -0
- package/dist/architecture-O4VJ6CD3-42323263.js +1 -0
- package/dist/architecture-O4VJ6CD3-b506967f.js +1 -0
- package/dist/architectureDiagram-VXUJARFQ-1bd867b6.js +1 -0
- package/dist/architectureDiagram-VXUJARFQ-2b851c59.js +1 -0
- package/dist/blockDiagram-VD42YOAC-5cea96b0.js +1 -0
- package/dist/blockDiagram-VD42YOAC-a909b757.js +1 -0
- package/dist/c4Diagram-YG6GDRKO-24d24519.js +1 -0
- package/dist/c4Diagram-YG6GDRKO-54783ab3.js +1 -0
- package/dist/channel-2af69aa2.js +1 -0
- package/dist/channel-f240e622.js +1 -0
- package/dist/chunk-4BX2VUAB-7747ae72.js +1 -0
- package/dist/chunk-4BX2VUAB-d05d937e.js +1 -0
- package/dist/chunk-55IACEB6-5a7b1be3.js +1 -0
- package/dist/chunk-55IACEB6-78729976.js +1 -0
- package/dist/chunk-B4BG7PRW-a97e69ff.js +1 -0
- package/dist/chunk-B4BG7PRW-cbf800c4.js +1 -0
- package/dist/chunk-DI55MBZ5-5dc4f926.js +1 -0
- package/dist/chunk-DI55MBZ5-95d71f6f.js +1 -0
- package/dist/chunk-FMBD7UC4-2c653fda.js +1 -0
- package/dist/chunk-FMBD7UC4-d75ed695.js +1 -0
- package/dist/chunk-QN33PNHL-0bf10733.js +1 -0
- package/dist/chunk-QN33PNHL-b00655c9.js +1 -0
- package/dist/chunk-QZHKN3VN-a979a9fe.js +1 -0
- package/dist/chunk-QZHKN3VN-d57979be.js +1 -0
- package/dist/chunk-TZMSLE5B-6755c559.js +1 -0
- package/dist/chunk-TZMSLE5B-ed6d6d7e.js +1 -0
- package/dist/classDiagram-2ON5EDUG-8b5a2a93.js +1 -0
- package/dist/classDiagram-2ON5EDUG-fa9ecfbb.js +1 -0
- package/dist/classDiagram-v2-WZHVMYZB-8b5a2a93.js +1 -0
- package/dist/classDiagram-v2-WZHVMYZB-fa9ecfbb.js +1 -0
- package/dist/clone-6cd174cf.js +1 -0
- package/dist/clone-8494eb3f.js +1 -0
- package/dist/components/Bot.d.ts.map +1 -1
- package/dist/components/bubbles/BotBubble.d.ts +1 -0
- package/dist/components/bubbles/BotBubble.d.ts.map +1 -1
- package/dist/components/buttons/ConsultationButton.d.ts +1 -0
- package/dist/components/buttons/ConsultationButton.d.ts.map +1 -1
- package/dist/components/buttons/PopupToast.d.ts +1 -1
- package/dist/components/buttons/PopupToast.d.ts.map +1 -1
- package/dist/components/buttons/ZaloChatButton.d.ts +16 -0
- package/dist/components/buttons/ZaloChatButton.d.ts.map +1 -0
- package/dist/components/demo/ZaloChatDemo.d.ts +2 -0
- package/dist/components/demo/ZaloChatDemo.d.ts.map +1 -0
- package/dist/components/modals/QuickChatModal.d.ts +10 -0
- package/dist/components/modals/QuickChatModal.d.ts.map +1 -0
- package/dist/components/modals/ZaloHybridWidget.d.ts +9 -0
- package/dist/components/modals/ZaloHybridWidget.d.ts.map +1 -0
- package/dist/components/modals/ZaloOfficialWidget.d.ts +12 -0
- package/dist/components/modals/ZaloOfficialWidget.d.ts.map +1 -0
- package/dist/components/modals/ZaloSmartWidget.d.ts +9 -0
- package/dist/components/modals/ZaloSmartWidget.d.ts.map +1 -0
- package/dist/components/modals/ZaloWebChatWidget.d.ts +9 -0
- package/dist/components/modals/ZaloWebChatWidget.d.ts.map +1 -0
- package/dist/components/quickchat/AlwaysOpenChat.d.ts +13 -0
- package/dist/components/quickchat/AlwaysOpenChat.d.ts.map +1 -0
- package/dist/components/quickchat/QuickChatButton.d.ts +10 -0
- package/dist/components/quickchat/QuickChatButton.d.ts.map +1 -0
- package/dist/components/quickchat/QuickChatConfig.d.ts +9 -0
- package/dist/components/quickchat/QuickChatConfig.d.ts.map +1 -0
- package/dist/components/quickchat/QuickChatPanel.d.ts +10 -0
- package/dist/components/quickchat/QuickChatPanel.d.ts.map +1 -0
- package/dist/components/quickchat/QuickChatWidget.d.ts +32 -0
- package/dist/components/quickchat/QuickChatWidget.d.ts.map +1 -0
- package/dist/components/quickchat/index.d.ts +7 -0
- package/dist/components/quickchat/index.d.ts.map +1 -0
- package/dist/cose-bilkent-S5V4N54A-2f5eb275.js +1 -0
- package/dist/cose-bilkent-S5V4N54A-3cda82b5.js +1 -0
- package/dist/cytoscape.esm-9acb9bfe.js +1 -0
- package/dist/dagre-6UL2VRFP-9b648c54.js +1 -0
- package/dist/dagre-6UL2VRFP-e997588d.js +1 -0
- package/dist/defaultLocale-1fe70b7d.js +1 -0
- package/dist/diagram-PSM6KHXK-1234d08d.js +1 -0
- package/dist/diagram-PSM6KHXK-15013de5.js +1 -0
- package/dist/diagram-QEK2KX5R-489b9505.js +1 -0
- package/dist/diagram-QEK2KX5R-9e94df2a.js +1 -0
- package/dist/diagram-S2PKOQOG-6fef3823.js +1 -0
- package/dist/diagram-S2PKOQOG-c943ed25.js +1 -0
- package/dist/erDiagram-Q2GNP2WA-2b1823f2.js +1 -0
- package/dist/erDiagram-Q2GNP2WA-7e6c6a04.js +1 -0
- package/dist/flowDiagram-NV44I4VS-709c6479.js +1 -0
- package/dist/flowDiagram-NV44I4VS-98a84da9.js +1 -0
- package/dist/ganttDiagram-LVOFAZNH-1d379d6a.js +1 -0
- package/dist/ganttDiagram-LVOFAZNH-d8342586.js +1 -0
- package/dist/gitGraph-ZV4HHKMB-788776f3.js +1 -0
- package/dist/gitGraph-ZV4HHKMB-ba420dcc.js +1 -0
- package/dist/gitGraphDiagram-NY62KEGX-804d1363.js +1 -0
- package/dist/gitGraphDiagram-NY62KEGX-919097ea.js +1 -0
- package/dist/graph-834f6046.js +1 -0
- package/dist/graph-db4953aa.js +1 -0
- package/dist/info-63CPKGFF-2dccc483.js +1 -0
- package/dist/info-63CPKGFF-ef40f1c4.js +1 -0
- package/dist/infoDiagram-F6ZHWCRC-579d50b4.js +1 -0
- package/dist/infoDiagram-F6ZHWCRC-c9877bad.js +1 -0
- package/dist/init-cf76ae07.js +1 -0
- package/dist/journeyDiagram-XKPGCS4Q-25d3c922.js +1 -0
- package/dist/journeyDiagram-XKPGCS4Q-2d2cda1c.js +1 -0
- package/dist/kanban-definition-3W4ZIXB7-c556bee0.js +1 -0
- package/dist/kanban-definition-3W4ZIXB7-cdb93ec0.js +1 -0
- package/dist/katex-0a18b0df.js +1 -0
- package/dist/layout-40652dba.js +1 -0
- package/dist/layout-54ffc604.js +1 -0
- package/dist/linear-2f639b72.js +1 -0
- package/dist/linear-ed2367ff.js +1 -0
- package/dist/mermaid-parser.core-0cfa7d2a.js +1 -0
- package/dist/mermaid-parser.core-10bed742.js +1 -0
- package/dist/mindmap-definition-VGOIOE7T-169f5fe5.js +1 -0
- package/dist/mindmap-definition-VGOIOE7T-dea1c792.js +1 -0
- package/dist/ordinal-221e41d7.js +1 -0
- package/dist/packet-HUATNLJX-6f2471ea.js +1 -0
- package/dist/packet-HUATNLJX-c69e28eb.js +1 -0
- package/dist/pie-WTHONI2E-4143e44b.js +1 -0
- package/dist/pie-WTHONI2E-82b1fe3f.js +1 -0
- package/dist/pieDiagram-ADFJNKIX-499eec78.js +1 -0
- package/dist/pieDiagram-ADFJNKIX-657effd5.js +1 -0
- package/dist/quadrantDiagram-AYHSOK5B-138a0c93.js +1 -0
- package/dist/quadrantDiagram-AYHSOK5B-91137c4d.js +1 -0
- package/dist/radar-NJJJXTRR-5e934a95.js +1 -0
- package/dist/radar-NJJJXTRR-94d77527.js +1 -0
- package/dist/requirementDiagram-UZGBJVZJ-a5d9fb39.js +1 -0
- package/dist/requirementDiagram-UZGBJVZJ-d7aeec99.js +1 -0
- package/dist/sankeyDiagram-TZEHDZUN-15053ae0.js +1 -0
- package/dist/sankeyDiagram-TZEHDZUN-aadd2125.js +1 -0
- package/dist/sequenceDiagram-WL72ISMW-12e778ef.js +1 -0
- package/dist/sequenceDiagram-WL72ISMW-9330a98a.js +1 -0
- package/dist/stateDiagram-FKZM4ZOC-01225f0f.js +1 -0
- package/dist/stateDiagram-FKZM4ZOC-af4836d7.js +1 -0
- package/dist/stateDiagram-v2-4FDKWEC3-4774cc10.js +1 -0
- package/dist/stateDiagram-v2-4FDKWEC3-5ef8e019.js +1 -0
- package/dist/timeline-definition-IT6M3QCI-9921f937.js +1 -0
- package/dist/timeline-definition-IT6M3QCI-a7a9bbec.js +1 -0
- package/dist/treemap-75Q7IDZK-100ddeb7.js +1 -0
- package/dist/treemap-75Q7IDZK-851117b4.js +1 -0
- package/dist/utils/index.d.ts +69 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/redisAndQueue.d.ts +32 -0
- package/dist/utils/redisAndQueue.d.ts.map +1 -0
- package/dist/utils/transcriptApi.d.ts.map +1 -1
- package/dist/web-0016ac81.js +1 -0
- package/dist/web-4e6d8ea9.js +1 -0
- package/dist/web.js +1 -1
- package/dist/xychartDiagram-PRI3JC2R-003630a4.js +1 -0
- package/dist/xychartDiagram-PRI3JC2R-df869780.js +1 -0
- package/package.json +2 -2
- package/public/index.html +7 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as t}from"./chunk-FMBD7UC4-2c653fda.js";import{d as e,s,c as i,n as r,g as n,b as a,o as u,_ as o,e as l,p as c,J as h,q as d,l as p,r as g,u as A,j as b,t as y,v as k,x as f,y as m,z as E,A as C}from"./web-0016ac81.js";import{g as D}from"./chunk-55IACEB6-5a7b1be3.js";import{s as x}from"./chunk-QN33PNHL-b00655c9.js";import{c as T}from"./channel-2af69aa2.js";var F=class{constructor(){this.vertexCounter=0,this.config=e(),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=s,this.setAccDescription=i,this.setDiagramTitle=r,this.getAccTitle=n,this.getAccDescription=a,this.getDiagramTitle=u,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")}static{o(this,"FlowDB")}sanitizeText(t){return l.sanitizeText(t,this.config)}lookUpDomId(t){for(const e of this.vertices.values())if(e.id===t)return e.domId;return t}addVertex(t,s,i,r,n,a,u={},o){if(t&&0!==t.trim().length){let p;if(void 0!==o){let t;t=o.includes("\n")?o+"\n":"{\n"+o+"\n}",p=c(t,{schema:h})}var l;o=this.edges.find((e=>e.id===t));if(o)void 0!==(l=p)?.animate&&(o.animate=l.animate),void 0!==l?.animation&&(o.animation=l.animation),void 0!==l?.curve&&(o.interpolate=l.curve);else{let o,l=this.vertices.get(t);if(void 0===l&&(l={id:t,labelType:"text",domId:"flowchart-"+t+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(t,l)),this.vertexCounter++,void 0!==s?(this.config=e(),o=this.sanitizeText(s.text.trim()),l.labelType=s.type,o.startsWith('"')&&o.endsWith('"')&&(o=o.substring(1,o.length-1)),l.text=o):void 0===l.text&&(l.text=t),void 0!==i&&(l.type=i),null!=r&&r.forEach((t=>{l.styles.push(t)})),null!=n&&n.forEach((t=>{l.classes.push(t)})),void 0!==a&&(l.dir=a),void 0===l.props?l.props=u:void 0!==u&&Object.assign(l.props,u),void 0!==p){if(p.shape){if(p.shape!==p.shape.toLowerCase()||p.shape.includes("_"))throw new Error(`No such shape: ${p.shape}. Shape names should be lowercase.`);if(!d(p.shape))throw new Error(`No such shape: ${p.shape}.`);l.type=p?.shape}p?.label&&(l.text=p?.label),p?.icon&&(l.icon=p?.icon,p.label?.trim()||l.text!==t||(l.text="")),p?.form&&(l.form=p?.form),p?.pos&&(l.pos=p?.pos),p?.img&&(l.img=p?.img,p.label?.trim()||l.text!==t||(l.text="")),p?.constraint&&(l.constraint=p.constraint),p.w&&(l.assetWidth=Number(p.w)),p.h&&(l.assetHeight=Number(p.h))}}}}addSingleLink(t,e,s,i){const r={start:t,end:e,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};if(p.info("abc78 Got edge...",r),void 0!==(t=s.text)&&(r.text=this.sanitizeText(t.text.trim()),r.text.startsWith('"')&&r.text.endsWith('"')&&(r.text=r.text.substring(1,r.text.length-1)),r.labelType=t.type),void 0!==s&&(r.type=s.type,r.stroke=s.stroke,r.length=10<s.length?10:s.length),i&&!this.edges.some((t=>t.id===i))?(r.id=i,r.isUserDefinedId=!0):0===(e=this.edges.filter((t=>t.start===r.start&&t.end===r.end))).length?r.id=g(r.start,r.end,{counter:0,prefix:"L"}):r.id=g(r.start,r.end,{counter:e.length+1,prefix:"L"}),!(this.edges.length<(this.config.maxEdges??500)))throw new Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.\n\nInitialize mermaid with maxEdges set to a higher number to allow more edges.\nYou cannot set this config via configuration inside the diagram as it is a secure config.\nYou have to call mermaid.initialize.`);p.info("Pushing edge..."),this.edges.push(r)}isLinkData(t){return null!==t&&"object"==typeof t&&"id"in t&&"string"==typeof t.id}addLink(t,e,s){var i=this.isLinkData(s)?s.id.replace("@",""):void 0;p.info("addLink",t,e,i);for(const a of t)for(const u of e){var r=a===t[t.length-1],n=u===e[0];r&&n?this.addSingleLink(a,u,s,i):this.addSingleLink(a,u,s,void 0)}}updateLinkInterpolate(t,e){t.forEach((t=>{"default"===t?this.edges.defaultInterpolate=e:this.edges[t].interpolate=e}))}updateLink(t,e){t.forEach((t=>{if("number"==typeof t&&t>=this.edges.length)throw new Error(`The index ${t} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);"default"===t?this.edges.defaultStyle=e:(this.edges[t].style=e,0<(this.edges[t]?.style?.length??0)&&!this.edges[t]?.style?.some((t=>t?.startsWith("fill")))&&this.edges[t]?.style?.push("fill:none"))}))}addClass(t,e){const s=e.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");t.split(",").forEach((t=>{let e=this.classes.get(t);void 0===e&&(e={id:t,styles:[],textStyles:[]},this.classes.set(t,e)),null!=s&&s.forEach((t=>{var s;/color/.exec(t)&&(s=t.replace("fill","bgFill"),e.textStyles.push(s)),e.styles.push(t)}))}))}setDirection(t){this.direction=t.trim(),/.*</.exec(this.direction)&&(this.direction="RL"),/.*\^/.exec(this.direction)&&(this.direction="BT"),/.*>/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),"TD"===this.direction&&(this.direction="TB")}setClass(t,e){for(const i of t.split(",")){var s=((s=this.vertices.get(i))&&s.classes.push(e),this.edges.find((t=>t.id===i)));(s=(s&&s.classes.push(e),this.subGraphLookup.get(i)))&&s.classes.push(e)}}setTooltip(t,e){if(void 0!==e){e=this.sanitizeText(e);for(const s of t.split(","))this.tooltips.set("gen-1"===this.version?this.lookUpDomId(s):s,e)}}setClickFun(t,s,i){const r=this.lookUpDomId(t);if("loose"===e().securityLevel&&void 0!==s){let e=[];if("string"==typeof i){e=i.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t<e.length;t++){let s=e[t].trim();s.startsWith('"')&&s.endsWith('"')&&(s=s.substr(1,s.length-2)),e[t]=s}}0===e.length&&e.push(t),(i=this.vertices.get(t))&&(i.haveCallback=!0,this.funs.push((()=>{var t=document.querySelector(`[id="${r}"]`);null!==t&&t.addEventListener("click",(()=>{A.runFunc(s,...e)}),!1)})))}}setLink(t,e,s){t.split(",").forEach((t=>{void 0!==(t=this.vertices.get(t))&&(t.link=A.formatUrl(e,this.config),t.linkTarget=s)})),this.setClass(t,"clickable")}getTooltip(t){return this.tooltips.get(t)}setClickEvent(t,e,s){t.split(",").forEach((t=>{this.setClickFun(t,e,s)})),this.setClass(t,"clickable")}bindFunctions(t){this.funs.forEach((e=>{e(t)}))}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(t){let e=b(".mermaidTooltip");null===(e._groups||e)[0][0]&&(e=b("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),b(t).select("svg").selectAll("g.node").on("mouseover",(t=>{var s=b(t.currentTarget);null!==s.attr("title")&&(t=t.currentTarget?.getBoundingClientRect(),e.transition().duration(200).style("opacity",".9"),e.text(s.attr("title")).style("left",window.scrollX+t.left+(t.right-t.left)/2+"px").style("top",window.scrollY+t.bottom+"px"),e.html(e.html().replace(/<br\/>/g,"<br/>")),s.classed("hover",!0))})).on("mouseout",(t=>{e.transition().duration(500).style("opacity",0),b(t.currentTarget).classed("hover",!1)}))}clear(t="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=t,this.config=e(),y()}setGen(t){this.version=t||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(t,s,i){let r=t.text.trim();var n=i.text;t===i&&/\s/.exec(i.text)&&(r=void 0);t=o((t=>{const e={boolean:{},number:{},string:{}},s=[];let i;return{nodeList:t.filter((function(t){var r=typeof t;return t.stmt&&"dir"===t.stmt?(i=t.value,!1):""!==t.trim()&&(r in e?!e[r].hasOwnProperty(t)&&(e[r][t]=!0):!s.includes(t)&&s.push(t))})),dir:i}}),"uniq")(s.flat());var a=t.nodeList;s=t.dir,t=e().flowchart??{},s=s??(t.inheritDir?this.getDirection()??e().direction??void 0:void 0);if("gen-1"===this.version)for(let t=0;t<a.length;t++)a[t]=this.lookUpDomId(a[t]);return r=r??"subGraph"+this.subCount,n=this.sanitizeText(n=n||""),this.subCount=this.subCount+1,t={id:r,nodes:a,title:n.trim(),classes:[],dir:s,labelType:i.type},p.info("Adding",t.id,t.nodes,t.dir),t.nodes=this.makeUniq(t,this.subGraphs).nodes,this.subGraphs.push(t),this.subGraphLookup.set(r,t),r}getPosForId(t){for(var[e,s]of this.subGraphs.entries())if(s.id===t)return e;return-1}indexNodes2(t,e){var s=this.subGraphs[e].nodes;if(this.secCount=this.secCount+1,2e3<this.secCount)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=e,this.subGraphs[e].id===t)return{result:!0,count:0};let i=0,r=1;for(;i<s.length;){var n=this.getPosForId(s[i]);if(0<=n){if((n=this.indexNodes2(t,n)).result)return{result:!0,count:r+n.count};r+=n.count}i+=1}return{result:!1,count:r}}getDepthFirstPos(t){return this.posCrossRef[t]}indexNodes(){this.secCount=-1,0<this.subGraphs.length&&this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){return!!this.firstGraphFlag&&!(this.firstGraphFlag=!1)}destructStartLink(t){let e=t.trim(),s="arrow_open";switch(e[0]){case"<":s="arrow_point",e=e.slice(1);break;case"x":s="arrow_cross",e=e.slice(1);break;case"o":s="arrow_circle",e=e.slice(1)}let i="normal";return e.includes("=")&&(i="thick"),e.includes(".")&&(i="dotted"),{type:s,stroke:i}}countChar(t,e){var s=e.length;let i=0;for(let r=0;r<s;++r)e[r]===t&&++i;return i}destructEndLink(t){var e=t.trim();let s=e.slice(0,-1),i="arrow_open";switch(e.slice(-1)){case"x":i="arrow_cross",e.startsWith("x")&&(i="double_"+i,s=s.slice(1));break;case">":i="arrow_point",e.startsWith("<")&&(i="double_"+i,s=s.slice(1));break;case"o":i="arrow_circle",e.startsWith("o")&&(i="double_"+i,s=s.slice(1))}let r="normal",n=s.length-1;return s.startsWith("=")&&(r="thick"),s.startsWith("~")&&(r="invisible"),(t=this.countChar(".",s))&&(r="dotted",n=t),{type:i,stroke:r,length:n}}destructLink(t,e){if(t=this.destructEndLink(t),e){if((e=this.destructStartLink(e)).stroke!==t.stroke)return{type:"INVALID",stroke:"INVALID"};if("arrow_open"===e.type)e.type=t.type;else{if(e.type!==t.type)return{type:"INVALID",stroke:"INVALID"};e.type="double_"+e.type}return"double_arrow"===e.type&&(e.type="double_arrow_point"),e.length=t.length,e}return t}exists(t,e){for(const s of t)if(s.nodes.includes(e))return!0;return!1}makeUniq(t,e){const s=[];return t.nodes.forEach(((i,r)=>{this.exists(e,i)||s.push(t.nodes[r])})),{nodes:s}}getTypeFromVertex(t){if(t.img)return"imageSquare";if(t.icon)return"circle"===t.form?"iconCircle":"square"===t.form?"iconSquare":"rounded"===t.form?"iconRounded":"icon";switch(t.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return t.type}}findNode(t,e){return t.find((t=>t.id===e))}destructEdgeType(t){let e="none",s="arrow_point";switch(t){case"arrow_point":case"arrow_circle":case"arrow_cross":s=t;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":e=t.replace("double_",""),s=e}return{arrowTypeStart:e,arrowTypeEnd:s}}addNodeFromVertex(t,e,s,i,r,n){s=s.get(t.id),i=i.get(t.id)??!1;var a=this.findNode(e,t.id);a?(a.cssStyles=t.styles,a.cssCompiledStyles=this.getCompiledStyles(t.classes),a.cssClasses=t.classes.join(" ")):(a={id:t.id,label:t.text,labelStyle:"",parentId:s,padding:r.flowchart?.padding||8,cssStyles:t.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...t.classes]),cssClasses:"default "+t.classes.join(" "),dir:t.dir,domId:t.domId,look:n,link:t.link,linkTarget:t.linkTarget,tooltip:this.getTooltip(t.id),icon:t.icon,pos:t.pos,img:t.img,assetWidth:t.assetWidth,assetHeight:t.assetHeight,constraint:t.constraint},i?e.push({...a,isGroup:!0,shape:"rect"}):e.push({...a,isGroup:!1,shape:this.getTypeFromVertex(t)}))}getCompiledStyles(t){let e=[];for(const i of t){var s=this.classes.get(i);s?.styles&&(e=[...e,...s.styles??[]].map((t=>t.trim()))),s?.textStyles&&(e=[...e,...s.textStyles??[]].map((t=>t.trim())))}return e}getData(){const t=e(),s=[],i=[];var r=this.getSubGraphs();const n=new Map,a=new Map;for(let t=r.length-1;0<=t;t--){var u=r[t];0<u.nodes.length&&a.set(u.id,!0);for(const t of u.nodes)n.set(t,u.id)}for(let e=r.length-1;0<=e;e--){var o=r[e];s.push({id:o.id,label:o.title,labelStyle:"",parentId:n.get(o.id),padding:8,cssCompiledStyles:this.getCompiledStyles(o.classes),cssClasses:o.classes.join(" "),shape:"rect",dir:o.dir,isGroup:!0,look:t.look})}this.getVertices().forEach((e=>{this.addNodeFromVertex(e,s,n,a,t,t.look||"classic")}));const l=this.getEdges();return l.forEach(((e,s)=>{var{arrowTypeStart:r,arrowTypeEnd:n}=this.destructEdgeType(e.type),a=[...l.defaultStyle??[]];e.style&&a.push(...e.style),s={id:g(e.start,e.end,{counter:s,prefix:"L"},e.id),isUserDefinedId:e.isUserDefinedId,start:e.start,end:e.end,type:e.type??"normal",label:e.text,labelpos:"c",thickness:e.stroke,minlen:e.length,classes:"invisible"===e?.stroke?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:"invisible"===e?.stroke||"arrow_open"===e?.type?"none":r,arrowTypeEnd:"invisible"===e?.stroke||"arrow_open"===e?.type?"none":n,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(e.classes),labelStyle:a,style:a,pattern:e.stroke,look:t.look,animate:e.animate,animation:e.animation,curve:e.interpolate||this.edges.defaultInterpolate||t.flowchart?.curve};i.push(s)})),{nodes:s,edges:i,other:{},config:t}}defaultConfig(){return k.flowchart}},S={getClasses:o((function(t,e){return e.db.getClasses()}),"getClasses"),draw:o((async function(t,s,i,r){p.info("REF0:"),p.info("Drawing state diagram (v2)",s);var{securityLevel:n,flowchart:a,layout:u}=e();let o;"sandbox"===n&&(o=b("#i"+s));var l="sandbox"===n?o.nodes()[0].contentDocument:document,c=(p.debug("Before getData: "),r.db.getData()),h=(p.debug("Data: ",c),D(s,n)),d=r.db.getDirection(),u=(c.type=r.type,c.layoutAlgorithm=m(u),"dagre"===c.layoutAlgorithm&&"elk"===u&&p.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."),c.direction=d,c.nodeSpacing=a?.nodeSpacing||50,c.rankSpacing=a?.rankSpacing||50,c.markers=["point","circle","cross"],c.diagramId=s,p.debug("REF1:",c),await E(c,h),c.config.flowchart?.diagramPadding??8);A.insertTitle(h,"flowchartTitleText",a?.titleTopMargin||0,r.db.getDiagramTitle()),x(h,u,"flowchart",a?.useMaxWidth||!1);for(const t of c.nodes){var g=b(`#${s} [id="${t.id}"]`);if(g&&t.link){const e=l.createElementNS("http://www.w3.org/2000/svg","a");e.setAttributeNS("http://www.w3.org/2000/svg","class",t.cssClasses),e.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),"sandbox"===n?e.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):t.linkTarget&&e.setAttributeNS("http://www.w3.org/2000/svg","target",t.linkTarget);var y=g.insert((function(){return e}),":first-child");const s=g.select(".label-container"),i=(s&&y.append((function(){return s.node()})),g.select(".label"));i&&y.append((function(){return i.node()}))}}}),"draw")},_=function(){var t=o((function(t,e,s,i){for(s=s||{},i=t.length;i--;s[t[i]]=e);return s}),"o"),e=[1,4],s=[1,3],i=[1,5],r=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124],n=[2,2],a=[1,13],u=[1,14],l=[1,15],c=[1,16],h=[1,23],d=[1,25],p=[1,26],g=[1,27],A=[1,49],b=[1,48],y=[1,29],k=[1,30],f=[1,31],m=[1,32],E=[1,33],C=[1,44],D=[1,46],x=[1,42],T=[1,47],F=[1,43],S=[1,50],_=[1,45],v=[1,51],B=[1,52],w=[1,34],L=[1,35],$=[1,36],I=[1,37],N=[1,57],R=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124],P=[1,61],G=[1,60],O=[1,62],M=[8,9,11,75,77,78],U=[1,78],V=[1,91],j=[1,96],W=[1,95],z=[1,92],K=[1,88],Y=[1,94],H=[1,90],q=[1,97],X=[1,93],Q=[1,98],J=[1,89],Z=[8,9,10,11,40,75,77,78],tt=[8,9,10,11,40,46,75,77,78],et=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],st=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],it=[44,60,89,102,105,106,109,111,114,115,116],rt=[1,121],nt=[1,122],at=[1,124],ut=[1,123],ot=[44,60,62,74,89,102,105,106,109,111,114,115,116],lt=[1,133],ct=[1,147],ht=[1,148],dt=[1,149],pt=[1,150],gt=[1,135],At=[1,137],bt=[1,141],yt=[1,142],kt=[1,143],ft=[1,144],mt=[1,145],Et=[1,146],Ct=[1,151],Dt=[1,152],xt=[1,131],Tt=[1,132],Ft=[1,139],St=[1,134],_t=[1,138],vt=[1,136],Bt=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124],wt=[1,154],Lt=[1,156],$t=[8,9,11],It=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],Nt=[1,176],Rt=[1,172],Pt=[1,173],Gt=[1,177],Ot=[1,174],Mt=[1,175],Ut=[77,116,119],Vt=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],jt=[10,106],Wt=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],zt=[1,247],Kt=[1,245],Yt=[1,249],Ht=[1,243],qt=[1,244],Xt=[1,246],Qt=[1,248],Jt=[1,250],Zt=[1,268],te=[8,9,11,106],ee=[8,9,10,11,60,84,105,106,109,110,111,112];e={trace:o((function(){}),"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1]],performAction:o((function(t,e,s,i,r,n,a){var u=n.length-1;switch(r){case 2:case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 3:(!Array.isArray(n[u])||0<n[u].length)&&n[u-1].push(n[u]),this.$=n[u-1];break;case 4:case 183:case 44:case 54:case 76:case 181:this.$=n[u];break;case 11:i.setDirection("TB"),this.$="TB";break;case 12:i.setDirection(n[u-1]),this.$=n[u-1];break;case 27:this.$=n[u-1].nodes;break;case 33:this.$=i.addSubGraph(n[u-6],n[u-1],n[u-4]);break;case 34:this.$=i.addSubGraph(n[u-3],n[u-1],n[u-3]);break;case 35:this.$=i.addSubGraph(void 0,n[u-1],void 0);break;case 37:this.$=n[u].trim(),i.setAccTitle(this.$);break;case 38:case 39:this.$=n[u].trim(),i.setAccDescription(this.$);break;case 43:case 133:this.$=n[u-1]+n[u];break;case 45:i.addVertex(n[u-1][n[u-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,n[u]),i.addLink(n[u-3].stmt,n[u-1],n[u-2]),this.$={stmt:n[u-1],nodes:n[u-1].concat(n[u-3].nodes)};break;case 46:i.addLink(n[u-2].stmt,n[u],n[u-1]),this.$={stmt:n[u],nodes:n[u].concat(n[u-2].nodes)};break;case 47:i.addLink(n[u-3].stmt,n[u-1],n[u-2]),this.$={stmt:n[u-1],nodes:n[u-1].concat(n[u-3].nodes)};break;case 48:this.$={stmt:n[u-1],nodes:n[u-1]};break;case 49:i.addVertex(n[u-1][n[u-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,n[u]),this.$={stmt:n[u-1],nodes:n[u-1],shapeData:n[u]};break;case 50:this.$={stmt:n[u],nodes:n[u]};break;case 51:case 128:case 130:this.$=[n[u]];break;case 52:i.addVertex(n[u-5][n[u-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,n[u-4]),this.$=n[u-5].concat(n[u]);break;case 53:this.$=n[u-4].concat(n[u]);break;case 55:this.$=n[u-2],i.setClass(n[u-2],n[u]);break;case 56:this.$=n[u-3],i.addVertex(n[u-3],n[u-1],"square");break;case 57:this.$=n[u-3],i.addVertex(n[u-3],n[u-1],"doublecircle");break;case 58:this.$=n[u-5],i.addVertex(n[u-5],n[u-2],"circle");break;case 59:this.$=n[u-3],i.addVertex(n[u-3],n[u-1],"ellipse");break;case 60:this.$=n[u-3],i.addVertex(n[u-3],n[u-1],"stadium");break;case 61:this.$=n[u-3],i.addVertex(n[u-3],n[u-1],"subroutine");break;case 62:this.$=n[u-7],i.addVertex(n[u-7],n[u-1],"rect",void 0,void 0,void 0,Object.fromEntries([[n[u-5],n[u-3]]]));break;case 63:this.$=n[u-3],i.addVertex(n[u-3],n[u-1],"cylinder");break;case 64:this.$=n[u-3],i.addVertex(n[u-3],n[u-1],"round");break;case 65:this.$=n[u-3],i.addVertex(n[u-3],n[u-1],"diamond");break;case 66:this.$=n[u-5],i.addVertex(n[u-5],n[u-2],"hexagon");break;case 67:this.$=n[u-3],i.addVertex(n[u-3],n[u-1],"odd");break;case 68:this.$=n[u-3],i.addVertex(n[u-3],n[u-1],"trapezoid");break;case 69:this.$=n[u-3],i.addVertex(n[u-3],n[u-1],"inv_trapezoid");break;case 70:this.$=n[u-3],i.addVertex(n[u-3],n[u-1],"lean_right");break;case 71:this.$=n[u-3],i.addVertex(n[u-3],n[u-1],"lean_left");break;case 72:this.$=n[u],i.addVertex(n[u]);break;case 73:n[u-1].text=n[u],this.$=n[u-1];break;case 74:case 75:n[u-2].text=n[u-1],this.$=n[u-2];break;case 77:var o=i.destructLink(n[u],n[u-2]);this.$={type:o.type,stroke:o.stroke,length:o.length,text:n[u-1]};break;case 78:o=i.destructLink(n[u],n[u-2]),this.$={type:o.type,stroke:o.stroke,length:o.length,text:n[u-1],id:n[u-3]};break;case 79:case 86:case 101:case 103:this.$={text:n[u],type:"text"};break;case 80:case 87:case 102:this.$={text:n[u-1].text+""+n[u],type:n[u-1].type};break;case 81:case 88:this.$={text:n[u],type:"string"};break;case 82:case 89:case 104:this.$={text:n[u],type:"markdown"};break;case 83:o=i.destructLink(n[u]),this.$={type:o.type,stroke:o.stroke,length:o.length};break;case 84:o=i.destructLink(n[u]),this.$={type:o.type,stroke:o.stroke,length:o.length,id:n[u-1]};break;case 85:this.$=n[u-1];break;case 105:this.$=n[u-4],i.addClass(n[u-2],n[u]);break;case 106:this.$=n[u-4],i.setClass(n[u-2],n[u]);break;case 107:case 115:this.$=n[u-1],i.setClickEvent(n[u-1],n[u]);break;case 108:case 116:this.$=n[u-3],i.setClickEvent(n[u-3],n[u-2]),i.setTooltip(n[u-3],n[u]);break;case 109:this.$=n[u-2],i.setClickEvent(n[u-2],n[u-1],n[u]);break;case 110:this.$=n[u-4],i.setClickEvent(n[u-4],n[u-3],n[u-2]),i.setTooltip(n[u-4],n[u]);break;case 111:this.$=n[u-2],i.setLink(n[u-2],n[u]);break;case 112:this.$=n[u-4],i.setLink(n[u-4],n[u-2]),i.setTooltip(n[u-4],n[u]);break;case 113:this.$=n[u-4],i.setLink(n[u-4],n[u-2],n[u]);break;case 114:this.$=n[u-6],i.setLink(n[u-6],n[u-4],n[u]),i.setTooltip(n[u-6],n[u-2]);break;case 117:this.$=n[u-1],i.setLink(n[u-1],n[u]);break;case 118:this.$=n[u-3],i.setLink(n[u-3],n[u-2]),i.setTooltip(n[u-3],n[u]);break;case 119:this.$=n[u-3],i.setLink(n[u-3],n[u-2],n[u]);break;case 120:this.$=n[u-5],i.setLink(n[u-5],n[u-4],n[u]),i.setTooltip(n[u-5],n[u-2]);break;case 121:this.$=n[u-4],i.addVertex(n[u-2],void 0,void 0,n[u]);break;case 122:this.$=n[u-4],i.updateLink([n[u-2]],n[u]);break;case 123:this.$=n[u-4],i.updateLink(n[u-2],n[u]);break;case 124:this.$=n[u-8],i.updateLinkInterpolate([n[u-6]],n[u-2]),i.updateLink([n[u-6]],n[u]);break;case 125:this.$=n[u-8],i.updateLinkInterpolate(n[u-6],n[u-2]),i.updateLink(n[u-6],n[u]);break;case 126:this.$=n[u-6],i.updateLinkInterpolate([n[u-4]],n[u]);break;case 127:this.$=n[u-6],i.updateLinkInterpolate(n[u-4],n[u]);break;case 129:case 131:n[u-2].push(n[u]),this.$=n[u-2];break;case 182:case 184:this.$=n[u-1]+""+n[u];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"}}}),"anonymous"),table:[{3:1,4:2,9:e,10:s,12:i},{1:[3]},t(r,n,{5:6}),{4:7,9:e,10:s,12:i},{4:8,9:e,10:s,12:i},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:a,9:u,10:l,11:c,20:17,22:18,23:19,24:20,25:21,26:22,27:h,33:24,34:d,36:p,38:g,42:28,43:38,44:A,45:39,47:40,60:b,84:y,85:k,86:f,87:m,88:E,89:C,102:D,105:x,106:T,109:F,111:S,113:41,114:_,115:v,116:B,121:w,122:L,123:$,124:I},t(r,[2,9]),t(r,[2,10]),t(r,[2,11]),{8:[1,54],9:[1,55],10:N,15:53,18:56},t(R,[2,3]),t(R,[2,4]),t(R,[2,5]),t(R,[2,6]),t(R,[2,7]),t(R,[2,8]),{8:P,9:G,11:O,21:58,41:59,72:63,75:[1,64],77:[1,66],78:[1,65]},{8:P,9:G,11:O,21:67},{8:P,9:G,11:O,21:68},{8:P,9:G,11:O,21:69},{8:P,9:G,11:O,21:70},{8:P,9:G,11:O,21:71},{8:P,9:G,10:[1,72],11:O,21:73},t(R,[2,36]),{35:[1,74]},{37:[1,75]},t(R,[2,39]),t(M,[2,50],{18:76,39:77,10:N,40:U}),{10:[1,79]},{10:[1,80]},{10:[1,81]},{10:[1,82]},{14:V,44:j,60:W,80:[1,86],89:z,95:[1,83],97:[1,84],101:85,105:K,106:Y,109:H,111:q,114:X,115:Q,116:J,120:87},t(R,[2,185]),t(R,[2,186]),t(R,[2,187]),t(R,[2,188]),t(Z,[2,51]),t(Z,[2,54],{46:[1,99]}),t(tt,[2,72],{113:112,29:[1,100],44:A,48:[1,101],50:[1,102],52:[1,103],54:[1,104],56:[1,105],58:[1,106],60:b,63:[1,107],65:[1,108],67:[1,109],68:[1,110],70:[1,111],89:C,102:D,105:x,106:T,109:F,111:S,114:_,115:v,116:B}),t(et,[2,181]),t(et,[2,142]),t(et,[2,143]),t(et,[2,144]),t(et,[2,145]),t(et,[2,146]),t(et,[2,147]),t(et,[2,148]),t(et,[2,149]),t(et,[2,150]),t(et,[2,151]),t(et,[2,152]),t(r,[2,12]),t(r,[2,18]),t(r,[2,19]),{9:[1,113]},t(st,[2,26],{18:114,10:N}),t(R,[2,27]),{42:115,43:38,44:A,45:39,47:40,60:b,89:C,102:D,105:x,106:T,109:F,111:S,113:41,114:_,115:v,116:B},t(R,[2,40]),t(R,[2,41]),t(R,[2,42]),t(it,[2,76],{73:116,62:[1,118],74:[1,117]}),{76:119,79:120,80:rt,81:nt,116:at,119:ut},{75:[1,125],77:[1,126]},t(ot,[2,83]),t(R,[2,28]),t(R,[2,29]),t(R,[2,30]),t(R,[2,31]),t(R,[2,32]),{10:lt,12:ct,14:ht,27:dt,28:127,32:pt,44:gt,60:At,75:bt,80:[1,129],81:[1,130],83:140,84:yt,85:kt,86:ft,87:mt,88:Et,89:Ct,90:Dt,91:128,105:xt,109:Tt,111:Ft,114:St,115:_t,116:vt},t(Bt,n,{5:153}),t(R,[2,37]),t(R,[2,38]),t(M,[2,48],{44:wt}),t(M,[2,49],{18:155,10:N,40:Lt}),t(Z,[2,44]),{44:A,47:157,60:b,89:C,102:D,105:x,106:T,109:F,111:S,113:41,114:_,115:v,116:B},{102:[1,158],103:159,105:[1,160]},{44:A,47:161,60:b,89:C,102:D,105:x,106:T,109:F,111:S,113:41,114:_,115:v,116:B},{44:A,47:162,60:b,89:C,102:D,105:x,106:T,109:F,111:S,113:41,114:_,115:v,116:B},t($t,[2,107],{10:[1,163],96:[1,164]}),{80:[1,165]},t($t,[2,115],{120:167,10:[1,166],14:V,44:j,60:W,89:z,105:K,106:Y,109:H,111:q,114:X,115:Q,116:J}),t($t,[2,117],{10:[1,168]}),t(It,[2,183]),t(It,[2,170]),t(It,[2,171]),t(It,[2,172]),t(It,[2,173]),t(It,[2,174]),t(It,[2,175]),t(It,[2,176]),t(It,[2,177]),t(It,[2,178]),t(It,[2,179]),t(It,[2,180]),{44:A,47:169,60:b,89:C,102:D,105:x,106:T,109:F,111:S,113:41,114:_,115:v,116:B},{30:170,67:Nt,80:Rt,81:Pt,82:171,116:Gt,117:Ot,118:Mt},{30:178,67:Nt,80:Rt,81:Pt,82:171,116:Gt,117:Ot,118:Mt},{30:180,50:[1,179],67:Nt,80:Rt,81:Pt,82:171,116:Gt,117:Ot,118:Mt},{30:181,67:Nt,80:Rt,81:Pt,82:171,116:Gt,117:Ot,118:Mt},{30:182,67:Nt,80:Rt,81:Pt,82:171,116:Gt,117:Ot,118:Mt},{30:183,67:Nt,80:Rt,81:Pt,82:171,116:Gt,117:Ot,118:Mt},{109:[1,184]},{30:185,67:Nt,80:Rt,81:Pt,82:171,116:Gt,117:Ot,118:Mt},{30:186,65:[1,187],67:Nt,80:Rt,81:Pt,82:171,116:Gt,117:Ot,118:Mt},{30:188,67:Nt,80:Rt,81:Pt,82:171,116:Gt,117:Ot,118:Mt},{30:189,67:Nt,80:Rt,81:Pt,82:171,116:Gt,117:Ot,118:Mt},{30:190,67:Nt,80:Rt,81:Pt,82:171,116:Gt,117:Ot,118:Mt},t(et,[2,182]),t(r,[2,20]),t(st,[2,25]),t(M,[2,46],{39:191,18:192,10:N,40:U}),t(it,[2,73],{10:[1,193]}),{10:[1,194]},{30:195,67:Nt,80:Rt,81:Pt,82:171,116:Gt,117:Ot,118:Mt},{77:[1,196],79:197,116:at,119:ut},t(Ut,[2,79]),t(Ut,[2,81]),t(Ut,[2,82]),t(Ut,[2,168]),t(Ut,[2,169]),{76:198,79:120,80:rt,81:nt,116:at,119:ut},t(ot,[2,84]),{8:P,9:G,10:lt,11:O,12:ct,14:ht,21:200,27:dt,29:[1,199],32:pt,44:gt,60:At,75:bt,83:140,84:yt,85:kt,86:ft,87:mt,88:Et,89:Ct,90:Dt,91:201,105:xt,109:Tt,111:Ft,114:St,115:_t,116:vt},t(Vt,[2,101]),t(Vt,[2,103]),t(Vt,[2,104]),t(Vt,[2,157]),t(Vt,[2,158]),t(Vt,[2,159]),t(Vt,[2,160]),t(Vt,[2,161]),t(Vt,[2,162]),t(Vt,[2,163]),t(Vt,[2,164]),t(Vt,[2,165]),t(Vt,[2,166]),t(Vt,[2,167]),t(Vt,[2,90]),t(Vt,[2,91]),t(Vt,[2,92]),t(Vt,[2,93]),t(Vt,[2,94]),t(Vt,[2,95]),t(Vt,[2,96]),t(Vt,[2,97]),t(Vt,[2,98]),t(Vt,[2,99]),t(Vt,[2,100]),{6:11,7:12,8:a,9:u,10:l,11:c,20:17,22:18,23:19,24:20,25:21,26:22,27:h,32:[1,202],33:24,34:d,36:p,38:g,42:28,43:38,44:A,45:39,47:40,60:b,84:y,85:k,86:f,87:m,88:E,89:C,102:D,105:x,106:T,109:F,111:S,113:41,114:_,115:v,116:B,121:w,122:L,123:$,124:I},{10:N,18:203},{44:[1,204]},t(Z,[2,43]),{10:[1,205],44:A,60:b,89:C,102:D,105:x,106:T,109:F,111:S,113:112,114:_,115:v,116:B},{10:[1,206]},{10:[1,207],106:[1,208]},t(jt,[2,128]),{10:[1,209],44:A,60:b,89:C,102:D,105:x,106:T,109:F,111:S,113:112,114:_,115:v,116:B},{10:[1,210],44:A,60:b,89:C,102:D,105:x,106:T,109:F,111:S,113:112,114:_,115:v,116:B},{80:[1,211]},t($t,[2,109],{10:[1,212]}),t($t,[2,111],{10:[1,213]}),{80:[1,214]},t(It,[2,184]),{80:[1,215],98:[1,216]},t(Z,[2,55],{113:112,44:A,60:b,89:C,102:D,105:x,106:T,109:F,111:S,114:_,115:v,116:B}),{31:[1,217],67:Nt,82:218,116:Gt,117:Ot,118:Mt},t(Wt,[2,86]),t(Wt,[2,88]),t(Wt,[2,89]),t(Wt,[2,153]),t(Wt,[2,154]),t(Wt,[2,155]),t(Wt,[2,156]),{49:[1,219],67:Nt,82:218,116:Gt,117:Ot,118:Mt},{30:220,67:Nt,80:Rt,81:Pt,82:171,116:Gt,117:Ot,118:Mt},{51:[1,221],67:Nt,82:218,116:Gt,117:Ot,118:Mt},{53:[1,222],67:Nt,82:218,116:Gt,117:Ot,118:Mt},{55:[1,223],67:Nt,82:218,116:Gt,117:Ot,118:Mt},{57:[1,224],67:Nt,82:218,116:Gt,117:Ot,118:Mt},{60:[1,225]},{64:[1,226],67:Nt,82:218,116:Gt,117:Ot,118:Mt},{66:[1,227],67:Nt,82:218,116:Gt,117:Ot,118:Mt},{30:228,67:Nt,80:Rt,81:Pt,82:171,116:Gt,117:Ot,118:Mt},{31:[1,229],67:Nt,82:218,116:Gt,117:Ot,118:Mt},{67:Nt,69:[1,230],71:[1,231],82:218,116:Gt,117:Ot,118:Mt},{67:Nt,69:[1,233],71:[1,232],82:218,116:Gt,117:Ot,118:Mt},t(M,[2,45],{18:155,10:N,40:Lt}),t(M,[2,47],{44:wt}),t(it,[2,75]),t(it,[2,74]),{62:[1,234],67:Nt,82:218,116:Gt,117:Ot,118:Mt},t(it,[2,77]),t(Ut,[2,80]),{77:[1,235],79:197,116:at,119:ut},{30:236,67:Nt,80:Rt,81:Pt,82:171,116:Gt,117:Ot,118:Mt},t(Bt,n,{5:237}),t(Vt,[2,102]),t(R,[2,35]),{43:238,44:A,45:39,47:40,60:b,89:C,102:D,105:x,106:T,109:F,111:S,113:41,114:_,115:v,116:B},{10:N,18:239},{10:zt,60:Kt,84:Yt,92:240,105:Ht,107:241,108:242,109:qt,110:Xt,111:Qt,112:Jt},{10:zt,60:Kt,84:Yt,92:251,104:[1,252],105:Ht,107:241,108:242,109:qt,110:Xt,111:Qt,112:Jt},{10:zt,60:Kt,84:Yt,92:253,104:[1,254],105:Ht,107:241,108:242,109:qt,110:Xt,111:Qt,112:Jt},{105:[1,255]},{10:zt,60:Kt,84:Yt,92:256,105:Ht,107:241,108:242,109:qt,110:Xt,111:Qt,112:Jt},{44:A,47:257,60:b,89:C,102:D,105:x,106:T,109:F,111:S,113:41,114:_,115:v,116:B},t($t,[2,108]),{80:[1,258]},{80:[1,259],98:[1,260]},t($t,[2,116]),t($t,[2,118],{10:[1,261]}),t($t,[2,119]),t(tt,[2,56]),t(Wt,[2,87]),t(tt,[2,57]),{51:[1,262],67:Nt,82:218,116:Gt,117:Ot,118:Mt},t(tt,[2,64]),t(tt,[2,59]),t(tt,[2,60]),t(tt,[2,61]),{109:[1,263]},t(tt,[2,63]),t(tt,[2,65]),{66:[1,264],67:Nt,82:218,116:Gt,117:Ot,118:Mt},t(tt,[2,67]),t(tt,[2,68]),t(tt,[2,70]),t(tt,[2,69]),t(tt,[2,71]),t([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),t(it,[2,78]),{31:[1,265],67:Nt,82:218,116:Gt,117:Ot,118:Mt},{6:11,7:12,8:a,9:u,10:l,11:c,20:17,22:18,23:19,24:20,25:21,26:22,27:h,32:[1,266],33:24,34:d,36:p,38:g,42:28,43:38,44:A,45:39,47:40,60:b,84:y,85:k,86:f,87:m,88:E,89:C,102:D,105:x,106:T,109:F,111:S,113:41,114:_,115:v,116:B,121:w,122:L,123:$,124:I},t(Z,[2,53]),{43:267,44:A,45:39,47:40,60:b,89:C,102:D,105:x,106:T,109:F,111:S,113:41,114:_,115:v,116:B},t($t,[2,121],{106:Zt}),t(te,[2,130],{108:269,10:zt,60:Kt,84:Yt,105:Ht,109:qt,110:Xt,111:Qt,112:Jt}),t(ee,[2,132]),t(ee,[2,134]),t(ee,[2,135]),t(ee,[2,136]),t(ee,[2,137]),t(ee,[2,138]),t(ee,[2,139]),t(ee,[2,140]),t(ee,[2,141]),t($t,[2,122],{106:Zt}),{10:[1,270]},t($t,[2,123],{106:Zt}),{10:[1,271]},t(jt,[2,129]),t($t,[2,105],{106:Zt}),t($t,[2,106],{113:112,44:A,60:b,89:C,102:D,105:x,106:T,109:F,111:S,114:_,115:v,116:B}),t($t,[2,110]),t($t,[2,112],{10:[1,272]}),t($t,[2,113]),{98:[1,273]},{51:[1,274]},{62:[1,275]},{66:[1,276]},{8:P,9:G,11:O,21:277},t(R,[2,34]),t(Z,[2,52]),{10:zt,60:Kt,84:Yt,105:Ht,107:278,108:242,109:qt,110:Xt,111:Qt,112:Jt},t(ee,[2,133]),{14:V,44:j,60:W,89:z,101:279,105:K,106:Y,109:H,111:q,114:X,115:Q,116:J,120:87},{14:V,44:j,60:W,89:z,101:280,105:K,106:Y,109:H,111:q,114:X,115:Q,116:J,120:87},{98:[1,281]},t($t,[2,120]),t(tt,[2,58]),{30:282,67:Nt,80:Rt,81:Pt,82:171,116:Gt,117:Ot,118:Mt},t(tt,[2,66]),t(Bt,n,{5:283}),t(te,[2,131],{108:269,10:zt,60:Kt,84:Yt,105:Ht,109:qt,110:Xt,111:Qt,112:Jt}),t($t,[2,126],{120:167,10:[1,284],14:V,44:j,60:W,89:z,105:K,106:Y,109:H,111:q,114:X,115:Q,116:J}),t($t,[2,127],{120:167,10:[1,285],14:V,44:j,60:W,89:z,105:K,106:Y,109:H,111:q,114:X,115:Q,116:J}),t($t,[2,114]),{31:[1,286],67:Nt,82:218,116:Gt,117:Ot,118:Mt},{6:11,7:12,8:a,9:u,10:l,11:c,20:17,22:18,23:19,24:20,25:21,26:22,27:h,32:[1,287],33:24,34:d,36:p,38:g,42:28,43:38,44:A,45:39,47:40,60:b,84:y,85:k,86:f,87:m,88:E,89:C,102:D,105:x,106:T,109:F,111:S,113:41,114:_,115:v,116:B,121:w,122:L,123:$,124:I},{10:zt,60:Kt,84:Yt,92:288,105:Ht,107:241,108:242,109:qt,110:Xt,111:Qt,112:Jt},{10:zt,60:Kt,84:Yt,92:289,105:Ht,107:241,108:242,109:qt,110:Xt,111:Qt,112:Jt},t(tt,[2,62]),t(R,[2,33]),t($t,[2,124],{106:Zt}),t($t,[2,125],{106:Zt})],defaultActions:{},parseError:o((function(t,e){var s;if(!e.recoverable)throw(s=new Error(t)).hash=e,s;this.trace(t)}),"parseError"),parse:o((function(t){var e,s=this,i=[0],r=[],n=[null],a=[],u=this.table,l="",c=0,h=0,d=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(e in this.yy)Object.prototype.hasOwnProperty.call(this.yy,e)&&(g.yy[e]=this.yy[e]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var A=p.yylloc,b=(a.push(A),p.options&&p.options.ranges);function y(){var t=r.pop()||p.lex()||1;return"number"!=typeof t&&(t instanceof Array&&(t=(r=t).pop()),t=s.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,o((function(t){i.length=i.length-2*t,n.length=n.length-t,a.length=a.length-t}),"popStack"),o(y,"lex");for(var k,f,m,E,C,D,x={};;){if(f=i[i.length-1],void 0===(m=this.defaultActions[f]||(null==k&&(k=y()),u[f]&&u[f][k]))||!m.length||!m[0]){var T,F=[];for(E in u[f])this.terminals_[E]&&2<E&&F.push("'"+this.terminals_[E]+"'");T=p.showPosition?"Parse error on line "+(c+1)+":\n"+p.showPosition()+"\nExpecting "+F.join(", ")+", got '"+(this.terminals_[k]||k)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==k?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(T,{text:p.match,token:this.terminals_[k]||k,line:p.yylineno,loc:A,expected:F})}if(m[0]instanceof Array&&1<m.length)throw new Error("Parse Error: multiple actions possible at state: "+f+", token: "+k);switch(m[0]){case 1:i.push(k),n.push(p.yytext),a.push(p.yylloc),i.push(m[1]),k=null,h=p.yyleng,l=p.yytext,c=p.yylineno,A=p.yylloc;break;case 2:if(C=this.productions_[m[1]][1],x.$=n[n.length-C],x._$={first_line:a[a.length-(C||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(C||1)].first_column,last_column:a[a.length-1].last_column},b&&(x._$.range=[a[a.length-(C||1)].range[0],a[a.length-1].range[1]]),void 0!==(D=this.performAction.apply(x,[l,h,c,g.yy,m[1],n,a].concat(d))))return D;C&&(i=i.slice(0,-1*C*2),n=n.slice(0,-1*C),a=a.slice(0,-1*C)),i.push(this.productions_[m[1]][0]),n.push(x.$),a.push(x._$),D=u[i[i.length-2]][i[i.length-1]],i.push(D);break;case 3:return!0}}return!0}),"parse")},s={EOF:1,parseError:o((function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)}),"parseError"),setInput:o((function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this}),"setInput"),input:o((function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t}),"input"),unput:o((function(t){var e=t.length,s=t.split(/(?:\r\n?|\n)/g),i=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,t=this.match.split(/(?:\r\n?|\n)/g),this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),s.length-1&&(this.yylineno-=s.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:s?(s.length===t.length?this.yylloc.first_column:0)+t[t.length-s.length].length-s[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this}),"unput"),more:o((function(){return this._more=!0,this}),"more"),reject:o((function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"reject"),less:o((function(t){this.unput(this.match.slice(t))}),"less"),pastInput:o((function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(20<t.length?"...":"")+t.substr(-20).replace(/\n/g,"")}),"pastInput"),upcomingInput:o((function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(20<t.length?"...":"")).replace(/\n/g,"")}),"upcomingInput"),showPosition:o((function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"}),"showPosition"),test_match:o((function(t,e){var s,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)&&(i.yylloc.range=this.yylloc.range.slice(0)),(s=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],s=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack)for(var r in i)this[r]=i[r];return!1}),"test_match"),next:o((function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,s,i,r=this._currentRules(),n=0;n<r.length;n++)if((s=this._input.match(this.rules[r[n]]))&&(!e||s[0].length>e[0].length))if(e=s,i=n,this.options.backtrack_lexer){if(!1!==(t=this.test_match(s,r[n])))return t;if(!this._backtrack)return!1;e=!1}else if(!this.options.flex)break;return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"next"),lex:o((function(){return this.next()||this.lex()}),"lex"),begin:o((function(t){this.conditionStack.push(t)}),"begin"),popState:o((function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]}),"popState"),_currentRules:o((function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules}),"_currentRules"),topState:o((function(t){return 0<=(t=this.conditionStack.length-1-Math.abs(t||0))?this.conditionStack[t]:"INITIAL"}),"topState"),pushState:o((function(t){this.begin(t)}),"pushState"),stateStackSize:o((function(){return this.conditionStack.length}),"stateStackSize"),options:{},performAction:o((function(t,e,s,i){switch(s){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:case 12:case 14:case 17:case 20:case 23:case 33:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),e.yytext="",40;case 8:return this.pushState("shapeDataStr"),40;case 9:return this.popState(),40;case 10:return e.yytext=e.yytext.replace(/\n\s*/g,"<br/>"),40;case 11:return 40;case 13:this.begin("callbackname");break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 95;case 18:return 96;case 19:return"MD_STR";case 21:this.begin("md_string");break;case 22:return"STR";case 24:this.pushState("string");break;case 25:return 84;case 26:return 102;case 27:return 85;case 28:return 104;case 29:return 86;case 30:return 87;case 31:return 97;case 32:this.begin("click");break;case 34:return 88;case 35:case 36:case 37:return t.lex.firstGraph()&&this.begin("dir"),12;case 38:return 27;case 39:return 32;case 40:case 41:case 42:case 43:return 98;case 44:return this.popState(),13;case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:return this.popState(),14;case 55:return 121;case 56:return 122;case 57:return 123;case 58:return 124;case 59:return 78;case 60:return 105;case 61:case 102:return 111;case 62:return 46;case 63:return 60;case 64:case 103:return 44;case 65:return 8;case 66:return 106;case 67:case 101:return 115;case 68:case 71:case 74:return this.popState(),77;case 69:return this.pushState("edgeText"),75;case 70:case 73:case 76:return 119;case 72:return this.pushState("thickEdgeText"),75;case 75:return this.pushState("dottedEdgeText"),75;case 77:return 77;case 78:return this.popState(),53;case 79:case 115:return"TEXT";case 80:return this.pushState("ellipseText"),52;case 81:return this.popState(),55;case 82:return this.pushState("text"),54;case 83:return this.popState(),57;case 84:return this.pushState("text"),56;case 85:return 58;case 86:return this.pushState("text"),67;case 87:return this.popState(),64;case 88:return this.pushState("text"),63;case 89:return this.popState(),49;case 90:return this.pushState("text"),48;case 91:return this.popState(),69;case 92:return this.popState(),71;case 93:return 117;case 94:return this.pushState("trapText"),68;case 95:return this.pushState("trapText"),70;case 96:return 118;case 97:return 67;case 98:return 90;case 99:return"SEP";case 100:return 89;case 104:return 109;case 105:return 114;case 106:return 116;case 107:return this.popState(),62;case 108:return this.pushState("text"),62;case 109:return this.popState(),51;case 110:return this.pushState("text"),50;case 111:return this.popState(),31;case 112:return this.pushState("text"),29;case 113:return this.popState(),66;case 114:return this.pushState("text"),65;case 116:return"QUOTE";case 117:return 9;case 118:return 10;case 119:return 11}}),"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},shapeData:{rules:[8,11,12,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},callbackargs:{rules:[17,18,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},callbackname:{rules:[14,15,16,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},href:{rules:[21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},click:{rules:[21,24,33,34,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},dottedEdgeText:{rules:[21,24,74,76,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},thickEdgeText:{rules:[21,24,71,73,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},edgeText:{rules:[21,24,68,70,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},trapText:{rules:[21,24,77,80,82,84,88,90,91,92,93,94,95,108,110,112,114],inclusive:!1},ellipseText:{rules:[21,24,77,78,79,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},text:{rules:[21,24,77,80,81,82,83,84,87,88,89,90,94,95,107,108,109,110,111,112,113,114,115],inclusive:!1},vertex:{rules:[21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},dir:{rules:[21,24,44,45,46,47,48,49,50,51,52,53,54,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},acc_descr:{rules:[3,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},acc_title:{rules:[1,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},md_string:{rules:[19,20,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},string:{rules:[21,22,23,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,71,72,74,75,77,80,82,84,85,86,88,90,94,95,96,97,98,99,100,101,102,103,104,105,106,108,110,112,114,116,117,118,119],inclusive:!0}}};function se(){this.yy={}}return e.lexer=s,o(se,"Parser"),new((se.prototype=e).Parser=se)}(),v=_.parser=_,B=Object.assign({},v),w=(B.parse=t=>(t=t.replace(/}\s*\n/g,"}\n"),v.parse(t)),o(((t,e)=>{var s=(r=T)(t,"r"),i=r(t,"g"),r=r(t,"b");return C(s,i,r,e)}),"fade")),L={parser:B,get db(){return new F},renderer:S,styles:o((e=>`.label {\n font-family: ${e.fontFamily};\n color: ${e.nodeTextColor||e.textColor};\n }\n .cluster-label text {\n fill: ${e.titleColor};\n }\n .cluster-label span {\n color: ${e.titleColor};\n }\n .cluster-label span p {\n background-color: transparent;\n }\n\n .label text,span {\n fill: ${e.nodeTextColor||e.textColor};\n color: ${e.nodeTextColor||e.textColor};\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${e.mainBkg};\n stroke: ${e.nodeBorder};\n stroke-width: 1px;\n }\n .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {\n text-anchor: middle;\n }\n // .flowchart-label .text-outer-tspan {\n // text-anchor: middle;\n // }\n // .flowchart-label .text-inner-tspan {\n // text-anchor: start;\n // }\n\n .node .katex path {\n fill: #000;\n stroke: #000;\n stroke-width: 1px;\n }\n\n .rough-node .label,.node .label, .image-shape .label, .icon-shape .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n\n .root .anchor path {\n fill: ${e.lineColor} !important;\n stroke-width: 0;\n stroke: ${e.lineColor};\n }\n\n .arrowheadPath {\n fill: ${e.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${e.lineColor};\n stroke-width: 2.0px;\n }\n\n .flowchart-link {\n stroke: ${e.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${e.edgeLabelBackground};\n p {\n background-color: ${e.edgeLabelBackground};\n }\n rect {\n opacity: 0.5;\n background-color: ${e.edgeLabelBackground};\n fill: ${e.edgeLabelBackground};\n }\n text-align: center;\n }\n\n /* For html labels only */\n .labelBkg {\n background-color: ${w(e.edgeLabelBackground,.5)};\n // background-color:\n }\n\n .cluster rect {\n fill: ${e.clusterBkg};\n stroke: ${e.clusterBorder};\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${e.titleColor};\n }\n\n .cluster span {\n color: ${e.titleColor};\n }\n /* .cluster div {\n color: ${e.titleColor};\n } */\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ${e.fontFamily};\n font-size: 12px;\n background: ${e.tertiaryColor};\n border: 1px solid ${e.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .flowchartTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${e.textColor};\n }\n\n rect.text {\n fill: none;\n stroke-width: 0;\n }\n\n .icon-shape, .image-shape {\n background-color: ${e.edgeLabelBackground};\n p {\n background-color: ${e.edgeLabelBackground};\n padding: 2px;\n }\n rect {\n opacity: 0.5;\n background-color: ${e.edgeLabelBackground};\n fill: ${e.edgeLabelBackground};\n }\n text-align: center;\n }\n ${t()}\n`),"getStyles"),init:o((t=>{t.flowchart||(t.flowchart={}),t.layout&&f({layout:t.layout}),t.flowchart.arrowMarkerAbsolute=t.arrowMarkerAbsolute,f({flowchart:{arrowMarkerAbsolute:t.arrowMarkerAbsolute}})}),"init")};export{L as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b1 as t,b2 as e,b3 as n,b4 as r,b5 as i,b6 as a,b7 as s,aI as o,aJ as c,_ as l,b8 as u,d,s as h,g as f,n as g,o as y,c as m,b as k,t as p,m as T,l as v,j as b,k as x,e as w,u as D}from"./web-4e6d8ea9.js";import{b as C,t as M,c as _,a as S,l as $}from"./linear-ed2367ff.js";import{i as Y}from"./init-cf76ae07.js";import"./defaultLocale-1fe70b7d.js";function F(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n<e||void 0===n&&e>=e)&&(n=e);else{let i=-1;for(var r of t)null!=(r=e(r,++i,t))&&(n<r||void 0===n&&r>=r)&&(n=r)}return n}function A(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let i=-1;for(var r of t)null!=(r=e(r,++i,t))&&(n>r||void 0===n&&r>=r)&&(n=r)}return n}function U(t){return t}var L=1,E=2,I=3,W=4,H=1e-6;function O(t){return"translate("+t+",0)"}function P(t){return"translate(0,"+t+")"}function z(t){return e=>+t(e)}function N(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function B(){return!this.__axis}function j(t,e){var n=[],r=null,i=null,a=6,s=6,o=3,c="undefined"!=typeof window&&1<window.devicePixelRatio?0:.5,l=t===L||t===W?-1:1,u=t===W||t===E?"x":"y",d=t===L||t===I?O:P;function h(h){var f=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,g=null==i?e.tickFormat?e.tickFormat.apply(e,n):U:i,y=Math.max(a,0)+o,m=+(k=e.range())[0]+c,k=+k[k.length-1]+c,p=(e.bandwidth?N:z)(e.copy(),c),T=h.selection?h.selection():h,v=T.selectAll(".domain").data([null]),b=(f=T.selectAll(".tick").data(f,e).order()).exit(),x=f.enter().append("g").attr("class","tick"),w=f.select("line"),D=f.select("text");v=v.merge(v.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),f=f.merge(x),w=w.merge(x.append("line").attr("stroke","currentColor").attr(u+"2",l*a)),D=D.merge(x.append("text").attr("fill","currentColor").attr(u,l*y).attr("dy",t===L?"0em":t===I?"0.71em":"0.32em"));h!==T&&(v=v.transition(h),f=f.transition(h),w=w.transition(h),D=D.transition(h),b=b.transition(h).attr("opacity",H).attr("transform",(function(t){return isFinite(t=p(t))?d(t+c):this.getAttribute("transform")})),x.attr("opacity",H).attr("transform",(function(t){var e=this.parentNode.__axis;return d((e&&isFinite(e=e(t))?e:p(t))+c)}))),b.remove(),v.attr("d",t===W||t===E?s?"M"+l*s+","+m+"H"+c+"V"+k+"H"+l*s:"M"+c+","+m+"V"+k:s?"M"+m+","+l*s+"V"+c+"H"+k+"V"+l*s:"M"+m+","+c+"H"+k),f.attr("opacity",1).attr("transform",(function(t){return d(p(t)+c)})),w.attr(u+"2",l*a),D.attr(u,l*y).text(g),T.filter(B).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===E?"start":t===W?"end":"middle"),T.each((function(){this.__axis=p}))}return h.scale=function(t){return arguments.length?(e=t,h):e},h.ticks=function(){return n=Array.from(arguments),h},h.tickArguments=function(t){return arguments.length?(n=null==t?[]:Array.from(t),h):n.slice()},h.tickValues=function(t){return arguments.length?(r=null==t?null:Array.from(t),h):r&&r.slice()},h.tickFormat=function(t){return arguments.length?(i=t,h):i},h.tickSize=function(t){return arguments.length?(a=s=+t,h):a},h.tickSizeInner=function(t){return arguments.length?(a=+t,h):a},h.tickSizeOuter=function(t){return arguments.length?(s=+t,h):s},h.tickPadding=function(t){return arguments.length?(o=+t,h):o},h.offset=function(t){return arguments.length?(c=+t,h):c},h}const V=Math.PI/180,Z=180/Math.PI,G=.96422,q=1,R=.82521,X=4/29,Q=6/29,J=3*Q*Q,K=Q*Q*Q;function tt(t){var e,r,a,s,o,c;return t instanceof et?new et(t.l,t.a,t.b,t.opacity):t instanceof ot?ct(t):(s=nt((.2225045*(e=at((t=t instanceof n?t:i(t)).r))+.7168786*(r=at(t.g))+.0606169*(a=at(t.b)))/q),e===r&&r===a?o=c=s:(o=nt((.4360747*e+.3850649*r+.1430804*a)/G),c=nt((.0139322*e+.0971045*r+.7141733*a)/R)),new et(116*s-16,500*(o-s),200*(s-c),t.opacity))}function et(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function nt(t){return t>K?Math.pow(t,1/3):t/J+X}function rt(t){return t>Q?t*t*t:J*(t-X)}function it(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function at(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function st(t,e,n,r){return 1===arguments.length?function(t){var e;return t instanceof ot?new ot(t.h,t.c,t.l,t.opacity):0===(t=t instanceof et?t:tt(t)).a&&0===t.b?new ot(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity):new ot((e=Math.atan2(t.b,t.a)*Z)<0?360+e:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new ot(t,e,n,null==r?1:r)}function ot(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function ct(t){var e;return isNaN(t.h)?new et(t.l,0,0,t.opacity):(e=t.h*V,new et(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity))}t(et,(function(t,e,n,r){return 1===arguments.length?tt(t):new et(t,e,n,null==r?1:r)}),e(r,{brighter(t){return new et(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker(t){return new et(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;e=G*rt(e),t=q*rt(t),r=R*rt(r);return new n(it(3.1338561*e-1.6168667*t-.4906146*r),it(-.9787684*e+1.9161415*t+.033454*r),it(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}})),t(ot,st,e(r,{brighter(t){return new ot(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker(t){return new ot(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb(){return ct(this).rgb()}}));var lt,ut=(lt=s,function(t,e){var n=lt((t=st(t)).h,(e=st(e)).h),r=a(t.c,e.c),i=a(t.l,e.l),s=a(t.opacity,e.opacity);return function(e){return t.h=n(e),t.c=r(e),t.l=i(e),t.opacity=s(e),t+""}});const dt=new Date,ht=new Date;function ft(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=e=>(t(e=new Date(+e)),e),i.ceil=n=>(t(n=new Date(n-1)),e(n,1),t(n),n),i.round=t=>{var e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=(t,n)=>(e(t=new Date(+t),null==n?1:Math.floor(n)),t),i.range=(n,r,a)=>{var s,o=[];if(n=i.ceil(n),a=null==a?1:Math.floor(a),n<r&&0<a)for(;o.push(s=new Date(+n)),e(n,a),t(n),s<n&&n<r;);return o},i.filter=n=>ft((e=>{if(e<=e)for(;t(e),!n(e);)e.setTime(e-1)}),((t,r)=>{if(t<=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;0<=--r;)for(;e(t,1),!n(t););})),n&&(i.count=(e,r)=>(dt.setTime(+e),ht.setTime(+r),t(dt),t(ht),Math.floor(n(dt,ht))),i.every=t=>(t=Math.floor(t),isFinite(t)&&0<t?1<t?i.filter(r?e=>r(e)%t==0:e=>i.count(0,e)%t==0):i:null)),i}const gt=ft((()=>{}),((t,e)=>{t.setTime(+t+e)}),((t,e)=>e-t)),yt=(gt.every=t=>(t=Math.floor(t),isFinite(t)&&0<t?1<t?ft((e=>{e.setTime(Math.floor(e/t)*t)}),((e,n)=>{e.setTime(+e+n*t)}),((e,n)=>(n-e)/t)):gt:null),gt.range,1e3),mt=60*yt,kt=60*mt,pt=24*kt,Tt=7*pt,vt=30*pt,bt=365*pt,xt=ft((t=>{t.setTime(t-t.getMilliseconds())}),((t,e)=>{t.setTime(+t+e*yt)}),((t,e)=>(e-t)/yt),(t=>t.getUTCSeconds())),wt=(xt.range,ft((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*yt)}),((t,e)=>{t.setTime(+t+e*mt)}),((t,e)=>(e-t)/mt),(t=>t.getMinutes()))),Dt=(wt.range,ft((t=>{t.setUTCSeconds(0,0)}),((t,e)=>{t.setTime(+t+e*mt)}),((t,e)=>(e-t)/mt),(t=>t.getUTCMinutes()))),Ct=(Dt.range,ft((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*yt-t.getMinutes()*mt)}),((t,e)=>{t.setTime(+t+e*kt)}),((t,e)=>(e-t)/kt),(t=>t.getHours()))),Mt=(Ct.range,ft((t=>{t.setUTCMinutes(0,0,0)}),((t,e)=>{t.setTime(+t+e*kt)}),((t,e)=>(e-t)/kt),(t=>t.getUTCHours()))),_t=(Mt.range,ft((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*mt)/pt),(t=>t.getDate()-1))),St=(_t.range,ft((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/pt),(t=>t.getUTCDate()-1))),$t=(St.range,ft((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/pt),(t=>Math.floor(t/pt))));function Yt(t){return ft((e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),((t,e)=>{t.setDate(t.getDate()+7*e)}),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*mt)/Tt))}$t.range;const Ft=Yt(0),At=Yt(1),Ut=Yt(2),Lt=Yt(3),Et=Yt(4),It=Yt(5),Wt=Yt(6);function Ht(t){return ft((e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)}),((t,e)=>(e-t)/Tt))}Ft.range,At.range,Ut.range,Lt.range,Et.range,It.range,Wt.range;const Ot=Ht(0),Pt=Ht(1),zt=Ht(2),Nt=Ht(3),Bt=Ht(4),jt=Ht(5),Vt=Ht(6),Zt=(Ot.range,Pt.range,zt.range,Nt.range,Bt.range,jt.range,Vt.range,ft((t=>{t.setDate(1),t.setHours(0,0,0,0)}),((t,e)=>{t.setMonth(t.getMonth()+e)}),((t,e)=>e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())),(t=>t.getMonth()))),Gt=(Zt.range,ft((t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)}),((t,e)=>e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())),(t=>t.getUTCMonth()))),qt=(Gt.range,ft((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()))),Rt=(qt.every=t=>isFinite(t=Math.floor(t))&&0<t?ft((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)})):null,qt.range,ft((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())));Rt.every=t=>isFinite(t=Math.floor(t))&&0<t?ft((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)})):null,Rt.range;const[Xt,Qt]=function(t,e,n,r,i,a){const s=[[xt,1,yt],[xt,5,5*yt],[xt,15,15*yt],[xt,30,30*yt],[a,1,mt],[a,5,5*mt],[a,15,15*mt],[a,30,30*mt],[i,1,kt],[i,3,3*kt],[i,6,6*kt],[i,12,12*kt],[r,1,pt],[r,2,2*pt],[n,1,Tt],[e,1,vt],[e,3,3*vt],[t,1,bt]];function o(e,n,r){var i=Math.abs(n-e)/r,a=C((([,,t])=>t)).right(s,i);return a===s.length?t.every(M(e/bt,n/bt,r)):0===a?gt.every(Math.max(M(e,n,r),1)):([e,n]=s[i/s[a-1][2]<s[a][2]/i?a-1:a],e.every(n))}return[function(t,e,n){var r=e<t;return r&&([t,e]=[e,t]),n=(n=n&&"function"==typeof n.range?n:o(t,e,n))?n.range(t,+e+1):[],r?n.reverse():n},o]}(qt,Zt,Ft,_t,Ct,wt);function Jt(t){var e;return 0<=t.y&&t.y<100?((e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L)).setFullYear(t.y),e):new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Kt(t){var e;return 0<=t.y&&t.y<100?((e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L))).setUTCFullYear(t.y),e):new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function te(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var ee,ne,re={"-":"",_:" ",0:"0"},ie=/^\s*\d+/,ae=/^%/,se=/[\\^$*+?|[\]().{}]/g;function oe(t,e,n){var r=t<0?"-":"",i=(t=(r?-t:t)+"").length;return r+(i<n?new Array(n-i+1).join(e)+t:t)}function ce(t){return t.replace(se,"\\$&")}function le(t){return new RegExp("^(?:"+t.map(ce).join("|")+")","i")}function ue(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function de(t,e,n){return(e=ie.exec(e.slice(n,n+1)))?(t.w=+e[0],n+e[0].length):-1}function he(t,e,n){return(e=ie.exec(e.slice(n,n+1)))?(t.u=+e[0],n+e[0].length):-1}function fe(t,e,n){return(e=ie.exec(e.slice(n,n+2)))?(t.U=+e[0],n+e[0].length):-1}function ge(t,e,n){return(e=ie.exec(e.slice(n,n+2)))?(t.V=+e[0],n+e[0].length):-1}function ye(t,e,n){return(e=ie.exec(e.slice(n,n+2)))?(t.W=+e[0],n+e[0].length):-1}function me(t,e,n){return(e=ie.exec(e.slice(n,n+4)))?(t.y=+e[0],n+e[0].length):-1}function ke(t,e,n){return(e=ie.exec(e.slice(n,n+2)))?(t.y=+e[0]+(68<+e[0]?1900:2e3),n+e[0].length):-1}function pe(t,e,n){return(e=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6)))?(t.Z=e[1]?0:-(e[2]+(e[3]||"00")),n+e[0].length):-1}function Te(t,e,n){return(e=ie.exec(e.slice(n,n+1)))?(t.q=3*e[0]-3,n+e[0].length):-1}function ve(t,e,n){return(e=ie.exec(e.slice(n,n+2)))?(t.m=e[0]-1,n+e[0].length):-1}function be(t,e,n){return(e=ie.exec(e.slice(n,n+2)))?(t.d=+e[0],n+e[0].length):-1}function xe(t,e,n){return(e=ie.exec(e.slice(n,n+3)))?(t.m=0,t.d=+e[0],n+e[0].length):-1}function we(t,e,n){return(e=ie.exec(e.slice(n,n+2)))?(t.H=+e[0],n+e[0].length):-1}function De(t,e,n){return(e=ie.exec(e.slice(n,n+2)))?(t.M=+e[0],n+e[0].length):-1}function Ce(t,e,n){return(e=ie.exec(e.slice(n,n+2)))?(t.S=+e[0],n+e[0].length):-1}function Me(t,e,n){return(e=ie.exec(e.slice(n,n+3)))?(t.L=+e[0],n+e[0].length):-1}function _e(t,e,n){return(e=ie.exec(e.slice(n,n+6)))?(t.L=Math.floor(e[0]/1e3),n+e[0].length):-1}function Se(t,e,n){return(e=ae.exec(e.slice(n,n+1)))?n+e[0].length:-1}function $e(t,e,n){return(e=ie.exec(e.slice(n)))?(t.Q=+e[0],n+e[0].length):-1}function Ye(t,e,n){return(e=ie.exec(e.slice(n)))?(t.s=+e[0],n+e[0].length):-1}function Fe(t,e){return oe(t.getDate(),e,2)}function Ae(t,e){return oe(t.getHours(),e,2)}function Ue(t,e){return oe(t.getHours()%12||12,e,2)}function Le(t,e){return oe(1+_t.count(qt(t),t),e,3)}function Ee(t,e){return oe(t.getMilliseconds(),e,3)}function Ie(t,e){return Ee(t,e)+"000"}function We(t,e){return oe(t.getMonth()+1,e,2)}function He(t,e){return oe(t.getMinutes(),e,2)}function Oe(t,e){return oe(t.getSeconds(),e,2)}function Pe(t){return 0===(t=t.getDay())?7:t}function ze(t,e){return oe(Ft.count(qt(t)-1,t),e,2)}function Ne(t){var e=t.getDay();return 4<=e||0===e?Et(t):Et.ceil(t)}function Be(t,e){return t=Ne(t),oe(Et.count(qt(t),t)+(4===qt(t).getDay()),e,2)}function je(t){return t.getDay()}function Ve(t,e){return oe(At.count(qt(t)-1,t),e,2)}function Ze(t,e){return oe(t.getFullYear()%100,e,2)}function Ge(t,e){return oe((t=Ne(t)).getFullYear()%100,e,2)}function qe(t,e){return oe(t.getFullYear()%1e4,e,4)}function Re(t,e){var n=t.getDay();return oe((t=4<=n||0===n?Et(t):Et.ceil(t)).getFullYear()%1e4,e,4)}function Xe(t){return(0<(t=t.getTimezoneOffset())?"-":(t*=-1,"+"))+oe(t/60|0,"0",2)+oe(t%60,"0",2)}function Qe(t,e){return oe(t.getUTCDate(),e,2)}function Je(t,e){return oe(t.getUTCHours(),e,2)}function Ke(t,e){return oe(t.getUTCHours()%12||12,e,2)}function tn(t,e){return oe(1+St.count(Rt(t),t),e,3)}function en(t,e){return oe(t.getUTCMilliseconds(),e,3)}function nn(t,e){return en(t,e)+"000"}function rn(t,e){return oe(t.getUTCMonth()+1,e,2)}function an(t,e){return oe(t.getUTCMinutes(),e,2)}function sn(t,e){return oe(t.getUTCSeconds(),e,2)}function on(t){return 0===(t=t.getUTCDay())?7:t}function cn(t,e){return oe(Ot.count(Rt(t)-1,t),e,2)}function ln(t){var e=t.getUTCDay();return 4<=e||0===e?Bt(t):Bt.ceil(t)}function un(t,e){return t=ln(t),oe(Bt.count(Rt(t),t)+(4===Rt(t).getUTCDay()),e,2)}function dn(t){return t.getUTCDay()}function hn(t,e){return oe(Pt.count(Rt(t)-1,t),e,2)}function fn(t,e){return oe(t.getUTCFullYear()%100,e,2)}function gn(t,e){return oe((t=ln(t)).getUTCFullYear()%100,e,2)}function yn(t,e){return oe(t.getUTCFullYear()%1e4,e,4)}function mn(t,e){var n=t.getUTCDay();return oe((t=4<=n||0===n?Bt(t):Bt.ceil(t)).getUTCFullYear()%1e4,e,4)}function kn(){return"+0000"}function pn(){return"%"}function Tn(t){return+t}function vn(t){return Math.floor(+t/1e3)}function bn(t){return new Date(t)}function xn(t){return t instanceof Date?+t:+new Date(+t)}function wn(t,e,n,r,i,a,s,o,c,l){var u=_(),d=u.invert,h=u.domain,f=l(".%L"),g=l(":%S"),y=l("%I:%M"),m=l("%I %p"),k=l("%a %d"),p=l("%b %d"),T=l("%B"),v=l("%Y");function b(t){return(c(t)<t?f:o(t)<t?g:s(t)<t?y:a(t)<t?m:r(t)<t?i(t)<t?k:p:n(t)<t?T:v)(t)}return u.invert=function(t){return new Date(d(t))},u.domain=function(t){return arguments.length?h(Array.from(t,xn)):h().map(bn)},u.ticks=function(e){var n=h();return t(n[0],n[n.length-1],null==e?10:e)},u.tickFormat=function(t,e){return null==e?b:l(e)},u.nice=function(t){var n=h();return(t=t&&"function"==typeof t.range?t:e(n[0],n[n.length-1],null==t?10:t))?h(function(t,e){var n,r=0,i=(t=t.slice()).length-1,a=t[r],s=t[i];return s<a&&(n=r,r=i,i=n,n=a,a=s,s=n),t[r]=e.floor(a),t[i]=e.ceil(s),t}(n,t)):u},u.copy=function(){return S(u,wn(t,e,n,r,i,a,s,o,c,l))},u}function Dn(){return Y.apply(wn(Xt,Qt,qt,Zt,Ft,_t,Ct,wt,xt,ne).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}ee=function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,a=t.days,s=t.shortDays,o=t.months,c=t.shortMonths,l=le(i),u=ue(i),d=le(a),h=ue(a),f=le(s),g=ue(s),y=le(o),m=ue(o),k=le(c),p=ue(c),T={a:function(t){return s[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return o[t.getMonth()]},c:null,d:Fe,e:Fe,f:Ie,g:Ge,G:Re,H:Ae,I:Ue,j:Le,L:Ee,m:We,M:He,p:function(t){return i[+(12<=t.getHours())]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Tn,s:vn,S:Oe,u:Pe,U:ze,V:Be,w:je,W:Ve,x:null,X:null,y:Ze,Y:qe,Z:Xe,"%":pn},v={a:function(t){return s[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return o[t.getUTCMonth()]},c:null,d:Qe,e:Qe,f:nn,g:gn,G:mn,H:Je,I:Ke,j:tn,L:en,m:rn,M:an,p:function(t){return i[+(12<=t.getUTCHours())]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Tn,s:vn,S:sn,u:on,U:cn,V:un,w:dn,W:hn,x:null,X:null,y:fn,Y:yn,Z:kn,"%":pn},b={a:function(t,e,n){return(e=f.exec(e.slice(n)))?(t.w=g.get(e[0].toLowerCase()),n+e[0].length):-1},A:function(t,e,n){return(e=d.exec(e.slice(n)))?(t.w=h.get(e[0].toLowerCase()),n+e[0].length):-1},b:function(t,e,n){return(e=k.exec(e.slice(n)))?(t.m=p.get(e[0].toLowerCase()),n+e[0].length):-1},B:function(t,e,n){return(e=y.exec(e.slice(n)))?(t.m=m.get(e[0].toLowerCase()),n+e[0].length):-1},c:function(t,n,r){return D(t,e,n,r)},d:be,e:be,f:_e,g:ke,G:me,H:we,I:we,j:xe,L:Me,m:ve,M:De,p:function(t,e,n){return(e=l.exec(e.slice(n)))?(t.p=u.get(e[0].toLowerCase()),n+e[0].length):-1},q:Te,Q:$e,s:Ye,S:Ce,u:he,U:fe,V:ge,w:de,W:ye,x:function(t,e,r){return D(t,n,e,r)},X:function(t,e,n){return D(t,r,e,n)},y:ke,Y:me,Z:pe,"%":Se};function x(t,e){return function(n){var r,i,a,s=[],o=-1,c=0,l=t.length;for(n instanceof Date||(n=new Date(+n));++o<l;)37===t.charCodeAt(o)&&(s.push(t.slice(c,o)),null!=(i=re[r=t.charAt(++o)])?r=t.charAt(++o):i="e"===r?" ":"0",(a=e[r])&&(r=a(n,i)),s.push(r),c=o+1);return s.push(t.slice(c,o)),s.join("")}}function w(t,e){return function(n){var r,i,a=te(1900,void 0,1);if(D(a,t,n+="",0)!=n.length)return null;if("Q"in a)return new Date(a.Q);if("s"in a)return new Date(1e3*a.s+("L"in a?a.L:0));if(!e||"Z"in a||(a.Z=0),"p"in a&&(a.H=a.H%12+12*a.p),void 0===a.m&&(a.m="q"in a?a.q:0),"V"in a){if(a.V<1||53<a.V)return null;"w"in a||(a.w=1),"Z"in a?(r=4<(i=(r=Kt(te(a.y,0,1))).getUTCDay())||0===i?Pt.ceil(r):Pt(r),r=St.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(r=4<(i=(r=Jt(te(a.y,0,1))).getDay())||0===i?At.ceil(r):At(r),r=_t.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),i="Z"in a?Kt(te(a.y,0,1)).getUTCDay():Jt(te(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return("Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,Kt):Jt)(a)}}function D(t,e,n,r){for(var i,a,s=0,o=e.length,c=n.length;s<o;){if(c<=r)return-1;if(37===(i=e.charCodeAt(s++))){if(i=e.charAt(s++),!(a=b[i in re?e.charAt(s++):i])||(r=a(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return T.x=x(n,T),T.X=x(r,T),T.c=x(e,T),v.x=x(n,v),v.X=x(r,v),v.c=x(e,v),{format:function(t){var e=x(t+="",T);return e.toString=function(){return t},e},parse:function(t){var e=w(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=x(t+="",v);return e.toString=function(){return t},e},utcParse:function(t){var e=w(t+="",!0);return e.toString=function(){return t},e}}}({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"]}),ne=ee.format,ee.parse,ee.utcFormat,ee.utcParse;var Cn,Mn,_n={exports:{}},Sn=(_n.exports=function(t,e,n){function r(t){return t.add(4-t.isoWeekday(),"day")}var i=((e=e.prototype).isoWeekYear=function(){return r(this).year()},e.isoWeek=function(t){var e,i,a;return this.$utils().u(t)?(i=r(this),a=this.isoWeekYear(),e=4-(a=(this.$u?n.utc:n)().year(a).startOf("year")).isoWeekday(),4<a.isoWeekday()&&(e+=7),a=a.add(e,"day"),i.diff(a,"week")+1):this.add(7*(t-this.isoWeek()),"day")},e.isoWeekday=function(t){return this.$utils().u(t)?this.day()||7:this.day(this.day()%7?t:t-7)},e.startOf);e.startOf=function(t,e){var n=this.$utils(),r=!!n.u(e)||e;return"isoweek"===n.p(t)?r?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):i.bind(this)(t,e)}},_n.exports),$n=c(Sn),Yn={exports:{}},Fn=(function(){var t,e,n,r,i,a,s,o,c,l,u;Yn.exports=(t={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"},e=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i={},a=function(t){return(t=+t)+(68<t?1900:2e3)},c=function(t){return(t=i[t])&&(t.indexOf?t:t.s.concat(t.f))},l=function(t,e){var n,r=i.meridiem;if(r){for(var a=1;a<=24;a+=1)if(-1<t.indexOf(r(a,0,e))){n=12<a;break}}else n=t===(e?"pm":"PM");return n},u={A:[r=/\d*[^-_:/,()\s\d]+/,function(t){this.afternoon=l(t,!1)}],a:[r,function(t){this.afternoon=l(t,!0)}],Q:[n=/\d/,function(t){this.month=3*(t-1)+1}],S:[n,function(t){this.milliseconds=100*+t}],SS:[n=/\d\d/,function(t){this.milliseconds=10*+t}],SSS:[/\d{3}/,function(t){this.milliseconds=+t}],s:[o=/\d\d?/,(s=function(t){return function(e){this[t]=+e}})("seconds")],ss:[o,s("seconds")],m:[o,s("minutes")],mm:[o,s("minutes")],H:[o,s("hours")],h:[o,s("hours")],HH:[o,s("hours")],hh:[o,s("hours")],D:[o,s("day")],DD:[n,s("day")],Do:[r,function(t){var e=i.ordinal,n=t.match(/\d+/);if(this.day=n[0],e)for(var r=1;r<=31;r+=1)e(r).replace(/\[|\]/g,"")===t&&(this.day=r)}],w:[o,s("week")],ww:[n,s("week")],M:[o,s("month")],MM:[n,s("month")],MMM:[r,function(t){var e=c("months");e=(c("monthsShort")||e.map((function(t){return t.slice(0,3)}))).indexOf(t)+1;if(e<1)throw new Error;this.month=e%12||e}],MMMM:[r,function(t){if((t=c("months").indexOf(t)+1)<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,s("year")],YY:[n,function(t){this.year=a(t)}],YYYY:[/\d{4}/,s("year")],Z:o=[/[+-]\d\d:?(\d\d)?|Z/,function(t){var e;(this.zone||(this.zone={})).offset=t&&"Z"!==t&&0!==(e=60*(t=t.match(/([+-]|\d\d)/g))[1]+(+t[2]||0))?"+"===t[0]?-e:e:0}],ZZ:o},function(n,r,s){s.p.customParseFormat=!0,n&&n.parseTwoDigitYear&&(a=n.parseTwoDigitYear);var o=(n=r.prototype).parse;n.parse=function(n){var r=n.date,a=n.utc,c=n.args,l=(this.$u=a,c[1]);if("string"==typeof l){var d=!0===c[2],h=!0===c[3],f=d||h,g=c[2];h&&(g=c[2]),i=this.$locale(),!d&&g&&(i=s.Ls[g]),this.$d=function(n,r,a,s){try{if(-1<["x","X"].indexOf(r))return new Date(("X"===r?1e3:1)*n);var o=function(n){var r,a;r=n,a=i&&i.formats;for(var s=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(e,n,r){var i=r&&r.toUpperCase();return n||a[r]||t[r]||a[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(t,e,n){return e||n.slice(1)}))}))).match(e),o=s.length,c=0;c<o;c+=1){var l=s[c],d=(h=u[l])&&h[0],h=h&&h[1];s[c]=h?{regex:d,parser:h}:l.replace(/^\[|\]$/g,"")}return function(t){for(var e,n,r,i={},a=0,c=0;a<o;a+=1){var l,u,d=s[a];"string"==typeof d?c+=d.length:(u=d.regex,d=d.parser,l=t.slice(c),u=u.exec(l)[0],d.call(i,u),t=t.replace(u,""))}return void 0!==(r=(e=i).afternoon)&&(n=e.hours,r?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon),i}}(r)(n),c=o.year,l=o.month,d=o.day,h=o.hours,f=o.minutes,g=o.seconds,y=o.milliseconds,m=o.zone,k=o.week,p=new Date,T=d||(c||l?1:p.getDate()),v=c||p.getFullYear(),b=0;c&&!l||(b=0<l?l-1:p.getMonth());var x,w=h||0,D=f||0,C=g||0,M=y||0;return m?new Date(Date.UTC(v,b,T,w,D,C,M+60*m.offset*1e3)):a?new Date(Date.UTC(v,b,T,w,D,C,M)):(x=new Date(v,b,T,w,D,C,M),x=k?s(x).week(k).toDate():x)}catch(n){return new Date("")}}(r,l,a,s),this.init(),g&&!0!==g&&(this.$L=this.locale(g).$L),f&&r!=this.format(l)&&(this.$d=new Date("")),i={}}else if(l instanceof Array)for(var y=l.length,m=1;m<=y;m+=1){c[1]=l[m-1];var k=s.apply(this,c);if(k.isValid()){this.$d=k.$d,this.$L=k.$L,this.init();break}m===y&&(this.$d=new Date(""))}else o.call(this,n)}})}(),Yn.exports),An=c(Fn),Un=function(t,e){var n=(e=e.prototype).format;e.format=function(t){var e,r,i=this,a=this.$locale();return this.isValid()?(e=this.$utils(),r=(t||"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(t){switch(t){case"Q":return Math.ceil((i.$M+1)/3);case"Do":return a.ordinal(i.$D);case"gggg":return i.weekYear();case"GGGG":return i.isoWeekYear();case"wo":return a.ordinal(i.week(),"W");case"w":case"ww":return e.s(i.week(),"w"===t?1:2,"0");case"W":case"WW":return e.s(i.isoWeek(),"W"===t?1:2,"0");case"k":case"kk":return e.s(String(0===i.$H?24:i.$H),"k"===t?1:2,"0");case"X":return Math.floor(i.$d.getTime()/1e3);case"x":return i.$d.getTime();case"z":return"["+i.offsetName()+"]";case"zzz":return"["+i.offsetName("long")+"]";default:return t}})),n.bind(this)(r)):n.bind(this)(t)}},Ln=c(Un),En=function(){var t=l((function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n}),"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],i=[1,28],a=[1,29],s=[1,30],o=[1,31],c=[1,32],u=[1,33],d=[1,34],h=[1,9],f=[1,10],g=[1,11],y=[1,12],m=[1,13],k=[1,14],p=[1,15],T=[1,16],v=[1,19],b=[1,20],x=[1,21],w=[1,22],D=[1,23],C=[1,25],M=[1,35];n={trace:l((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:l((function(t,e,n,r,i,a,s){var o=a.length-1;switch(i){case 1:return a[o-1];case 2:case 6:case 7:this.$=[];break;case 3:a[o-1].push(a[o]),this.$=a[o-1];break;case 4:case 5:this.$=a[o];break;case 8:r.setWeekday("monday");break;case 9:r.setWeekday("tuesday");break;case 10:r.setWeekday("wednesday");break;case 11:r.setWeekday("thursday");break;case 12:r.setWeekday("friday");break;case 13:r.setWeekday("saturday");break;case 14:r.setWeekday("sunday");break;case 15:r.setWeekend("friday");break;case 16:r.setWeekend("saturday");break;case 17:r.setDateFormat(a[o].substr(11)),this.$=a[o].substr(11);break;case 18:r.enableInclusiveEndDates(),this.$=a[o].substr(18);break;case 19:r.TopAxis(),this.$=a[o].substr(8);break;case 20:r.setAxisFormat(a[o].substr(11)),this.$=a[o].substr(11);break;case 21:r.setTickInterval(a[o].substr(13)),this.$=a[o].substr(13);break;case 22:r.setExcludes(a[o].substr(9)),this.$=a[o].substr(9);break;case 23:r.setIncludes(a[o].substr(9)),this.$=a[o].substr(9);break;case 24:r.setTodayMarker(a[o].substr(12)),this.$=a[o].substr(12);break;case 27:r.setDiagramTitle(a[o].substr(6)),this.$=a[o].substr(6);break;case 28:this.$=a[o].trim(),r.setAccTitle(this.$);break;case 29:case 30:this.$=a[o].trim(),r.setAccDescription(this.$);break;case 31:r.addSection(a[o].substr(8)),this.$=a[o].substr(8);break;case 33:r.addTask(a[o-1],a[o]),this.$="task";break;case 34:this.$=a[o-1],r.setClickEvent(a[o-1],a[o],null);break;case 35:this.$=a[o-2],r.setClickEvent(a[o-2],a[o-1],a[o]);break;case 36:this.$=a[o-2],r.setClickEvent(a[o-2],a[o-1],null),r.setLink(a[o-2],a[o]);break;case 37:this.$=a[o-3],r.setClickEvent(a[o-3],a[o-2],a[o-1]),r.setLink(a[o-3],a[o]);break;case 38:this.$=a[o-2],r.setClickEvent(a[o-2],a[o],null),r.setLink(a[o-2],a[o-1]);break;case 39:this.$=a[o-3],r.setClickEvent(a[o-3],a[o-1],a[o]),r.setLink(a[o-3],a[o-2]);break;case 40:this.$=a[o-1],r.setLink(a[o-1],a[o]);break;case 41:case 47:this.$=a[o-1]+" "+a[o];break;case 42:case 43:case 45:this.$=a[o-2]+" "+a[o-1]+" "+a[o];break;case 44:case 46:this.$=a[o-3]+" "+a[o-2]+" "+a[o-1]+" "+a[o]}}),"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:i,15:a,16:s,17:o,18:c,19:18,20:u,21:d,22:h,23:f,24:g,25:y,26:m,27:k,28:p,29:T,30:v,31:b,33:x,35:w,36:D,37:24,38:C,40:M},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:n,13:r,14:i,15:a,16:s,17:o,18:c,19:18,20:u,21:d,22:h,23:f,24:g,25:y,26:m,27:k,28:p,29:T,30:v,31:b,33:x,35:w,36:D,37:24,38:C,40:M},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:l((function(t,e){var n;if(!e.recoverable)throw(n=new Error(t)).hash=e,n;this.trace(t)}),"parseError"),parse:l((function(t){var e,n=this,r=[0],i=[],a=[null],s=[],o=this.table,c="",u=0,d=0,h=s.slice.call(arguments,1),f=Object.create(this.lexer),g={yy:{}};for(e in this.yy)Object.prototype.hasOwnProperty.call(this.yy,e)&&(g.yy[e]=this.yy[e]);f.setInput(t,g.yy),g.yy.lexer=f,g.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var y=f.yylloc,m=(s.push(y),f.options&&f.options.ranges);function k(){var t=i.pop()||f.lex()||1;return"number"!=typeof t&&(t instanceof Array&&(t=(i=t).pop()),t=n.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,l((function(t){r.length=r.length-2*t,a.length=a.length-t,s.length=s.length-t}),"popStack"),l(k,"lex");for(var p,T,v,b,x,w,D={};;){if(T=r[r.length-1],void 0===(v=this.defaultActions[T]||(null==p&&(p=k()),o[T]&&o[T][p]))||!v.length||!v[0]){var C,M=[];for(b in o[T])this.terminals_[b]&&2<b&&M.push("'"+this.terminals_[b]+"'");C=f.showPosition?"Parse error on line "+(u+1)+":\n"+f.showPosition()+"\nExpecting "+M.join(", ")+", got '"+(this.terminals_[p]||p)+"'":"Parse error on line "+(u+1)+": Unexpected "+(1==p?"end of input":"'"+(this.terminals_[p]||p)+"'"),this.parseError(C,{text:f.match,token:this.terminals_[p]||p,line:f.yylineno,loc:y,expected:M})}if(v[0]instanceof Array&&1<v.length)throw new Error("Parse Error: multiple actions possible at state: "+T+", token: "+p);switch(v[0]){case 1:r.push(p),a.push(f.yytext),s.push(f.yylloc),r.push(v[1]),p=null,d=f.yyleng,c=f.yytext,u=f.yylineno,y=f.yylloc;break;case 2:if(x=this.productions_[v[1]][1],D.$=a[a.length-x],D._$={first_line:s[s.length-(x||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(x||1)].first_column,last_column:s[s.length-1].last_column},m&&(D._$.range=[s[s.length-(x||1)].range[0],s[s.length-1].range[1]]),void 0!==(w=this.performAction.apply(D,[c,d,u,g.yy,v[1],a,s].concat(h))))return w;x&&(r=r.slice(0,-1*x*2),a=a.slice(0,-1*x),s=s.slice(0,-1*x)),r.push(this.productions_[v[1]][0]),a.push(D.$),s.push(D._$),w=o[r[r.length-2]][r[r.length-1]],r.push(w);break;case 3:return!0}}return!0}),"parse")},r={EOF:1,parseError:l((function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)}),"parseError"),setInput:l((function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this}),"setInput"),input:l((function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t}),"input"),unput:l((function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g),r=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,t=this.match.split(/(?:\r\n?|\n)/g),this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===t.length?this.yylloc.first_column:0)+t[t.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this}),"unput"),more:l((function(){return this._more=!0,this}),"more"),reject:l((function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"reject"),less:l((function(t){this.unput(this.match.slice(t))}),"less"),pastInput:l((function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(20<t.length?"...":"")+t.substr(-20).replace(/\n/g,"")}),"pastInput"),upcomingInput:l((function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(20<t.length?"...":"")).replace(/\n/g,"")}),"upcomingInput"),showPosition:l((function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"}),"showPosition"),test_match:l((function(t,e){var n,r;if(this.options.backtrack_lexer&&(r={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)&&(r.yylloc.range=this.yylloc.range.slice(0)),(n=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack)for(var i in r)this[i]=r[i];return!1}),"test_match"),next:l((function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,n,r,i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length))if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(!this._backtrack)return!1;e=!1}else if(!this.options.flex)break;return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"next"),lex:l((function(){return this.next()||this.lex()}),"lex"),begin:l((function(t){this.conditionStack.push(t)}),"begin"),popState:l((function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]}),"popState"),_currentRules:l((function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules}),"_currentRules"),topState:l((function(t){return 0<=(t=this.conditionStack.length-1-Math.abs(t||0))?this.conditionStack[t]:"INITIAL"}),"topState"),pushState:l((function(t){this.begin(t)}),"pushState"),stateStackSize:l((function(){return this.conditionStack.length}),"stateStackSize"),options:{"case-insensitive":!0},performAction:l((function(t,e,n,r){switch(n){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:case 15:case 18:case 21:case 24:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:case 9:case 10:case 12:case 13:break;case 11:return 10;case 14:this.begin("href");break;case 16:return 43;case 17:this.begin("callbackname");break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 22:return 42;case 23:this.begin("click");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}}};function _(){this.yy={}}return n.lexer=r,l(_,"Parser"),new((_.prototype=n).Parser=_)}(),In=En.parser=En,Wn=(u.extend($n),u.extend(An),u.extend(Ln),{friday:5,saturday:6}),Hn="",On="",Pn=void 0,zn="",Nn=[],Bn=[],jn=new Map,Vn=[],Zn=[],Gn="",qn="",Rn=["active","done","crit","milestone","vert"],Xn=[],Qn=!1,Jn=!1,Kn="sunday",tr="saturday",er=0,nr=l((function(){Vn=[],Zn=[],Xn=[],Hr=[],Pn=Mn=Cn=void(Lr=0),zn=qn=On=Hn=Gn="",Nn=[],Jn=Qn=!(Bn=[]),er=0,jn=new Map,p(),Kn="sunday",tr="saturday"}),"clear"),rr=l((function(t){On=t}),"setAxisFormat"),ir=l((function(){return On}),"getAxisFormat"),ar=l((function(t){Pn=t}),"setTickInterval"),sr=l((function(){return Pn}),"getTickInterval"),or=l((function(t){zn=t}),"setTodayMarker"),cr=l((function(){return zn}),"getTodayMarker"),lr=l((function(t){Hn=t}),"setDateFormat"),ur=l((function(){Qn=!0}),"enableInclusiveEndDates"),dr=l((function(){return Qn}),"endDatesAreInclusive"),hr=l((function(){Jn=!0}),"enableTopAxis"),fr=l((function(){return Jn}),"topAxisEnabled"),gr=l((function(t){qn=t}),"setDisplayMode"),yr=l((function(){return qn}),"getDisplayMode"),mr=l((function(){return Hn}),"getDateFormat"),kr=l((function(t){Nn=t.toLowerCase().split(/[\s,]+/)}),"setIncludes"),pr=l((function(){return Nn}),"getIncludes"),Tr=l((function(t){Bn=t.toLowerCase().split(/[\s,]+/)}),"setExcludes"),vr=l((function(){return Bn}),"getExcludes"),br=l((function(){return jn}),"getLinks"),xr=l((function(t){Gn=t,Vn.push(t)}),"addSection"),wr=l((function(){return Vn}),"getSections"),Dr=l((function(){let t=Br(),e=0;for(;!t&&e<10;)t=Br(),e++;return Zn=Hr}),"getTasks"),Cr=l((function(t,e,n,r){e=t.format(e.trim());var i=t.format("YYYY-MM-DD");return!r.includes(e)&&!r.includes(i)&&(!(!n.includes("weekends")||t.isoWeekday()!==Wn[tr]&&t.isoWeekday()!==Wn[tr]+1)||!!n.includes(t.format("dddd").toLowerCase())||n.includes(e)||n.includes(i))}),"isInvalidDate"),Mr=l((function(t){Kn=t}),"setWeekday"),_r=l((function(){return Kn}),"getWeekday"),Sr=l((function(t){tr=t}),"setWeekend"),$r=l((function(t,e,n,r){if(n.length&&!t.manualEndTime){let i,a;i=(i=t.startTime instanceof Date?u(t.startTime):u(t.startTime,e,!0)).add(1,"d"),a=t.endTime instanceof Date?u(t.endTime):u(t.endTime,e,!0);var[e,n]=Yr(i,a,e,n,r);t.endTime=e.toDate(),t.renderEndTime=n}}),"checkTaskDates"),Yr=l((function(t,e,n,r,i){let a=!1,s=null;for(;t<=e;)a||(s=e.toDate()),(a=Cr(t,n,r,i))&&(e=e.add(1,"d")),t=t.add(1,"d");return[e,s]}),"fixTaskDates"),Fr=l((function(t,e,n){if(n=n.trim(),("x"===e.trim()||"X"===e.trim())&&/^\d+$/.test(n))return new Date(Number(n));var r=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(null!==r){let t=null;for(const e of r.groups.ids.split(" ")){var i=zr(e);void 0!==i&&(!t||i.endTime>t.endTime)&&(t=i)}return t?t.endTime:((r=new Date).setHours(0,0,0,0),r)}if((r=u(n,e.trim(),!0)).isValid())return r.toDate();if(v.debug("Invalid date:"+n),v.debug("With date format:"+e.trim()),void 0===(r=new Date(n))||isNaN(r.getTime())||r.getFullYear()<-1e4||1e4<r.getFullYear())throw new Error("Invalid date:"+n);return r}),"getStartDate"),Ar=l((function(t){return null!==(t=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim()))?[Number.parseFloat(t[1]),t[2]]:[NaN,"ms"]}),"parseDuration"),Ur=l((function(t,e,n,r=!1){var i;if(n=n.trim(),null!==(i=/^until\s+(?<ids>[\d\w- ]+)/.exec(n))){let t=null;for(const e of i.groups.ids.split(" ")){var a=zr(e);void 0!==a&&(!t||a.startTime<t.startTime)&&(t=a)}return t?t.startTime:((i=new Date).setHours(0,0,0,0),i)}let s=u(n,e.trim(),!0);if(s.isValid())return(s=r?s.add(1,"d"):s).toDate();let o=u(t);var[i,e]=Ar(n);return Number.isNaN(i)||(r=o.add(i,e)).isValid()&&(o=r),o.toDate()}),"getEndDate"),Lr=0,Er=l((function(t){return void 0===t?"task"+(Lr+=1):t}),"parseId"),Ir=l((function(t,e){let n;var r=(n=":"===e.substr(0,1)?e.substr(1,e.length):e).split(","),i={};Qr(r,i,Rn);for(let t=0;t<r.length;t++)r[t]=r[t].trim();let a="";switch(r.length){case 1:i.id=Er(),i.startTime=t.endTime,a=r[0];break;case 2:i.id=Er(),i.startTime=Fr(void 0,Hn,r[0]),a=r[1];break;case 3:i.id=Er(r[0]),i.startTime=Fr(void 0,Hn,r[1]),a=r[2]}return a&&(i.endTime=Ur(i.startTime,Hn,a,Qn),i.manualEndTime=u(a,"YYYY-MM-DD",!0).isValid(),$r(i,Hn,Bn,Nn)),i}),"compileData"),Wr=l((function(t,e){let n;var r=(n=":"===e.substr(0,1)?e.substr(1,e.length):e).split(","),i={};Qr(r,i,Rn);for(let t=0;t<r.length;t++)r[t]=r[t].trim();switch(r.length){case 1:i.id=Er(),i.startTime={type:"prevTaskEnd",id:t},i.endTime={data:r[0]};break;case 2:i.id=Er(),i.startTime={type:"getStartDate",startData:r[0]},i.endTime={data:r[1]};break;case 3:i.id=Er(r[0]),i.startTime={type:"getStartDate",startData:r[1]},i.endTime={data:r[2]}}return i}),"parseData"),Hr=[],Or={},Pr=l((function(t,e){t={section:Gn,type:Gn,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},e=Wr(Mn,e),t.raw.startTime=e.startTime,t.raw.endTime=e.endTime,t.id=e.id,t.prevTaskId=Mn,t.active=e.active,t.done=e.done,t.crit=e.crit,t.milestone=e.milestone,t.vert=e.vert,t.order=er,er++,e=Hr.push(t),Or[Mn=t.id]=e-1}),"addTask"),zr=l((function(t){return t=Or[t],Hr[t]}),"findTaskById"),Nr=l((function(t,e){t={section:Gn,type:Gn,description:t,task:t,classes:[]},e=Ir(Cn,e),t.startTime=e.startTime,t.endTime=e.endTime,t.id=e.id,t.active=e.active,t.done=e.done,t.crit=e.crit,t.milestone=e.milestone,t.vert=e.vert,Cn=t,Zn.push(t)}),"addTaskOrg"),Br=l((function(){var t,e,n=l((function(t){var e=Hr[t];switch(Hr[t].raw.startTime.type){case"prevTaskEnd":var n=zr(e.prevTaskId);e.startTime=n.endTime;break;case"getStartDate":(n=Fr(void 0,Hn,Hr[t].raw.startTime.startData))&&(Hr[t].startTime=n)}return Hr[t].startTime&&(Hr[t].endTime=Ur(Hr[t].startTime,Hn,Hr[t].raw.endTime.data,Qn),Hr[t].endTime)&&(Hr[t].processed=!0,Hr[t].manualEndTime=u(Hr[t].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),$r(Hr[t],Hn,Bn,Nn)),Hr[t].processed}),"compileTask");let r=!0;for([t,e]of Hr.entries())n(t),r=r&&e.processed;return r}),"compileTasks"),jr=l((function(t,e){let n=e;"loose"!==d().securityLevel&&(n=T(e)),t.split(",").forEach((function(t){void 0!==zr(t)&&(Gr(t,(()=>{window.open(n,"_self")})),jn.set(t,n))})),Vr(t,"clickable")}),"setLink"),Vr=l((function(t,e){t.split(",").forEach((function(t){void 0!==(t=zr(t))&&t.classes.push(e)}))}),"setClass"),Zr=l((function(t,e,n){if("loose"===d().securityLevel&&void 0!==e){let r=[];if("string"==typeof n){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t<r.length;t++){let e=r[t].trim();e.startsWith('"')&&e.endsWith('"')&&(e=e.substr(1,e.length-2)),r[t]=e}}0===r.length&&r.push(t),void 0!==zr(t)&&Gr(t,(()=>{D.runFunc(e,...r)}))}}),"setClickFun"),Gr=l((function(t,e){Xn.push((function(){var n=document.querySelector(`[id="${t}"]`);null!==n&&n.addEventListener("click",(function(){e()}))}),(function(){var n=document.querySelector(`[id="${t}-text"]`);null!==n&&n.addEventListener("click",(function(){e()}))}))}),"pushFun"),qr=l((function(t,e,n){t.split(",").forEach((function(t){Zr(t,e,n)})),Vr(t,"clickable")}),"setClickEvent"),Rr=l((function(t){Xn.forEach((function(e){e(t)}))}),"bindFunctions"),Xr={getConfig:l((()=>d().gantt),"getConfig"),clear:nr,setDateFormat:lr,getDateFormat:mr,enableInclusiveEndDates:ur,endDatesAreInclusive:dr,enableTopAxis:hr,topAxisEnabled:fr,setAxisFormat:rr,getAxisFormat:ir,setTickInterval:ar,getTickInterval:sr,setTodayMarker:or,getTodayMarker:cr,setAccTitle:h,getAccTitle:f,setDiagramTitle:g,getDiagramTitle:y,setDisplayMode:gr,getDisplayMode:yr,setAccDescription:m,getAccDescription:k,addSection:xr,getSections:wr,getTasks:Dr,addTask:Pr,findTaskById:zr,addTaskOrg:Nr,setIncludes:kr,getIncludes:pr,setExcludes:Tr,getExcludes:vr,setClickEvent:qr,setLink:jr,getLinks:br,bindFunctions:Rr,parseDuration:Ar,isInvalidDate:Cr,setWeekday:Mr,getWeekday:_r,setWeekend:Sr};function Qr(t,e,n){let r=!0;for(;r;)r=!1,n.forEach((function(n){var i=new RegExp("^\\s*"+n+"\\s*$");t[0].match(i)&&(e[n]=!0,t.shift(1),r=!0)}))}l(Qr,"getTaskTags");var Jr,Kr=l((function(){v.debug("Something is calling, setConf, remove the call")}),"setConf"),ti={monday:At,tuesday:Ut,wednesday:Lt,thursday:Et,friday:It,saturday:Wt,sunday:Ft},ei=l(((t,e)=>{var n=[...t].map((()=>-1/0));let r=0;for(const i of[...t].sort(((t,e)=>t.startTime-e.startTime||t.order-e.order)))for(let t=0;t<n.length;t++)if(i.startTime>=n[t]){n[t]=i.endTime,i.order=t+e,t>r&&(r=t);break}return r}),"getMaxIntersections"),ni=l((function(t,e,n,r){const i=d().gantt;var a=d().securityLevel;let s;"sandbox"===a&&(s=b("#i"+e));var o=b("sandbox"===a?s.nodes()[0].contentDocument.body:"body");const c="sandbox"===a?s.nodes()[0].contentDocument:document;a=c.getElementById(e),void 0===(Jr=a.parentElement.offsetWidth)&&(Jr=1200),void 0!==i.useWidth&&(Jr=i.useWidth);const h=r.db.getTasks();let f=[];for(const t of h)f.push(t.type);f=E(f);const g={};let y=2*i.topPadding;if("compact"===r.db.getDisplayMode()||"compact"===i.displayMode){var m={};for(const t of h)void 0===m[t.section]?m[t.section]=[t]:m[t.section].push(t);let t=0;for(const e of Object.keys(m)){var k=ei(m[e],t)+1;t+=k,y+=k*(i.barHeight+i.barGap),g[e]=k}}else{y+=h.length*(i.barHeight+i.barGap);for(const t of f)g[t]=h.filter((e=>e.type===t)).length}a.setAttribute("viewBox","0 0 "+Jr+" "+y);const p=o.select(`[id="${e}"]`),T=Dn().domain([A(h,(function(t){return t.startTime})),F(h,(function(t){return t.endTime}))]).rangeRound([0,Jr-i.leftPadding-i.rightPadding]);function D(t,e){t=t.startTime;let n=0;return(e=e.startTime)<t?n=1:t<e&&(n=-1),n}function C(t,e,n){var a=i.barHeight,s=a+i.barGap,o=i.topPadding,c=i.leftPadding;$().domain([0,f.length]).range(["#00B9FA","#F95002"]).interpolate(ut);_(s,o,c,0,n,t,r.db.getExcludes(),r.db.getIncludes()),S(c,o,0,n),M(t,s,o,c,a,0,e),Y(s,o),U(c,0,0,n)}function M(t,n,a,s,o,c,l){t.sort(((t,e)=>t.vert===e.vert?0:t.vert?1:-1));var u=[...new Set(t.map((t=>t.order)))].map((e=>t.find((t=>t.order===e))));p.append("g").selectAll("rect").data(u).enter().append("rect").attr("x",0).attr("y",(function(t,e){return t.order*n+a-2})).attr("width",(function(){return l-i.rightPadding/2})).attr("height",n).attr("class",(function(t){for(var[e,n]of f.entries())if(t.type===n)return"section section"+e%i.numberSectionStyles;return"section section0"})).enter(),u=p.append("g").selectAll("rect").data(t).enter();const g=r.db.getLinks();if(u.append("rect").attr("id",(function(t){return t.id})).attr("rx",3).attr("ry",3).attr("x",(function(t){return t.milestone?T(t.startTime)+s+.5*(T(t.endTime)-T(t.startTime))-.5*o:T(t.startTime)+s})).attr("y",(function(t,e){return e=t.order,t.vert?i.gridLineStartPadding:e*n+a})).attr("width",(function(t){return t.milestone?o:t.vert?.08*o:T(t.renderEndTime||t.endTime)-T(t.startTime)})).attr("height",(function(t){return t.vert?h.length*(i.barHeight+i.barGap)+2*i.barHeight:o})).attr("transform-origin",(function(t,e){return e=t.order,(T(t.startTime)+s+.5*(T(t.endTime)-T(t.startTime))).toString()+"px "+(e*n+a+.5*o).toString()+"px"})).attr("class",(function(t){var e,n;let r="",a=(0<t.classes.length&&(r=t.classes.join(" ")),0);for([e,n]of f.entries())t.type===n&&(a=e%i.numberSectionStyles);let s="";return t.active?t.crit?s+=" activeCrit":s=" active":t.done?s=t.crit?" doneCrit":" done":t.crit&&(s+=" crit"),0===s.length&&(s=" task"),t.milestone&&(s=" milestone "+s),t.vert&&(s=" vert "+s),"task"+(s+=a)+" "+r})),u.append("text").attr("id",(function(t){return t.id+"-text"})).text((function(t){return t.task})).attr("font-size",i.fontSize).attr("x",(function(t){let e=T(t.startTime),n=T(t.renderEndTime||t.endTime);return t.milestone&&(e+=.5*(T(t.endTime)-T(t.startTime))-.5*o,n=e+o),t.vert?T(t.startTime)+s:(t=this.getBBox().width)>n-e?n+t+1.5*i.leftPadding>l?e+s-5:n+s+5:(n-e)/2+e+s})).attr("y",(function(t,e){return t.vert?i.gridLineStartPadding+h.length*(i.barHeight+i.barGap)+60:t.order*n+i.barHeight/2+(i.fontSize/2-2)+a})).attr("text-height",o).attr("class",(function(t){var e=T(t.startTime);let n=T(t.endTime);t.milestone&&(n=e+o);var r,a,s=this.getBBox().width;let c="",u=(0<t.classes.length&&(c=t.classes.join(" ")),0);for([r,a]of f.entries())t.type===a&&(u=r%i.numberSectionStyles);let d="";return t.active&&(d=t.crit?"activeCritText"+u:"activeText"+u),t.done?d=t.crit?d+" doneCritText"+u:d+" doneText"+u:t.crit&&(d=d+" critText"+u),t.milestone&&(d+=" milestoneText"),t.vert&&(d+=" vertText"),s>n-e?n+s+1.5*i.leftPadding>l?c+" taskTextOutsideLeft taskTextOutside"+u+" "+d:c+" taskTextOutsideRight taskTextOutside"+u+" "+d+" width-"+s:c+" taskText taskText"+u+" "+d+" width-"+s})),"sandbox"===d().securityLevel){const t=b("#i"+e).nodes()[0].contentDocument;u.filter((function(t){return g.has(t.id)})).each((function(e){var n=t.querySelector("#"+e.id),r=t.querySelector("#"+e.id+"-text"),i=n.parentNode,a=t.createElement("a");a.setAttribute("xlink:href",g.get(e.id)),a.setAttribute("target","_top"),i.appendChild(a),a.appendChild(n),a.appendChild(r)}))}}function _(t,e,n,a,s,o,c,l){if(0!==c.length||0!==l.length){let a,y;for(var{startTime:d,endTime:h}of o)(void 0===a||d<a)&&(a=d),(void 0===y||h>y)&&(y=h);if(a&&y)if(5<u(y).diff(u(a),"year"))v.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");else{var f=r.db.getDateFormat(),g=[];let o=null,d=u(a);for(;d.valueOf()<=y;)r.db.isInvalidDate(d,f,c,l)?o?o.end=d:o={start:d,end:d}:o&&(g.push(o),o=null),d=d.add(1,"d");p.append("g").selectAll("rect").data(g).enter().append("rect").attr("id",(t=>"exclude-"+t.start.format("YYYY-MM-DD"))).attr("x",(t=>T(t.start.startOf("day"))+n)).attr("y",i.gridLineStartPadding).attr("width",(t=>T(t.end.endOf("day"))-T(t.start.startOf("day")))).attr("height",s-e-i.gridLineStartPadding).attr("transform-origin",(function(e,r){return(T(e.start)+n+.5*(T(e.end)-T(e.start))).toString()+"px "+(r*t+.5*s).toString()+"px"})).attr("class","exclude-range")}}}function S(t,e,n,a){var s=r.db.getDateFormat();let o;o=(c=r.db.getAxisFormat())||("D"===s?"%d":i.axisFormat??"%Y-%m-%d");var c,l=function(t){return j(I,t)}(T).tickSize(-a+e+i.gridLineStartPadding).tickFormat(ne(o));if(null!==(c=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||i.tickInterval))){var u=c[1],d=(s=c[2],r.db.getWeekday()||i.weekday);switch(s){case"millisecond":l.ticks(gt.every(u));break;case"second":l.ticks(xt.every(u));break;case"minute":l.ticks(wt.every(u));break;case"hour":l.ticks(Ct.every(u));break;case"day":l.ticks(_t.every(u));break;case"week":l.ticks(ti[d].every(u));break;case"month":l.ticks(Zt.every(u))}}if(p.append("g").attr("class","grid").attr("transform","translate("+t+", "+(a-50)+")").call(l).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),r.db.topAxisEnabled()||i.topAxis){var h=function(t){return j(L,t)}(T).tickSize(-a+e+i.gridLineStartPadding).tickFormat(ne(o));if(null!==c){var f=c[1],g=(s=c[2],r.db.getWeekday()||i.weekday);switch(s){case"millisecond":h.ticks(gt.every(f));break;case"second":h.ticks(xt.every(f));break;case"minute":h.ticks(wt.every(f));break;case"hour":h.ticks(Ct.every(f));break;case"day":h.ticks(_t.every(f));break;case"week":h.ticks(ti[g].every(f));break;case"month":h.ticks(Zt.every(f))}}p.append("g").attr("class","grid").attr("transform","translate("+t+", "+e+")").call(h).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function Y(t,e){let n=0;const r=Object.keys(g).map((t=>[t,g[t]]));p.append("g").selectAll("text").data(r).enter().append((function(t){var e,n,r=-((t=t[0].split(w.lineBreakRegex)).length-1)/2,i=c.createElementNS("http://www.w3.org/2000/svg","text");for([e,n]of(i.setAttribute("dy",r+"em"),t.entries())){var a=c.createElementNS("http://www.w3.org/2000/svg","tspan");a.setAttribute("alignment-baseline","central"),a.setAttribute("x","10"),0<e&&a.setAttribute("dy","1em"),a.textContent=n,i.appendChild(a)}return i})).attr("x",10).attr("y",(function(i,a){if(!(0<a))return i[1]*t/2+e;if(0<a)return n+=r[a-1][1],i[1]*t/2+n*t+e})).attr("font-size",i.sectionFontSize).attr("class",(function(t){for(var[e,n]of f.entries())if(t[0]===n)return"sectionTitle sectionTitle"+e%i.numberSectionStyles;return"sectionTitle"}))}function U(t,e,n,a){var s,o,c=r.db.getTodayMarker();"off"!==c&&(o=p.append("g").attr("class","today"),s=new Date,(o=o.append("line")).attr("x1",T(s)+t).attr("x2",T(s)+t).attr("y1",i.titleTopMargin).attr("y2",a-i.titleTopMargin).attr("class","today"),""!==c)&&o.attr("style",c.replace(/,/g,";"))}function E(t){var e={},n=[];for(let r=0,i=t.length;r<i;++r)Object.prototype.hasOwnProperty.call(e,t[r])||(e[t[r]]=!0,n.push(t[r]));return n}l(D,"taskCompare"),h.sort(D),C(h,Jr,y),x(p,y,Jr,i.useMaxWidth),p.append("text").text(r.db.getDiagramTitle()).attr("x",Jr/2).attr("y",i.titleTopMargin).attr("class","titleText"),l(C,"makeGantt"),l(M,"drawRects"),l(_,"drawExcludeDays"),l(S,"makeGrid"),l(Y,"vertLabels"),l(U,"drawToday"),l(E,"checkUnique")}),"draw"),ri={setConf:Kr,draw:ni},ii=l((t=>`\n .mermaid-main-font {\n font-family: ${t.fontFamily};\n }\n\n .exclude-range {\n fill: ${t.excludeBkgColor};\n }\n\n .section {\n stroke: none;\n opacity: 0.2;\n }\n\n .section0 {\n fill: ${t.sectionBkgColor};\n }\n\n .section2 {\n fill: ${t.sectionBkgColor2};\n }\n\n .section1,\n .section3 {\n fill: ${t.altSectionBkgColor};\n opacity: 0.2;\n }\n\n .sectionTitle0 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle1 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle2 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle3 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle {\n text-anchor: start;\n font-family: ${t.fontFamily};\n }\n\n\n /* Grid and axis */\n\n .grid .tick {\n stroke: ${t.gridColor};\n opacity: 0.8;\n shape-rendering: crispEdges;\n }\n\n .grid .tick text {\n font-family: ${t.fontFamily};\n fill: ${t.textColor};\n }\n\n .grid path {\n stroke-width: 0;\n }\n\n\n /* Today line */\n\n .today {\n fill: none;\n stroke: ${t.todayLineColor};\n stroke-width: 2px;\n }\n\n\n /* Task styling */\n\n /* Default task */\n\n .task {\n stroke-width: 2;\n }\n\n .taskText {\n text-anchor: middle;\n font-family: ${t.fontFamily};\n }\n\n .taskTextOutsideRight {\n fill: ${t.taskTextDarkColor};\n text-anchor: start;\n font-family: ${t.fontFamily};\n }\n\n .taskTextOutsideLeft {\n fill: ${t.taskTextDarkColor};\n text-anchor: end;\n }\n\n\n /* Special case clickable */\n\n .task.clickable {\n cursor: pointer;\n }\n\n .taskText.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n\n /* Specific task settings for the sections*/\n\n .taskText0,\n .taskText1,\n .taskText2,\n .taskText3 {\n fill: ${t.taskTextColor};\n }\n\n .task0,\n .task1,\n .task2,\n .task3 {\n fill: ${t.taskBkgColor};\n stroke: ${t.taskBorderColor};\n }\n\n .taskTextOutside0,\n .taskTextOutside2\n {\n fill: ${t.taskTextOutsideColor};\n }\n\n .taskTextOutside1,\n .taskTextOutside3 {\n fill: ${t.taskTextOutsideColor};\n }\n\n\n /* Active task */\n\n .active0,\n .active1,\n .active2,\n .active3 {\n fill: ${t.activeTaskBkgColor};\n stroke: ${t.activeTaskBorderColor};\n }\n\n .activeText0,\n .activeText1,\n .activeText2,\n .activeText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n\n /* Completed task */\n\n .done0,\n .done1,\n .done2,\n .done3 {\n stroke: ${t.doneTaskBorderColor};\n fill: ${t.doneTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneText0,\n .doneText1,\n .doneText2,\n .doneText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n\n /* Tasks on the critical line */\n\n .crit0,\n .crit1,\n .crit2,\n .crit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.critBkgColor};\n stroke-width: 2;\n }\n\n .activeCrit0,\n .activeCrit1,\n .activeCrit2,\n .activeCrit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.activeTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneCrit0,\n .doneCrit1,\n .doneCrit2,\n .doneCrit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.doneTaskBkgColor};\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges;\n }\n\n .milestone {\n transform: rotate(45deg) scale(0.8,0.8);\n }\n\n .milestoneText {\n font-style: italic;\n }\n .doneCritText0,\n .doneCritText1,\n .doneCritText2,\n .doneCritText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n .vert {\n stroke: ${t.vertLineColor};\n }\n\n .vertText {\n font-size: 15px;\n text-anchor: middle;\n fill: ${t.vertLineColor} !important;\n }\n\n .activeCritText0,\n .activeCritText1,\n .activeCritText2,\n .activeCritText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n .titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.titleColor||t.textColor};\n font-family: ${t.fontFamily};\n }\n`),"getStyles"),ai={parser:In,db:Xr,renderer:ri,styles:ii};export{ai as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b1 as t,b2 as e,b3 as n,b4 as r,b5 as i,b6 as a,b7 as s,aI as o,aJ as c,_ as l,b8 as u,d,s as h,g as f,n as g,o as y,c as m,b as k,t as p,m as T,l as v,j as b,k as x,e as w,u as D}from"./web-0016ac81.js";import{b as C,t as M,c as _,a as S,l as $}from"./linear-2f639b72.js";import{i as Y}from"./init-cf76ae07.js";import"./defaultLocale-1fe70b7d.js";function F(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n<e||void 0===n&&e>=e)&&(n=e);else{let i=-1;for(var r of t)null!=(r=e(r,++i,t))&&(n<r||void 0===n&&r>=r)&&(n=r)}return n}function A(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let i=-1;for(var r of t)null!=(r=e(r,++i,t))&&(n>r||void 0===n&&r>=r)&&(n=r)}return n}function U(t){return t}var L=1,E=2,I=3,W=4,H=1e-6;function O(t){return"translate("+t+",0)"}function P(t){return"translate(0,"+t+")"}function z(t){return e=>+t(e)}function N(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function B(){return!this.__axis}function j(t,e){var n=[],r=null,i=null,a=6,s=6,o=3,c="undefined"!=typeof window&&1<window.devicePixelRatio?0:.5,l=t===L||t===W?-1:1,u=t===W||t===E?"x":"y",d=t===L||t===I?O:P;function h(h){var f=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,g=null==i?e.tickFormat?e.tickFormat.apply(e,n):U:i,y=Math.max(a,0)+o,m=+(k=e.range())[0]+c,k=+k[k.length-1]+c,p=(e.bandwidth?N:z)(e.copy(),c),T=h.selection?h.selection():h,v=T.selectAll(".domain").data([null]),b=(f=T.selectAll(".tick").data(f,e).order()).exit(),x=f.enter().append("g").attr("class","tick"),w=f.select("line"),D=f.select("text");v=v.merge(v.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),f=f.merge(x),w=w.merge(x.append("line").attr("stroke","currentColor").attr(u+"2",l*a)),D=D.merge(x.append("text").attr("fill","currentColor").attr(u,l*y).attr("dy",t===L?"0em":t===I?"0.71em":"0.32em"));h!==T&&(v=v.transition(h),f=f.transition(h),w=w.transition(h),D=D.transition(h),b=b.transition(h).attr("opacity",H).attr("transform",(function(t){return isFinite(t=p(t))?d(t+c):this.getAttribute("transform")})),x.attr("opacity",H).attr("transform",(function(t){var e=this.parentNode.__axis;return d((e&&isFinite(e=e(t))?e:p(t))+c)}))),b.remove(),v.attr("d",t===W||t===E?s?"M"+l*s+","+m+"H"+c+"V"+k+"H"+l*s:"M"+c+","+m+"V"+k:s?"M"+m+","+l*s+"V"+c+"H"+k+"V"+l*s:"M"+m+","+c+"H"+k),f.attr("opacity",1).attr("transform",(function(t){return d(p(t)+c)})),w.attr(u+"2",l*a),D.attr(u,l*y).text(g),T.filter(B).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===E?"start":t===W?"end":"middle"),T.each((function(){this.__axis=p}))}return h.scale=function(t){return arguments.length?(e=t,h):e},h.ticks=function(){return n=Array.from(arguments),h},h.tickArguments=function(t){return arguments.length?(n=null==t?[]:Array.from(t),h):n.slice()},h.tickValues=function(t){return arguments.length?(r=null==t?null:Array.from(t),h):r&&r.slice()},h.tickFormat=function(t){return arguments.length?(i=t,h):i},h.tickSize=function(t){return arguments.length?(a=s=+t,h):a},h.tickSizeInner=function(t){return arguments.length?(a=+t,h):a},h.tickSizeOuter=function(t){return arguments.length?(s=+t,h):s},h.tickPadding=function(t){return arguments.length?(o=+t,h):o},h.offset=function(t){return arguments.length?(c=+t,h):c},h}const V=Math.PI/180,Z=180/Math.PI,G=.96422,q=1,R=.82521,X=4/29,Q=6/29,J=3*Q*Q,K=Q*Q*Q;function tt(t){var e,r,a,s,o,c;return t instanceof et?new et(t.l,t.a,t.b,t.opacity):t instanceof ot?ct(t):(s=nt((.2225045*(e=at((t=t instanceof n?t:i(t)).r))+.7168786*(r=at(t.g))+.0606169*(a=at(t.b)))/q),e===r&&r===a?o=c=s:(o=nt((.4360747*e+.3850649*r+.1430804*a)/G),c=nt((.0139322*e+.0971045*r+.7141733*a)/R)),new et(116*s-16,500*(o-s),200*(s-c),t.opacity))}function et(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function nt(t){return t>K?Math.pow(t,1/3):t/J+X}function rt(t){return t>Q?t*t*t:J*(t-X)}function it(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function at(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function st(t,e,n,r){return 1===arguments.length?function(t){var e;return t instanceof ot?new ot(t.h,t.c,t.l,t.opacity):0===(t=t instanceof et?t:tt(t)).a&&0===t.b?new ot(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity):new ot((e=Math.atan2(t.b,t.a)*Z)<0?360+e:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new ot(t,e,n,null==r?1:r)}function ot(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function ct(t){var e;return isNaN(t.h)?new et(t.l,0,0,t.opacity):(e=t.h*V,new et(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity))}t(et,(function(t,e,n,r){return 1===arguments.length?tt(t):new et(t,e,n,null==r?1:r)}),e(r,{brighter(t){return new et(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker(t){return new et(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;e=G*rt(e),t=q*rt(t),r=R*rt(r);return new n(it(3.1338561*e-1.6168667*t-.4906146*r),it(-.9787684*e+1.9161415*t+.033454*r),it(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}})),t(ot,st,e(r,{brighter(t){return new ot(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker(t){return new ot(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb(){return ct(this).rgb()}}));var lt,ut=(lt=s,function(t,e){var n=lt((t=st(t)).h,(e=st(e)).h),r=a(t.c,e.c),i=a(t.l,e.l),s=a(t.opacity,e.opacity);return function(e){return t.h=n(e),t.c=r(e),t.l=i(e),t.opacity=s(e),t+""}});const dt=new Date,ht=new Date;function ft(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=e=>(t(e=new Date(+e)),e),i.ceil=n=>(t(n=new Date(n-1)),e(n,1),t(n),n),i.round=t=>{var e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=(t,n)=>(e(t=new Date(+t),null==n?1:Math.floor(n)),t),i.range=(n,r,a)=>{var s,o=[];if(n=i.ceil(n),a=null==a?1:Math.floor(a),n<r&&0<a)for(;o.push(s=new Date(+n)),e(n,a),t(n),s<n&&n<r;);return o},i.filter=n=>ft((e=>{if(e<=e)for(;t(e),!n(e);)e.setTime(e-1)}),((t,r)=>{if(t<=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;0<=--r;)for(;e(t,1),!n(t););})),n&&(i.count=(e,r)=>(dt.setTime(+e),ht.setTime(+r),t(dt),t(ht),Math.floor(n(dt,ht))),i.every=t=>(t=Math.floor(t),isFinite(t)&&0<t?1<t?i.filter(r?e=>r(e)%t==0:e=>i.count(0,e)%t==0):i:null)),i}const gt=ft((()=>{}),((t,e)=>{t.setTime(+t+e)}),((t,e)=>e-t)),yt=(gt.every=t=>(t=Math.floor(t),isFinite(t)&&0<t?1<t?ft((e=>{e.setTime(Math.floor(e/t)*t)}),((e,n)=>{e.setTime(+e+n*t)}),((e,n)=>(n-e)/t)):gt:null),gt.range,1e3),mt=60*yt,kt=60*mt,pt=24*kt,Tt=7*pt,vt=30*pt,bt=365*pt,xt=ft((t=>{t.setTime(t-t.getMilliseconds())}),((t,e)=>{t.setTime(+t+e*yt)}),((t,e)=>(e-t)/yt),(t=>t.getUTCSeconds())),wt=(xt.range,ft((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*yt)}),((t,e)=>{t.setTime(+t+e*mt)}),((t,e)=>(e-t)/mt),(t=>t.getMinutes()))),Dt=(wt.range,ft((t=>{t.setUTCSeconds(0,0)}),((t,e)=>{t.setTime(+t+e*mt)}),((t,e)=>(e-t)/mt),(t=>t.getUTCMinutes()))),Ct=(Dt.range,ft((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*yt-t.getMinutes()*mt)}),((t,e)=>{t.setTime(+t+e*kt)}),((t,e)=>(e-t)/kt),(t=>t.getHours()))),Mt=(Ct.range,ft((t=>{t.setUTCMinutes(0,0,0)}),((t,e)=>{t.setTime(+t+e*kt)}),((t,e)=>(e-t)/kt),(t=>t.getUTCHours()))),_t=(Mt.range,ft((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*mt)/pt),(t=>t.getDate()-1))),St=(_t.range,ft((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/pt),(t=>t.getUTCDate()-1))),$t=(St.range,ft((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/pt),(t=>Math.floor(t/pt))));function Yt(t){return ft((e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),((t,e)=>{t.setDate(t.getDate()+7*e)}),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*mt)/Tt))}$t.range;const Ft=Yt(0),At=Yt(1),Ut=Yt(2),Lt=Yt(3),Et=Yt(4),It=Yt(5),Wt=Yt(6);function Ht(t){return ft((e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)}),((t,e)=>(e-t)/Tt))}Ft.range,At.range,Ut.range,Lt.range,Et.range,It.range,Wt.range;const Ot=Ht(0),Pt=Ht(1),zt=Ht(2),Nt=Ht(3),Bt=Ht(4),jt=Ht(5),Vt=Ht(6),Zt=(Ot.range,Pt.range,zt.range,Nt.range,Bt.range,jt.range,Vt.range,ft((t=>{t.setDate(1),t.setHours(0,0,0,0)}),((t,e)=>{t.setMonth(t.getMonth()+e)}),((t,e)=>e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())),(t=>t.getMonth()))),Gt=(Zt.range,ft((t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)}),((t,e)=>e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())),(t=>t.getUTCMonth()))),qt=(Gt.range,ft((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()))),Rt=(qt.every=t=>isFinite(t=Math.floor(t))&&0<t?ft((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)})):null,qt.range,ft((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())));Rt.every=t=>isFinite(t=Math.floor(t))&&0<t?ft((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)})):null,Rt.range;const[Xt,Qt]=function(t,e,n,r,i,a){const s=[[xt,1,yt],[xt,5,5*yt],[xt,15,15*yt],[xt,30,30*yt],[a,1,mt],[a,5,5*mt],[a,15,15*mt],[a,30,30*mt],[i,1,kt],[i,3,3*kt],[i,6,6*kt],[i,12,12*kt],[r,1,pt],[r,2,2*pt],[n,1,Tt],[e,1,vt],[e,3,3*vt],[t,1,bt]];function o(e,n,r){var i=Math.abs(n-e)/r,a=C((([,,t])=>t)).right(s,i);return a===s.length?t.every(M(e/bt,n/bt,r)):0===a?gt.every(Math.max(M(e,n,r),1)):([e,n]=s[i/s[a-1][2]<s[a][2]/i?a-1:a],e.every(n))}return[function(t,e,n){var r=e<t;return r&&([t,e]=[e,t]),n=(n=n&&"function"==typeof n.range?n:o(t,e,n))?n.range(t,+e+1):[],r?n.reverse():n},o]}(qt,Zt,Ft,_t,Ct,wt);function Jt(t){var e;return 0<=t.y&&t.y<100?((e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L)).setFullYear(t.y),e):new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Kt(t){var e;return 0<=t.y&&t.y<100?((e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L))).setUTCFullYear(t.y),e):new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function te(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var ee,ne,re={"-":"",_:" ",0:"0"},ie=/^\s*\d+/,ae=/^%/,se=/[\\^$*+?|[\]().{}]/g;function oe(t,e,n){var r=t<0?"-":"",i=(t=(r?-t:t)+"").length;return r+(i<n?new Array(n-i+1).join(e)+t:t)}function ce(t){return t.replace(se,"\\$&")}function le(t){return new RegExp("^(?:"+t.map(ce).join("|")+")","i")}function ue(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function de(t,e,n){return(e=ie.exec(e.slice(n,n+1)))?(t.w=+e[0],n+e[0].length):-1}function he(t,e,n){return(e=ie.exec(e.slice(n,n+1)))?(t.u=+e[0],n+e[0].length):-1}function fe(t,e,n){return(e=ie.exec(e.slice(n,n+2)))?(t.U=+e[0],n+e[0].length):-1}function ge(t,e,n){return(e=ie.exec(e.slice(n,n+2)))?(t.V=+e[0],n+e[0].length):-1}function ye(t,e,n){return(e=ie.exec(e.slice(n,n+2)))?(t.W=+e[0],n+e[0].length):-1}function me(t,e,n){return(e=ie.exec(e.slice(n,n+4)))?(t.y=+e[0],n+e[0].length):-1}function ke(t,e,n){return(e=ie.exec(e.slice(n,n+2)))?(t.y=+e[0]+(68<+e[0]?1900:2e3),n+e[0].length):-1}function pe(t,e,n){return(e=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6)))?(t.Z=e[1]?0:-(e[2]+(e[3]||"00")),n+e[0].length):-1}function Te(t,e,n){return(e=ie.exec(e.slice(n,n+1)))?(t.q=3*e[0]-3,n+e[0].length):-1}function ve(t,e,n){return(e=ie.exec(e.slice(n,n+2)))?(t.m=e[0]-1,n+e[0].length):-1}function be(t,e,n){return(e=ie.exec(e.slice(n,n+2)))?(t.d=+e[0],n+e[0].length):-1}function xe(t,e,n){return(e=ie.exec(e.slice(n,n+3)))?(t.m=0,t.d=+e[0],n+e[0].length):-1}function we(t,e,n){return(e=ie.exec(e.slice(n,n+2)))?(t.H=+e[0],n+e[0].length):-1}function De(t,e,n){return(e=ie.exec(e.slice(n,n+2)))?(t.M=+e[0],n+e[0].length):-1}function Ce(t,e,n){return(e=ie.exec(e.slice(n,n+2)))?(t.S=+e[0],n+e[0].length):-1}function Me(t,e,n){return(e=ie.exec(e.slice(n,n+3)))?(t.L=+e[0],n+e[0].length):-1}function _e(t,e,n){return(e=ie.exec(e.slice(n,n+6)))?(t.L=Math.floor(e[0]/1e3),n+e[0].length):-1}function Se(t,e,n){return(e=ae.exec(e.slice(n,n+1)))?n+e[0].length:-1}function $e(t,e,n){return(e=ie.exec(e.slice(n)))?(t.Q=+e[0],n+e[0].length):-1}function Ye(t,e,n){return(e=ie.exec(e.slice(n)))?(t.s=+e[0],n+e[0].length):-1}function Fe(t,e){return oe(t.getDate(),e,2)}function Ae(t,e){return oe(t.getHours(),e,2)}function Ue(t,e){return oe(t.getHours()%12||12,e,2)}function Le(t,e){return oe(1+_t.count(qt(t),t),e,3)}function Ee(t,e){return oe(t.getMilliseconds(),e,3)}function Ie(t,e){return Ee(t,e)+"000"}function We(t,e){return oe(t.getMonth()+1,e,2)}function He(t,e){return oe(t.getMinutes(),e,2)}function Oe(t,e){return oe(t.getSeconds(),e,2)}function Pe(t){return 0===(t=t.getDay())?7:t}function ze(t,e){return oe(Ft.count(qt(t)-1,t),e,2)}function Ne(t){var e=t.getDay();return 4<=e||0===e?Et(t):Et.ceil(t)}function Be(t,e){return t=Ne(t),oe(Et.count(qt(t),t)+(4===qt(t).getDay()),e,2)}function je(t){return t.getDay()}function Ve(t,e){return oe(At.count(qt(t)-1,t),e,2)}function Ze(t,e){return oe(t.getFullYear()%100,e,2)}function Ge(t,e){return oe((t=Ne(t)).getFullYear()%100,e,2)}function qe(t,e){return oe(t.getFullYear()%1e4,e,4)}function Re(t,e){var n=t.getDay();return oe((t=4<=n||0===n?Et(t):Et.ceil(t)).getFullYear()%1e4,e,4)}function Xe(t){return(0<(t=t.getTimezoneOffset())?"-":(t*=-1,"+"))+oe(t/60|0,"0",2)+oe(t%60,"0",2)}function Qe(t,e){return oe(t.getUTCDate(),e,2)}function Je(t,e){return oe(t.getUTCHours(),e,2)}function Ke(t,e){return oe(t.getUTCHours()%12||12,e,2)}function tn(t,e){return oe(1+St.count(Rt(t),t),e,3)}function en(t,e){return oe(t.getUTCMilliseconds(),e,3)}function nn(t,e){return en(t,e)+"000"}function rn(t,e){return oe(t.getUTCMonth()+1,e,2)}function an(t,e){return oe(t.getUTCMinutes(),e,2)}function sn(t,e){return oe(t.getUTCSeconds(),e,2)}function on(t){return 0===(t=t.getUTCDay())?7:t}function cn(t,e){return oe(Ot.count(Rt(t)-1,t),e,2)}function ln(t){var e=t.getUTCDay();return 4<=e||0===e?Bt(t):Bt.ceil(t)}function un(t,e){return t=ln(t),oe(Bt.count(Rt(t),t)+(4===Rt(t).getUTCDay()),e,2)}function dn(t){return t.getUTCDay()}function hn(t,e){return oe(Pt.count(Rt(t)-1,t),e,2)}function fn(t,e){return oe(t.getUTCFullYear()%100,e,2)}function gn(t,e){return oe((t=ln(t)).getUTCFullYear()%100,e,2)}function yn(t,e){return oe(t.getUTCFullYear()%1e4,e,4)}function mn(t,e){var n=t.getUTCDay();return oe((t=4<=n||0===n?Bt(t):Bt.ceil(t)).getUTCFullYear()%1e4,e,4)}function kn(){return"+0000"}function pn(){return"%"}function Tn(t){return+t}function vn(t){return Math.floor(+t/1e3)}function bn(t){return new Date(t)}function xn(t){return t instanceof Date?+t:+new Date(+t)}function wn(t,e,n,r,i,a,s,o,c,l){var u=_(),d=u.invert,h=u.domain,f=l(".%L"),g=l(":%S"),y=l("%I:%M"),m=l("%I %p"),k=l("%a %d"),p=l("%b %d"),T=l("%B"),v=l("%Y");function b(t){return(c(t)<t?f:o(t)<t?g:s(t)<t?y:a(t)<t?m:r(t)<t?i(t)<t?k:p:n(t)<t?T:v)(t)}return u.invert=function(t){return new Date(d(t))},u.domain=function(t){return arguments.length?h(Array.from(t,xn)):h().map(bn)},u.ticks=function(e){var n=h();return t(n[0],n[n.length-1],null==e?10:e)},u.tickFormat=function(t,e){return null==e?b:l(e)},u.nice=function(t){var n=h();return(t=t&&"function"==typeof t.range?t:e(n[0],n[n.length-1],null==t?10:t))?h(function(t,e){var n,r=0,i=(t=t.slice()).length-1,a=t[r],s=t[i];return s<a&&(n=r,r=i,i=n,n=a,a=s,s=n),t[r]=e.floor(a),t[i]=e.ceil(s),t}(n,t)):u},u.copy=function(){return S(u,wn(t,e,n,r,i,a,s,o,c,l))},u}function Dn(){return Y.apply(wn(Xt,Qt,qt,Zt,Ft,_t,Ct,wt,xt,ne).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}ee=function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,a=t.days,s=t.shortDays,o=t.months,c=t.shortMonths,l=le(i),u=ue(i),d=le(a),h=ue(a),f=le(s),g=ue(s),y=le(o),m=ue(o),k=le(c),p=ue(c),T={a:function(t){return s[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return o[t.getMonth()]},c:null,d:Fe,e:Fe,f:Ie,g:Ge,G:Re,H:Ae,I:Ue,j:Le,L:Ee,m:We,M:He,p:function(t){return i[+(12<=t.getHours())]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Tn,s:vn,S:Oe,u:Pe,U:ze,V:Be,w:je,W:Ve,x:null,X:null,y:Ze,Y:qe,Z:Xe,"%":pn},v={a:function(t){return s[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return o[t.getUTCMonth()]},c:null,d:Qe,e:Qe,f:nn,g:gn,G:mn,H:Je,I:Ke,j:tn,L:en,m:rn,M:an,p:function(t){return i[+(12<=t.getUTCHours())]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Tn,s:vn,S:sn,u:on,U:cn,V:un,w:dn,W:hn,x:null,X:null,y:fn,Y:yn,Z:kn,"%":pn},b={a:function(t,e,n){return(e=f.exec(e.slice(n)))?(t.w=g.get(e[0].toLowerCase()),n+e[0].length):-1},A:function(t,e,n){return(e=d.exec(e.slice(n)))?(t.w=h.get(e[0].toLowerCase()),n+e[0].length):-1},b:function(t,e,n){return(e=k.exec(e.slice(n)))?(t.m=p.get(e[0].toLowerCase()),n+e[0].length):-1},B:function(t,e,n){return(e=y.exec(e.slice(n)))?(t.m=m.get(e[0].toLowerCase()),n+e[0].length):-1},c:function(t,n,r){return D(t,e,n,r)},d:be,e:be,f:_e,g:ke,G:me,H:we,I:we,j:xe,L:Me,m:ve,M:De,p:function(t,e,n){return(e=l.exec(e.slice(n)))?(t.p=u.get(e[0].toLowerCase()),n+e[0].length):-1},q:Te,Q:$e,s:Ye,S:Ce,u:he,U:fe,V:ge,w:de,W:ye,x:function(t,e,r){return D(t,n,e,r)},X:function(t,e,n){return D(t,r,e,n)},y:ke,Y:me,Z:pe,"%":Se};function x(t,e){return function(n){var r,i,a,s=[],o=-1,c=0,l=t.length;for(n instanceof Date||(n=new Date(+n));++o<l;)37===t.charCodeAt(o)&&(s.push(t.slice(c,o)),null!=(i=re[r=t.charAt(++o)])?r=t.charAt(++o):i="e"===r?" ":"0",(a=e[r])&&(r=a(n,i)),s.push(r),c=o+1);return s.push(t.slice(c,o)),s.join("")}}function w(t,e){return function(n){var r,i,a=te(1900,void 0,1);if(D(a,t,n+="",0)!=n.length)return null;if("Q"in a)return new Date(a.Q);if("s"in a)return new Date(1e3*a.s+("L"in a?a.L:0));if(!e||"Z"in a||(a.Z=0),"p"in a&&(a.H=a.H%12+12*a.p),void 0===a.m&&(a.m="q"in a?a.q:0),"V"in a){if(a.V<1||53<a.V)return null;"w"in a||(a.w=1),"Z"in a?(r=4<(i=(r=Kt(te(a.y,0,1))).getUTCDay())||0===i?Pt.ceil(r):Pt(r),r=St.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(r=4<(i=(r=Jt(te(a.y,0,1))).getDay())||0===i?At.ceil(r):At(r),r=_t.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),i="Z"in a?Kt(te(a.y,0,1)).getUTCDay():Jt(te(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return("Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,Kt):Jt)(a)}}function D(t,e,n,r){for(var i,a,s=0,o=e.length,c=n.length;s<o;){if(c<=r)return-1;if(37===(i=e.charCodeAt(s++))){if(i=e.charAt(s++),!(a=b[i in re?e.charAt(s++):i])||(r=a(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return T.x=x(n,T),T.X=x(r,T),T.c=x(e,T),v.x=x(n,v),v.X=x(r,v),v.c=x(e,v),{format:function(t){var e=x(t+="",T);return e.toString=function(){return t},e},parse:function(t){var e=w(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=x(t+="",v);return e.toString=function(){return t},e},utcParse:function(t){var e=w(t+="",!0);return e.toString=function(){return t},e}}}({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"]}),ne=ee.format,ee.parse,ee.utcFormat,ee.utcParse;var Cn,Mn,_n={exports:{}},Sn=(_n.exports=function(t,e,n){function r(t){return t.add(4-t.isoWeekday(),"day")}var i=((e=e.prototype).isoWeekYear=function(){return r(this).year()},e.isoWeek=function(t){var e,i,a;return this.$utils().u(t)?(i=r(this),a=this.isoWeekYear(),e=4-(a=(this.$u?n.utc:n)().year(a).startOf("year")).isoWeekday(),4<a.isoWeekday()&&(e+=7),a=a.add(e,"day"),i.diff(a,"week")+1):this.add(7*(t-this.isoWeek()),"day")},e.isoWeekday=function(t){return this.$utils().u(t)?this.day()||7:this.day(this.day()%7?t:t-7)},e.startOf);e.startOf=function(t,e){var n=this.$utils(),r=!!n.u(e)||e;return"isoweek"===n.p(t)?r?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):i.bind(this)(t,e)}},_n.exports),$n=c(Sn),Yn={exports:{}},Fn=(function(){var t,e,n,r,i,a,s,o,c,l,u;Yn.exports=(t={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"},e=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i={},a=function(t){return(t=+t)+(68<t?1900:2e3)},c=function(t){return(t=i[t])&&(t.indexOf?t:t.s.concat(t.f))},l=function(t,e){var n,r=i.meridiem;if(r){for(var a=1;a<=24;a+=1)if(-1<t.indexOf(r(a,0,e))){n=12<a;break}}else n=t===(e?"pm":"PM");return n},u={A:[r=/\d*[^-_:/,()\s\d]+/,function(t){this.afternoon=l(t,!1)}],a:[r,function(t){this.afternoon=l(t,!0)}],Q:[n=/\d/,function(t){this.month=3*(t-1)+1}],S:[n,function(t){this.milliseconds=100*+t}],SS:[n=/\d\d/,function(t){this.milliseconds=10*+t}],SSS:[/\d{3}/,function(t){this.milliseconds=+t}],s:[o=/\d\d?/,(s=function(t){return function(e){this[t]=+e}})("seconds")],ss:[o,s("seconds")],m:[o,s("minutes")],mm:[o,s("minutes")],H:[o,s("hours")],h:[o,s("hours")],HH:[o,s("hours")],hh:[o,s("hours")],D:[o,s("day")],DD:[n,s("day")],Do:[r,function(t){var e=i.ordinal,n=t.match(/\d+/);if(this.day=n[0],e)for(var r=1;r<=31;r+=1)e(r).replace(/\[|\]/g,"")===t&&(this.day=r)}],w:[o,s("week")],ww:[n,s("week")],M:[o,s("month")],MM:[n,s("month")],MMM:[r,function(t){var e=c("months");e=(c("monthsShort")||e.map((function(t){return t.slice(0,3)}))).indexOf(t)+1;if(e<1)throw new Error;this.month=e%12||e}],MMMM:[r,function(t){if((t=c("months").indexOf(t)+1)<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,s("year")],YY:[n,function(t){this.year=a(t)}],YYYY:[/\d{4}/,s("year")],Z:o=[/[+-]\d\d:?(\d\d)?|Z/,function(t){var e;(this.zone||(this.zone={})).offset=t&&"Z"!==t&&0!==(e=60*(t=t.match(/([+-]|\d\d)/g))[1]+(+t[2]||0))?"+"===t[0]?-e:e:0}],ZZ:o},function(n,r,s){s.p.customParseFormat=!0,n&&n.parseTwoDigitYear&&(a=n.parseTwoDigitYear);var o=(n=r.prototype).parse;n.parse=function(n){var r=n.date,a=n.utc,c=n.args,l=(this.$u=a,c[1]);if("string"==typeof l){var d=!0===c[2],h=!0===c[3],f=d||h,g=c[2];h&&(g=c[2]),i=this.$locale(),!d&&g&&(i=s.Ls[g]),this.$d=function(n,r,a,s){try{if(-1<["x","X"].indexOf(r))return new Date(("X"===r?1e3:1)*n);var o=function(n){var r,a;r=n,a=i&&i.formats;for(var s=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(e,n,r){var i=r&&r.toUpperCase();return n||a[r]||t[r]||a[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(t,e,n){return e||n.slice(1)}))}))).match(e),o=s.length,c=0;c<o;c+=1){var l=s[c],d=(h=u[l])&&h[0],h=h&&h[1];s[c]=h?{regex:d,parser:h}:l.replace(/^\[|\]$/g,"")}return function(t){for(var e,n,r,i={},a=0,c=0;a<o;a+=1){var l,u,d=s[a];"string"==typeof d?c+=d.length:(u=d.regex,d=d.parser,l=t.slice(c),u=u.exec(l)[0],d.call(i,u),t=t.replace(u,""))}return void 0!==(r=(e=i).afternoon)&&(n=e.hours,r?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon),i}}(r)(n),c=o.year,l=o.month,d=o.day,h=o.hours,f=o.minutes,g=o.seconds,y=o.milliseconds,m=o.zone,k=o.week,p=new Date,T=d||(c||l?1:p.getDate()),v=c||p.getFullYear(),b=0;c&&!l||(b=0<l?l-1:p.getMonth());var x,w=h||0,D=f||0,C=g||0,M=y||0;return m?new Date(Date.UTC(v,b,T,w,D,C,M+60*m.offset*1e3)):a?new Date(Date.UTC(v,b,T,w,D,C,M)):(x=new Date(v,b,T,w,D,C,M),x=k?s(x).week(k).toDate():x)}catch(n){return new Date("")}}(r,l,a,s),this.init(),g&&!0!==g&&(this.$L=this.locale(g).$L),f&&r!=this.format(l)&&(this.$d=new Date("")),i={}}else if(l instanceof Array)for(var y=l.length,m=1;m<=y;m+=1){c[1]=l[m-1];var k=s.apply(this,c);if(k.isValid()){this.$d=k.$d,this.$L=k.$L,this.init();break}m===y&&(this.$d=new Date(""))}else o.call(this,n)}})}(),Yn.exports),An=c(Fn),Un=function(t,e){var n=(e=e.prototype).format;e.format=function(t){var e,r,i=this,a=this.$locale();return this.isValid()?(e=this.$utils(),r=(t||"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(t){switch(t){case"Q":return Math.ceil((i.$M+1)/3);case"Do":return a.ordinal(i.$D);case"gggg":return i.weekYear();case"GGGG":return i.isoWeekYear();case"wo":return a.ordinal(i.week(),"W");case"w":case"ww":return e.s(i.week(),"w"===t?1:2,"0");case"W":case"WW":return e.s(i.isoWeek(),"W"===t?1:2,"0");case"k":case"kk":return e.s(String(0===i.$H?24:i.$H),"k"===t?1:2,"0");case"X":return Math.floor(i.$d.getTime()/1e3);case"x":return i.$d.getTime();case"z":return"["+i.offsetName()+"]";case"zzz":return"["+i.offsetName("long")+"]";default:return t}})),n.bind(this)(r)):n.bind(this)(t)}},Ln=c(Un),En=function(){var t=l((function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n}),"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],i=[1,28],a=[1,29],s=[1,30],o=[1,31],c=[1,32],u=[1,33],d=[1,34],h=[1,9],f=[1,10],g=[1,11],y=[1,12],m=[1,13],k=[1,14],p=[1,15],T=[1,16],v=[1,19],b=[1,20],x=[1,21],w=[1,22],D=[1,23],C=[1,25],M=[1,35];n={trace:l((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:l((function(t,e,n,r,i,a,s){var o=a.length-1;switch(i){case 1:return a[o-1];case 2:case 6:case 7:this.$=[];break;case 3:a[o-1].push(a[o]),this.$=a[o-1];break;case 4:case 5:this.$=a[o];break;case 8:r.setWeekday("monday");break;case 9:r.setWeekday("tuesday");break;case 10:r.setWeekday("wednesday");break;case 11:r.setWeekday("thursday");break;case 12:r.setWeekday("friday");break;case 13:r.setWeekday("saturday");break;case 14:r.setWeekday("sunday");break;case 15:r.setWeekend("friday");break;case 16:r.setWeekend("saturday");break;case 17:r.setDateFormat(a[o].substr(11)),this.$=a[o].substr(11);break;case 18:r.enableInclusiveEndDates(),this.$=a[o].substr(18);break;case 19:r.TopAxis(),this.$=a[o].substr(8);break;case 20:r.setAxisFormat(a[o].substr(11)),this.$=a[o].substr(11);break;case 21:r.setTickInterval(a[o].substr(13)),this.$=a[o].substr(13);break;case 22:r.setExcludes(a[o].substr(9)),this.$=a[o].substr(9);break;case 23:r.setIncludes(a[o].substr(9)),this.$=a[o].substr(9);break;case 24:r.setTodayMarker(a[o].substr(12)),this.$=a[o].substr(12);break;case 27:r.setDiagramTitle(a[o].substr(6)),this.$=a[o].substr(6);break;case 28:this.$=a[o].trim(),r.setAccTitle(this.$);break;case 29:case 30:this.$=a[o].trim(),r.setAccDescription(this.$);break;case 31:r.addSection(a[o].substr(8)),this.$=a[o].substr(8);break;case 33:r.addTask(a[o-1],a[o]),this.$="task";break;case 34:this.$=a[o-1],r.setClickEvent(a[o-1],a[o],null);break;case 35:this.$=a[o-2],r.setClickEvent(a[o-2],a[o-1],a[o]);break;case 36:this.$=a[o-2],r.setClickEvent(a[o-2],a[o-1],null),r.setLink(a[o-2],a[o]);break;case 37:this.$=a[o-3],r.setClickEvent(a[o-3],a[o-2],a[o-1]),r.setLink(a[o-3],a[o]);break;case 38:this.$=a[o-2],r.setClickEvent(a[o-2],a[o],null),r.setLink(a[o-2],a[o-1]);break;case 39:this.$=a[o-3],r.setClickEvent(a[o-3],a[o-1],a[o]),r.setLink(a[o-3],a[o-2]);break;case 40:this.$=a[o-1],r.setLink(a[o-1],a[o]);break;case 41:case 47:this.$=a[o-1]+" "+a[o];break;case 42:case 43:case 45:this.$=a[o-2]+" "+a[o-1]+" "+a[o];break;case 44:case 46:this.$=a[o-3]+" "+a[o-2]+" "+a[o-1]+" "+a[o]}}),"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:i,15:a,16:s,17:o,18:c,19:18,20:u,21:d,22:h,23:f,24:g,25:y,26:m,27:k,28:p,29:T,30:v,31:b,33:x,35:w,36:D,37:24,38:C,40:M},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:n,13:r,14:i,15:a,16:s,17:o,18:c,19:18,20:u,21:d,22:h,23:f,24:g,25:y,26:m,27:k,28:p,29:T,30:v,31:b,33:x,35:w,36:D,37:24,38:C,40:M},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:l((function(t,e){var n;if(!e.recoverable)throw(n=new Error(t)).hash=e,n;this.trace(t)}),"parseError"),parse:l((function(t){var e,n=this,r=[0],i=[],a=[null],s=[],o=this.table,c="",u=0,d=0,h=s.slice.call(arguments,1),f=Object.create(this.lexer),g={yy:{}};for(e in this.yy)Object.prototype.hasOwnProperty.call(this.yy,e)&&(g.yy[e]=this.yy[e]);f.setInput(t,g.yy),g.yy.lexer=f,g.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var y=f.yylloc,m=(s.push(y),f.options&&f.options.ranges);function k(){var t=i.pop()||f.lex()||1;return"number"!=typeof t&&(t instanceof Array&&(t=(i=t).pop()),t=n.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,l((function(t){r.length=r.length-2*t,a.length=a.length-t,s.length=s.length-t}),"popStack"),l(k,"lex");for(var p,T,v,b,x,w,D={};;){if(T=r[r.length-1],void 0===(v=this.defaultActions[T]||(null==p&&(p=k()),o[T]&&o[T][p]))||!v.length||!v[0]){var C,M=[];for(b in o[T])this.terminals_[b]&&2<b&&M.push("'"+this.terminals_[b]+"'");C=f.showPosition?"Parse error on line "+(u+1)+":\n"+f.showPosition()+"\nExpecting "+M.join(", ")+", got '"+(this.terminals_[p]||p)+"'":"Parse error on line "+(u+1)+": Unexpected "+(1==p?"end of input":"'"+(this.terminals_[p]||p)+"'"),this.parseError(C,{text:f.match,token:this.terminals_[p]||p,line:f.yylineno,loc:y,expected:M})}if(v[0]instanceof Array&&1<v.length)throw new Error("Parse Error: multiple actions possible at state: "+T+", token: "+p);switch(v[0]){case 1:r.push(p),a.push(f.yytext),s.push(f.yylloc),r.push(v[1]),p=null,d=f.yyleng,c=f.yytext,u=f.yylineno,y=f.yylloc;break;case 2:if(x=this.productions_[v[1]][1],D.$=a[a.length-x],D._$={first_line:s[s.length-(x||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(x||1)].first_column,last_column:s[s.length-1].last_column},m&&(D._$.range=[s[s.length-(x||1)].range[0],s[s.length-1].range[1]]),void 0!==(w=this.performAction.apply(D,[c,d,u,g.yy,v[1],a,s].concat(h))))return w;x&&(r=r.slice(0,-1*x*2),a=a.slice(0,-1*x),s=s.slice(0,-1*x)),r.push(this.productions_[v[1]][0]),a.push(D.$),s.push(D._$),w=o[r[r.length-2]][r[r.length-1]],r.push(w);break;case 3:return!0}}return!0}),"parse")},r={EOF:1,parseError:l((function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)}),"parseError"),setInput:l((function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this}),"setInput"),input:l((function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t}),"input"),unput:l((function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g),r=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,t=this.match.split(/(?:\r\n?|\n)/g),this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===t.length?this.yylloc.first_column:0)+t[t.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this}),"unput"),more:l((function(){return this._more=!0,this}),"more"),reject:l((function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"reject"),less:l((function(t){this.unput(this.match.slice(t))}),"less"),pastInput:l((function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(20<t.length?"...":"")+t.substr(-20).replace(/\n/g,"")}),"pastInput"),upcomingInput:l((function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(20<t.length?"...":"")).replace(/\n/g,"")}),"upcomingInput"),showPosition:l((function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"}),"showPosition"),test_match:l((function(t,e){var n,r;if(this.options.backtrack_lexer&&(r={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)&&(r.yylloc.range=this.yylloc.range.slice(0)),(n=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack)for(var i in r)this[i]=r[i];return!1}),"test_match"),next:l((function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,n,r,i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length))if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(!this._backtrack)return!1;e=!1}else if(!this.options.flex)break;return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"next"),lex:l((function(){return this.next()||this.lex()}),"lex"),begin:l((function(t){this.conditionStack.push(t)}),"begin"),popState:l((function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]}),"popState"),_currentRules:l((function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules}),"_currentRules"),topState:l((function(t){return 0<=(t=this.conditionStack.length-1-Math.abs(t||0))?this.conditionStack[t]:"INITIAL"}),"topState"),pushState:l((function(t){this.begin(t)}),"pushState"),stateStackSize:l((function(){return this.conditionStack.length}),"stateStackSize"),options:{"case-insensitive":!0},performAction:l((function(t,e,n,r){switch(n){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:case 15:case 18:case 21:case 24:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:case 9:case 10:case 12:case 13:break;case 11:return 10;case 14:this.begin("href");break;case 16:return 43;case 17:this.begin("callbackname");break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 22:return 42;case 23:this.begin("click");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}}};function _(){this.yy={}}return n.lexer=r,l(_,"Parser"),new((_.prototype=n).Parser=_)}(),In=En.parser=En,Wn=(u.extend($n),u.extend(An),u.extend(Ln),{friday:5,saturday:6}),Hn="",On="",Pn=void 0,zn="",Nn=[],Bn=[],jn=new Map,Vn=[],Zn=[],Gn="",qn="",Rn=["active","done","crit","milestone","vert"],Xn=[],Qn=!1,Jn=!1,Kn="sunday",tr="saturday",er=0,nr=l((function(){Vn=[],Zn=[],Xn=[],Hr=[],Pn=Mn=Cn=void(Lr=0),zn=qn=On=Hn=Gn="",Nn=[],Jn=Qn=!(Bn=[]),er=0,jn=new Map,p(),Kn="sunday",tr="saturday"}),"clear"),rr=l((function(t){On=t}),"setAxisFormat"),ir=l((function(){return On}),"getAxisFormat"),ar=l((function(t){Pn=t}),"setTickInterval"),sr=l((function(){return Pn}),"getTickInterval"),or=l((function(t){zn=t}),"setTodayMarker"),cr=l((function(){return zn}),"getTodayMarker"),lr=l((function(t){Hn=t}),"setDateFormat"),ur=l((function(){Qn=!0}),"enableInclusiveEndDates"),dr=l((function(){return Qn}),"endDatesAreInclusive"),hr=l((function(){Jn=!0}),"enableTopAxis"),fr=l((function(){return Jn}),"topAxisEnabled"),gr=l((function(t){qn=t}),"setDisplayMode"),yr=l((function(){return qn}),"getDisplayMode"),mr=l((function(){return Hn}),"getDateFormat"),kr=l((function(t){Nn=t.toLowerCase().split(/[\s,]+/)}),"setIncludes"),pr=l((function(){return Nn}),"getIncludes"),Tr=l((function(t){Bn=t.toLowerCase().split(/[\s,]+/)}),"setExcludes"),vr=l((function(){return Bn}),"getExcludes"),br=l((function(){return jn}),"getLinks"),xr=l((function(t){Gn=t,Vn.push(t)}),"addSection"),wr=l((function(){return Vn}),"getSections"),Dr=l((function(){let t=Br(),e=0;for(;!t&&e<10;)t=Br(),e++;return Zn=Hr}),"getTasks"),Cr=l((function(t,e,n,r){e=t.format(e.trim());var i=t.format("YYYY-MM-DD");return!r.includes(e)&&!r.includes(i)&&(!(!n.includes("weekends")||t.isoWeekday()!==Wn[tr]&&t.isoWeekday()!==Wn[tr]+1)||!!n.includes(t.format("dddd").toLowerCase())||n.includes(e)||n.includes(i))}),"isInvalidDate"),Mr=l((function(t){Kn=t}),"setWeekday"),_r=l((function(){return Kn}),"getWeekday"),Sr=l((function(t){tr=t}),"setWeekend"),$r=l((function(t,e,n,r){if(n.length&&!t.manualEndTime){let i,a;i=(i=t.startTime instanceof Date?u(t.startTime):u(t.startTime,e,!0)).add(1,"d"),a=t.endTime instanceof Date?u(t.endTime):u(t.endTime,e,!0);var[e,n]=Yr(i,a,e,n,r);t.endTime=e.toDate(),t.renderEndTime=n}}),"checkTaskDates"),Yr=l((function(t,e,n,r,i){let a=!1,s=null;for(;t<=e;)a||(s=e.toDate()),(a=Cr(t,n,r,i))&&(e=e.add(1,"d")),t=t.add(1,"d");return[e,s]}),"fixTaskDates"),Fr=l((function(t,e,n){if(n=n.trim(),("x"===e.trim()||"X"===e.trim())&&/^\d+$/.test(n))return new Date(Number(n));var r=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(null!==r){let t=null;for(const e of r.groups.ids.split(" ")){var i=zr(e);void 0!==i&&(!t||i.endTime>t.endTime)&&(t=i)}return t?t.endTime:((r=new Date).setHours(0,0,0,0),r)}if((r=u(n,e.trim(),!0)).isValid())return r.toDate();if(v.debug("Invalid date:"+n),v.debug("With date format:"+e.trim()),void 0===(r=new Date(n))||isNaN(r.getTime())||r.getFullYear()<-1e4||1e4<r.getFullYear())throw new Error("Invalid date:"+n);return r}),"getStartDate"),Ar=l((function(t){return null!==(t=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim()))?[Number.parseFloat(t[1]),t[2]]:[NaN,"ms"]}),"parseDuration"),Ur=l((function(t,e,n,r=!1){var i;if(n=n.trim(),null!==(i=/^until\s+(?<ids>[\d\w- ]+)/.exec(n))){let t=null;for(const e of i.groups.ids.split(" ")){var a=zr(e);void 0!==a&&(!t||a.startTime<t.startTime)&&(t=a)}return t?t.startTime:((i=new Date).setHours(0,0,0,0),i)}let s=u(n,e.trim(),!0);if(s.isValid())return(s=r?s.add(1,"d"):s).toDate();let o=u(t);var[i,e]=Ar(n);return Number.isNaN(i)||(r=o.add(i,e)).isValid()&&(o=r),o.toDate()}),"getEndDate"),Lr=0,Er=l((function(t){return void 0===t?"task"+(Lr+=1):t}),"parseId"),Ir=l((function(t,e){let n;var r=(n=":"===e.substr(0,1)?e.substr(1,e.length):e).split(","),i={};Qr(r,i,Rn);for(let t=0;t<r.length;t++)r[t]=r[t].trim();let a="";switch(r.length){case 1:i.id=Er(),i.startTime=t.endTime,a=r[0];break;case 2:i.id=Er(),i.startTime=Fr(void 0,Hn,r[0]),a=r[1];break;case 3:i.id=Er(r[0]),i.startTime=Fr(void 0,Hn,r[1]),a=r[2]}return a&&(i.endTime=Ur(i.startTime,Hn,a,Qn),i.manualEndTime=u(a,"YYYY-MM-DD",!0).isValid(),$r(i,Hn,Bn,Nn)),i}),"compileData"),Wr=l((function(t,e){let n;var r=(n=":"===e.substr(0,1)?e.substr(1,e.length):e).split(","),i={};Qr(r,i,Rn);for(let t=0;t<r.length;t++)r[t]=r[t].trim();switch(r.length){case 1:i.id=Er(),i.startTime={type:"prevTaskEnd",id:t},i.endTime={data:r[0]};break;case 2:i.id=Er(),i.startTime={type:"getStartDate",startData:r[0]},i.endTime={data:r[1]};break;case 3:i.id=Er(r[0]),i.startTime={type:"getStartDate",startData:r[1]},i.endTime={data:r[2]}}return i}),"parseData"),Hr=[],Or={},Pr=l((function(t,e){t={section:Gn,type:Gn,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},e=Wr(Mn,e),t.raw.startTime=e.startTime,t.raw.endTime=e.endTime,t.id=e.id,t.prevTaskId=Mn,t.active=e.active,t.done=e.done,t.crit=e.crit,t.milestone=e.milestone,t.vert=e.vert,t.order=er,er++,e=Hr.push(t),Or[Mn=t.id]=e-1}),"addTask"),zr=l((function(t){return t=Or[t],Hr[t]}),"findTaskById"),Nr=l((function(t,e){t={section:Gn,type:Gn,description:t,task:t,classes:[]},e=Ir(Cn,e),t.startTime=e.startTime,t.endTime=e.endTime,t.id=e.id,t.active=e.active,t.done=e.done,t.crit=e.crit,t.milestone=e.milestone,t.vert=e.vert,Cn=t,Zn.push(t)}),"addTaskOrg"),Br=l((function(){var t,e,n=l((function(t){var e=Hr[t];switch(Hr[t].raw.startTime.type){case"prevTaskEnd":var n=zr(e.prevTaskId);e.startTime=n.endTime;break;case"getStartDate":(n=Fr(void 0,Hn,Hr[t].raw.startTime.startData))&&(Hr[t].startTime=n)}return Hr[t].startTime&&(Hr[t].endTime=Ur(Hr[t].startTime,Hn,Hr[t].raw.endTime.data,Qn),Hr[t].endTime)&&(Hr[t].processed=!0,Hr[t].manualEndTime=u(Hr[t].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),$r(Hr[t],Hn,Bn,Nn)),Hr[t].processed}),"compileTask");let r=!0;for([t,e]of Hr.entries())n(t),r=r&&e.processed;return r}),"compileTasks"),jr=l((function(t,e){let n=e;"loose"!==d().securityLevel&&(n=T(e)),t.split(",").forEach((function(t){void 0!==zr(t)&&(Gr(t,(()=>{window.open(n,"_self")})),jn.set(t,n))})),Vr(t,"clickable")}),"setLink"),Vr=l((function(t,e){t.split(",").forEach((function(t){void 0!==(t=zr(t))&&t.classes.push(e)}))}),"setClass"),Zr=l((function(t,e,n){if("loose"===d().securityLevel&&void 0!==e){let r=[];if("string"==typeof n){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t<r.length;t++){let e=r[t].trim();e.startsWith('"')&&e.endsWith('"')&&(e=e.substr(1,e.length-2)),r[t]=e}}0===r.length&&r.push(t),void 0!==zr(t)&&Gr(t,(()=>{D.runFunc(e,...r)}))}}),"setClickFun"),Gr=l((function(t,e){Xn.push((function(){var n=document.querySelector(`[id="${t}"]`);null!==n&&n.addEventListener("click",(function(){e()}))}),(function(){var n=document.querySelector(`[id="${t}-text"]`);null!==n&&n.addEventListener("click",(function(){e()}))}))}),"pushFun"),qr=l((function(t,e,n){t.split(",").forEach((function(t){Zr(t,e,n)})),Vr(t,"clickable")}),"setClickEvent"),Rr=l((function(t){Xn.forEach((function(e){e(t)}))}),"bindFunctions"),Xr={getConfig:l((()=>d().gantt),"getConfig"),clear:nr,setDateFormat:lr,getDateFormat:mr,enableInclusiveEndDates:ur,endDatesAreInclusive:dr,enableTopAxis:hr,topAxisEnabled:fr,setAxisFormat:rr,getAxisFormat:ir,setTickInterval:ar,getTickInterval:sr,setTodayMarker:or,getTodayMarker:cr,setAccTitle:h,getAccTitle:f,setDiagramTitle:g,getDiagramTitle:y,setDisplayMode:gr,getDisplayMode:yr,setAccDescription:m,getAccDescription:k,addSection:xr,getSections:wr,getTasks:Dr,addTask:Pr,findTaskById:zr,addTaskOrg:Nr,setIncludes:kr,getIncludes:pr,setExcludes:Tr,getExcludes:vr,setClickEvent:qr,setLink:jr,getLinks:br,bindFunctions:Rr,parseDuration:Ar,isInvalidDate:Cr,setWeekday:Mr,getWeekday:_r,setWeekend:Sr};function Qr(t,e,n){let r=!0;for(;r;)r=!1,n.forEach((function(n){var i=new RegExp("^\\s*"+n+"\\s*$");t[0].match(i)&&(e[n]=!0,t.shift(1),r=!0)}))}l(Qr,"getTaskTags");var Jr,Kr=l((function(){v.debug("Something is calling, setConf, remove the call")}),"setConf"),ti={monday:At,tuesday:Ut,wednesday:Lt,thursday:Et,friday:It,saturday:Wt,sunday:Ft},ei=l(((t,e)=>{var n=[...t].map((()=>-1/0));let r=0;for(const i of[...t].sort(((t,e)=>t.startTime-e.startTime||t.order-e.order)))for(let t=0;t<n.length;t++)if(i.startTime>=n[t]){n[t]=i.endTime,i.order=t+e,t>r&&(r=t);break}return r}),"getMaxIntersections"),ni=l((function(t,e,n,r){const i=d().gantt;var a=d().securityLevel;let s;"sandbox"===a&&(s=b("#i"+e));var o=b("sandbox"===a?s.nodes()[0].contentDocument.body:"body");const c="sandbox"===a?s.nodes()[0].contentDocument:document;a=c.getElementById(e),void 0===(Jr=a.parentElement.offsetWidth)&&(Jr=1200),void 0!==i.useWidth&&(Jr=i.useWidth);const h=r.db.getTasks();let f=[];for(const t of h)f.push(t.type);f=E(f);const g={};let y=2*i.topPadding;if("compact"===r.db.getDisplayMode()||"compact"===i.displayMode){var m={};for(const t of h)void 0===m[t.section]?m[t.section]=[t]:m[t.section].push(t);let t=0;for(const e of Object.keys(m)){var k=ei(m[e],t)+1;t+=k,y+=k*(i.barHeight+i.barGap),g[e]=k}}else{y+=h.length*(i.barHeight+i.barGap);for(const t of f)g[t]=h.filter((e=>e.type===t)).length}a.setAttribute("viewBox","0 0 "+Jr+" "+y);const p=o.select(`[id="${e}"]`),T=Dn().domain([A(h,(function(t){return t.startTime})),F(h,(function(t){return t.endTime}))]).rangeRound([0,Jr-i.leftPadding-i.rightPadding]);function D(t,e){t=t.startTime;let n=0;return(e=e.startTime)<t?n=1:t<e&&(n=-1),n}function C(t,e,n){var a=i.barHeight,s=a+i.barGap,o=i.topPadding,c=i.leftPadding;$().domain([0,f.length]).range(["#00B9FA","#F95002"]).interpolate(ut);_(s,o,c,0,n,t,r.db.getExcludes(),r.db.getIncludes()),S(c,o,0,n),M(t,s,o,c,a,0,e),Y(s,o),U(c,0,0,n)}function M(t,n,a,s,o,c,l){t.sort(((t,e)=>t.vert===e.vert?0:t.vert?1:-1));var u=[...new Set(t.map((t=>t.order)))].map((e=>t.find((t=>t.order===e))));p.append("g").selectAll("rect").data(u).enter().append("rect").attr("x",0).attr("y",(function(t,e){return t.order*n+a-2})).attr("width",(function(){return l-i.rightPadding/2})).attr("height",n).attr("class",(function(t){for(var[e,n]of f.entries())if(t.type===n)return"section section"+e%i.numberSectionStyles;return"section section0"})).enter(),u=p.append("g").selectAll("rect").data(t).enter();const g=r.db.getLinks();if(u.append("rect").attr("id",(function(t){return t.id})).attr("rx",3).attr("ry",3).attr("x",(function(t){return t.milestone?T(t.startTime)+s+.5*(T(t.endTime)-T(t.startTime))-.5*o:T(t.startTime)+s})).attr("y",(function(t,e){return e=t.order,t.vert?i.gridLineStartPadding:e*n+a})).attr("width",(function(t){return t.milestone?o:t.vert?.08*o:T(t.renderEndTime||t.endTime)-T(t.startTime)})).attr("height",(function(t){return t.vert?h.length*(i.barHeight+i.barGap)+2*i.barHeight:o})).attr("transform-origin",(function(t,e){return e=t.order,(T(t.startTime)+s+.5*(T(t.endTime)-T(t.startTime))).toString()+"px "+(e*n+a+.5*o).toString()+"px"})).attr("class",(function(t){var e,n;let r="",a=(0<t.classes.length&&(r=t.classes.join(" ")),0);for([e,n]of f.entries())t.type===n&&(a=e%i.numberSectionStyles);let s="";return t.active?t.crit?s+=" activeCrit":s=" active":t.done?s=t.crit?" doneCrit":" done":t.crit&&(s+=" crit"),0===s.length&&(s=" task"),t.milestone&&(s=" milestone "+s),t.vert&&(s=" vert "+s),"task"+(s+=a)+" "+r})),u.append("text").attr("id",(function(t){return t.id+"-text"})).text((function(t){return t.task})).attr("font-size",i.fontSize).attr("x",(function(t){let e=T(t.startTime),n=T(t.renderEndTime||t.endTime);return t.milestone&&(e+=.5*(T(t.endTime)-T(t.startTime))-.5*o,n=e+o),t.vert?T(t.startTime)+s:(t=this.getBBox().width)>n-e?n+t+1.5*i.leftPadding>l?e+s-5:n+s+5:(n-e)/2+e+s})).attr("y",(function(t,e){return t.vert?i.gridLineStartPadding+h.length*(i.barHeight+i.barGap)+60:t.order*n+i.barHeight/2+(i.fontSize/2-2)+a})).attr("text-height",o).attr("class",(function(t){var e=T(t.startTime);let n=T(t.endTime);t.milestone&&(n=e+o);var r,a,s=this.getBBox().width;let c="",u=(0<t.classes.length&&(c=t.classes.join(" ")),0);for([r,a]of f.entries())t.type===a&&(u=r%i.numberSectionStyles);let d="";return t.active&&(d=t.crit?"activeCritText"+u:"activeText"+u),t.done?d=t.crit?d+" doneCritText"+u:d+" doneText"+u:t.crit&&(d=d+" critText"+u),t.milestone&&(d+=" milestoneText"),t.vert&&(d+=" vertText"),s>n-e?n+s+1.5*i.leftPadding>l?c+" taskTextOutsideLeft taskTextOutside"+u+" "+d:c+" taskTextOutsideRight taskTextOutside"+u+" "+d+" width-"+s:c+" taskText taskText"+u+" "+d+" width-"+s})),"sandbox"===d().securityLevel){const t=b("#i"+e).nodes()[0].contentDocument;u.filter((function(t){return g.has(t.id)})).each((function(e){var n=t.querySelector("#"+e.id),r=t.querySelector("#"+e.id+"-text"),i=n.parentNode,a=t.createElement("a");a.setAttribute("xlink:href",g.get(e.id)),a.setAttribute("target","_top"),i.appendChild(a),a.appendChild(n),a.appendChild(r)}))}}function _(t,e,n,a,s,o,c,l){if(0!==c.length||0!==l.length){let a,y;for(var{startTime:d,endTime:h}of o)(void 0===a||d<a)&&(a=d),(void 0===y||h>y)&&(y=h);if(a&&y)if(5<u(y).diff(u(a),"year"))v.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");else{var f=r.db.getDateFormat(),g=[];let o=null,d=u(a);for(;d.valueOf()<=y;)r.db.isInvalidDate(d,f,c,l)?o?o.end=d:o={start:d,end:d}:o&&(g.push(o),o=null),d=d.add(1,"d");p.append("g").selectAll("rect").data(g).enter().append("rect").attr("id",(t=>"exclude-"+t.start.format("YYYY-MM-DD"))).attr("x",(t=>T(t.start.startOf("day"))+n)).attr("y",i.gridLineStartPadding).attr("width",(t=>T(t.end.endOf("day"))-T(t.start.startOf("day")))).attr("height",s-e-i.gridLineStartPadding).attr("transform-origin",(function(e,r){return(T(e.start)+n+.5*(T(e.end)-T(e.start))).toString()+"px "+(r*t+.5*s).toString()+"px"})).attr("class","exclude-range")}}}function S(t,e,n,a){var s=r.db.getDateFormat();let o;o=(c=r.db.getAxisFormat())||("D"===s?"%d":i.axisFormat??"%Y-%m-%d");var c,l=function(t){return j(I,t)}(T).tickSize(-a+e+i.gridLineStartPadding).tickFormat(ne(o));if(null!==(c=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||i.tickInterval))){var u=c[1],d=(s=c[2],r.db.getWeekday()||i.weekday);switch(s){case"millisecond":l.ticks(gt.every(u));break;case"second":l.ticks(xt.every(u));break;case"minute":l.ticks(wt.every(u));break;case"hour":l.ticks(Ct.every(u));break;case"day":l.ticks(_t.every(u));break;case"week":l.ticks(ti[d].every(u));break;case"month":l.ticks(Zt.every(u))}}if(p.append("g").attr("class","grid").attr("transform","translate("+t+", "+(a-50)+")").call(l).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),r.db.topAxisEnabled()||i.topAxis){var h=function(t){return j(L,t)}(T).tickSize(-a+e+i.gridLineStartPadding).tickFormat(ne(o));if(null!==c){var f=c[1],g=(s=c[2],r.db.getWeekday()||i.weekday);switch(s){case"millisecond":h.ticks(gt.every(f));break;case"second":h.ticks(xt.every(f));break;case"minute":h.ticks(wt.every(f));break;case"hour":h.ticks(Ct.every(f));break;case"day":h.ticks(_t.every(f));break;case"week":h.ticks(ti[g].every(f));break;case"month":h.ticks(Zt.every(f))}}p.append("g").attr("class","grid").attr("transform","translate("+t+", "+e+")").call(h).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function Y(t,e){let n=0;const r=Object.keys(g).map((t=>[t,g[t]]));p.append("g").selectAll("text").data(r).enter().append((function(t){var e,n,r=-((t=t[0].split(w.lineBreakRegex)).length-1)/2,i=c.createElementNS("http://www.w3.org/2000/svg","text");for([e,n]of(i.setAttribute("dy",r+"em"),t.entries())){var a=c.createElementNS("http://www.w3.org/2000/svg","tspan");a.setAttribute("alignment-baseline","central"),a.setAttribute("x","10"),0<e&&a.setAttribute("dy","1em"),a.textContent=n,i.appendChild(a)}return i})).attr("x",10).attr("y",(function(i,a){if(!(0<a))return i[1]*t/2+e;if(0<a)return n+=r[a-1][1],i[1]*t/2+n*t+e})).attr("font-size",i.sectionFontSize).attr("class",(function(t){for(var[e,n]of f.entries())if(t[0]===n)return"sectionTitle sectionTitle"+e%i.numberSectionStyles;return"sectionTitle"}))}function U(t,e,n,a){var s,o,c=r.db.getTodayMarker();"off"!==c&&(o=p.append("g").attr("class","today"),s=new Date,(o=o.append("line")).attr("x1",T(s)+t).attr("x2",T(s)+t).attr("y1",i.titleTopMargin).attr("y2",a-i.titleTopMargin).attr("class","today"),""!==c)&&o.attr("style",c.replace(/,/g,";"))}function E(t){var e={},n=[];for(let r=0,i=t.length;r<i;++r)Object.prototype.hasOwnProperty.call(e,t[r])||(e[t[r]]=!0,n.push(t[r]));return n}l(D,"taskCompare"),h.sort(D),C(h,Jr,y),x(p,y,Jr,i.useMaxWidth),p.append("text").text(r.db.getDiagramTitle()).attr("x",Jr/2).attr("y",i.titleTopMargin).attr("class","titleText"),l(C,"makeGantt"),l(M,"drawRects"),l(_,"drawExcludeDays"),l(S,"makeGrid"),l(Y,"vertLabels"),l(U,"drawToday"),l(E,"checkUnique")}),"draw"),ri={setConf:Kr,draw:ni},ii=l((t=>`\n .mermaid-main-font {\n font-family: ${t.fontFamily};\n }\n\n .exclude-range {\n fill: ${t.excludeBkgColor};\n }\n\n .section {\n stroke: none;\n opacity: 0.2;\n }\n\n .section0 {\n fill: ${t.sectionBkgColor};\n }\n\n .section2 {\n fill: ${t.sectionBkgColor2};\n }\n\n .section1,\n .section3 {\n fill: ${t.altSectionBkgColor};\n opacity: 0.2;\n }\n\n .sectionTitle0 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle1 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle2 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle3 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle {\n text-anchor: start;\n font-family: ${t.fontFamily};\n }\n\n\n /* Grid and axis */\n\n .grid .tick {\n stroke: ${t.gridColor};\n opacity: 0.8;\n shape-rendering: crispEdges;\n }\n\n .grid .tick text {\n font-family: ${t.fontFamily};\n fill: ${t.textColor};\n }\n\n .grid path {\n stroke-width: 0;\n }\n\n\n /* Today line */\n\n .today {\n fill: none;\n stroke: ${t.todayLineColor};\n stroke-width: 2px;\n }\n\n\n /* Task styling */\n\n /* Default task */\n\n .task {\n stroke-width: 2;\n }\n\n .taskText {\n text-anchor: middle;\n font-family: ${t.fontFamily};\n }\n\n .taskTextOutsideRight {\n fill: ${t.taskTextDarkColor};\n text-anchor: start;\n font-family: ${t.fontFamily};\n }\n\n .taskTextOutsideLeft {\n fill: ${t.taskTextDarkColor};\n text-anchor: end;\n }\n\n\n /* Special case clickable */\n\n .task.clickable {\n cursor: pointer;\n }\n\n .taskText.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n\n /* Specific task settings for the sections*/\n\n .taskText0,\n .taskText1,\n .taskText2,\n .taskText3 {\n fill: ${t.taskTextColor};\n }\n\n .task0,\n .task1,\n .task2,\n .task3 {\n fill: ${t.taskBkgColor};\n stroke: ${t.taskBorderColor};\n }\n\n .taskTextOutside0,\n .taskTextOutside2\n {\n fill: ${t.taskTextOutsideColor};\n }\n\n .taskTextOutside1,\n .taskTextOutside3 {\n fill: ${t.taskTextOutsideColor};\n }\n\n\n /* Active task */\n\n .active0,\n .active1,\n .active2,\n .active3 {\n fill: ${t.activeTaskBkgColor};\n stroke: ${t.activeTaskBorderColor};\n }\n\n .activeText0,\n .activeText1,\n .activeText2,\n .activeText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n\n /* Completed task */\n\n .done0,\n .done1,\n .done2,\n .done3 {\n stroke: ${t.doneTaskBorderColor};\n fill: ${t.doneTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneText0,\n .doneText1,\n .doneText2,\n .doneText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n\n /* Tasks on the critical line */\n\n .crit0,\n .crit1,\n .crit2,\n .crit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.critBkgColor};\n stroke-width: 2;\n }\n\n .activeCrit0,\n .activeCrit1,\n .activeCrit2,\n .activeCrit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.activeTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneCrit0,\n .doneCrit1,\n .doneCrit2,\n .doneCrit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.doneTaskBkgColor};\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges;\n }\n\n .milestone {\n transform: rotate(45deg) scale(0.8,0.8);\n }\n\n .milestoneText {\n font-style: italic;\n }\n .doneCritText0,\n .doneCritText1,\n .doneCritText2,\n .doneCritText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n .vert {\n stroke: ${t.vertLineColor};\n }\n\n .vertText {\n font-size: 15px;\n text-anchor: middle;\n fill: ${t.vertLineColor} !important;\n }\n\n .activeCritText0,\n .activeCritText1,\n .activeCritText2,\n .activeCritText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n .titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.titleColor||t.textColor};\n font-family: ${t.fontFamily};\n }\n`),"getStyles"),ai={parser:In,db:Xr,renderer:ri,styles:ii};export{ai as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{G as GitGraphModule,f as createGitGraphServices}from"./mermaid-parser.core-0cfa7d2a.js";import"./web-0016ac81.js";import"./_baseUniq-38ea2195.js";import"./_basePickBy-cbf78fb3.js";import"./clone-8494eb3f.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{G as GitGraphModule,f as createGitGraphServices}from"./mermaid-parser.core-10bed742.js";import"./web-4e6d8ea9.js";import"./_baseUniq-52a47b7b.js";import"./_basePickBy-1057a1b4.js";import"./clone-6cd174cf.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as r}from"./chunk-4BX2VUAB-d05d937e.js";import{I as t}from"./chunk-QZHKN3VN-d57979be.js";import{C as e,_ as a,d as o,D as n,E as i,F as s,l as c,s as h,g as d,b as m,c as $,n as y,o as l,e as g,t as p,j as x,u as f,G as u}from"./web-4e6d8ea9.js";import{p as b}from"./mermaid-parser.core-10bed742.js";import"./_baseUniq-52a47b7b.js";import"./_basePickBy-1057a1b4.js";import"./clone-6cd174cf.js";var w={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},B=e.gitGraph,E=a((()=>n({...B,...i().gitGraph})),"getConfig"),v=new t((()=>{var r=(t=E()).mainBranchName,t=t.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:t}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}}));function k(){return s({length:7})}function C(r,t){const e=Object.create(null);return r.reduce(((r,a)=>{var o=t(a);return e[o]||(e[o]=!0,r.push(a)),r}),[])}a(k,"getID"),a(C,"uniqBy");var L=a((function(r){v.records.direction=r}),"setDirection"),T=a((function(r){c.debug("options str",r),r=(r=r?.trim())||"{}";try{v.records.options=JSON.parse(r)}catch(r){c.error("error while parsing gitGraph options",r.message)}}),"setOptions"),M=a((function(){return v.records.options}),"getOptions"),P=a((function(r){var t=r.msg,e=r.id,a=r.type;let o=r.tags;c.info("commit",t,e,a,o),c.debug("Entering commit:",t,e,a,o);const n=E();e=g.sanitizeText(e,n),t=g.sanitizeText(t,n),o=o?.map((r=>g.sanitizeText(r,n))),r={id:e||v.records.seq+"-"+k(),message:t,seq:v.records.seq++,type:a??w.NORMAL,tags:o??[],parents:null==v.records.head?[]:[v.records.head.id],branch:v.records.currBranch},v.records.head=r,c.info("main branch",n.mainBranchName),v.records.commits.has(r.id)&&c.warn(`Commit ID ${r.id} already exists`),v.records.commits.set(r.id,r),v.records.branches.set(v.records.currBranch,r.id),c.debug("in pushCommit "+r.id)}),"commit"),R=a((function(r){var t=r.name;r=r.order,t=g.sanitizeText(t,E());if(v.records.branches.has(t))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${t}")`);v.records.branches.set(t,null!=v.records.head?v.records.head.id:null),v.records.branchConfig.set(t,{name:t,order:r}),G(t),c.debug("in createBranch")}),"branch"),I=a((r=>{var t=r.branch;let e=r.id;var a=r.type,o=(r=r.tags,E()),n=(t=g.sanitizeText(t,o),o=(e=e&&g.sanitizeText(e,o),v.records.branches.get(v.records.currBranch)),v.records.branches.get(t)),i=(o=o?v.records.commits.get(o):void 0,n?v.records.commits.get(n):void 0);if(o&&i&&o.branch===t)throw new Error(`Cannot merge branch '${t}' into itself.`);if(v.records.currBranch===t)throw(s=new Error('Incorrect usage of "merge". Cannot merge a branch to itself')).hash={text:"merge "+t,token:"merge "+t,expected:["branch abc"]},s;if(void 0===o||!o)throw(s=new Error(`Incorrect usage of "merge". Current branch (${v.records.currBranch})has no commits`)).hash={text:"merge "+t,token:"merge "+t,expected:["commit"]},s;if(!v.records.branches.has(t))throw(s=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") does not exist")).hash={text:"merge "+t,token:"merge "+t,expected:["branch "+t]},s;if(void 0===i||!i)throw(s=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") has no commits")).hash={text:"merge "+t,token:"merge "+t,expected:['"commit"']},s;if(o===i)throw(s=new Error('Incorrect usage of "merge". Both branches have same head')).hash={text:"merge "+t,token:"merge "+t,expected:["branch abc"]},s;if(e&&v.records.commits.has(e))throw(o=new Error('Incorrect usage of "merge". Commit with id:'+e+" already exists, use different custom id")).hash={text:`merge ${t} ${e} ${a} `+r?.join(" "),token:`merge ${t} ${e} ${a} `+r?.join(" "),expected:[`merge ${t} ${e}_UNIQUE ${a} `+r?.join(" ")]},o;i=n||"";var s={id:e||v.records.seq+"-"+k(),message:`merged branch ${t} into `+v.records.currBranch,seq:v.records.seq++,parents:null==v.records.head?[]:[v.records.head.id,i],branch:v.records.currBranch,type:w.MERGE,customType:a,customId:!!e,tags:r??[]};v.records.head=s,v.records.commits.set(s.id,s),v.records.branches.set(v.records.currBranch,s.id),c.debug(v.records.branches),c.debug("in mergeBranch")}),"merge"),A=a((function(r){var t=r.id,e=r.targetId;let a=r.tags;r=r.parent,c.debug("Entering cherryPick:",t,e,a);const o=E();if(t=g.sanitizeText(t,o),e=g.sanitizeText(e,o),a=a?.map((r=>g.sanitizeText(r,o))),r=g.sanitizeText(r,o),!t||!v.records.commits.has(t))throw(n=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided')).hash={text:`cherryPick ${t} `+e,token:`cherryPick ${t} `+e,expected:["cherry-pick abc"]},n;var n=v.records.commits.get(t);if(void 0===n||!n)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(r&&(!Array.isArray(n.parents)||!n.parents.includes(r)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");var i=n.branch;if(n.type===w.MERGE&&!r)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!e||!v.records.commits.has(e)){if(i===v.records.currBranch)throw(i=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch')).hash={text:`cherryPick ${t} `+e,token:`cherryPick ${t} `+e,expected:["cherry-pick abc"]},i;if(void 0===(i=v.records.branches.get(v.records.currBranch))||!i)throw(s=new Error(`Incorrect usage of "cherry-pick". Current branch (${v.records.currBranch})has no commits`)).hash={text:`cherryPick ${t} `+e,token:`cherryPick ${t} `+e,expected:["cherry-pick abc"]},s;var s=v.records.commits.get(i);if(void 0===s||!s)throw(i=new Error(`Incorrect usage of "cherry-pick". Current branch (${v.records.currBranch})has no commits`)).hash={text:`cherryPick ${t} `+e,token:`cherryPick ${t} `+e,expected:["cherry-pick abc"]},i;s={id:v.records.seq+"-"+k(),message:`cherry-picked ${n?.message} into `+v.records.currBranch,seq:v.records.seq++,parents:null==v.records.head?[]:[v.records.head.id,n.id],branch:v.records.currBranch,type:w.CHERRY_PICK,tags:a?a.filter(Boolean):["cherry-pick:"+n.id+(n.type===w.MERGE?"|parent:"+r:"")]},v.records.head=s,v.records.commits.set(s.id,s),v.records.branches.set(v.records.currBranch,s.id),c.debug(v.records.branches),c.debug("in cherryPick")}}),"cherryPick"),G=a((function(r){var t;if(r=g.sanitizeText(r,E()),!v.records.branches.has(r))throw(t=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${r}")`)).hash={text:"checkout "+r,token:"checkout "+r,expected:["branch "+r]},t;v.records.currBranch=r,t=v.records.branches.get(v.records.currBranch),v.records.head=void 0!==t&&t?v.records.commits.get(t)??null:null}),"checkout");function O(r,t,e){-1===(t=r.indexOf(t))?r.push(e):r.splice(t,1,e)}function q(r){const t=r.reduce(((r,t)=>r.seq>t.seq?r:t),r[0]);let e="";r.forEach((function(r){e+=r===t?"\t*":"\t|"}));var a=[e,t.id,t.seq];for(const r in v.records.branches)v.records.branches.get(r)===t.id&&a.push(r);if(c.debug(a.join(" ")),t.parents&&2==t.parents.length&&t.parents[0]&&t.parents[1]){var o=v.records.commits.get(t.parents[0]);O(r,t,o),t.parents[1]&&r.push(v.records.commits.get(t.parents[1]))}else{if(0==t.parents.length)return;t.parents[0]&&(o=v.records.commits.get(t.parents[0]),O(r,t,o))}q(r=C(r,(r=>r.id)))}a(O,"upsert"),a(q,"prettyPrintCommitHistory");var H=a((function(){c.debug(v.records.commits),q([N()[0]])}),"prettyPrint"),z=a((function(){v.reset(),p()}),"clear"),j=a((function(){return[...v.records.branchConfig.values()].map(((r,t)=>null!==r.order&&void 0!==r.order?r:{...r,order:parseFloat("0."+t)})).sort(((r,t)=>(r.order??0)-(t.order??0))).map((({name:r})=>({name:r})))}),"getBranchesAsObjArray"),S=a((function(){return v.records.branches}),"getBranches"),D=a((function(){return v.records.commits}),"getCommits"),N=a((function(){var r=[...v.records.commits.values()];return r.forEach((function(r){c.debug(r.id)})),r.sort(((r,t)=>r.seq-t.seq)),r}),"getCommitsArray"),W=a((function(){return v.records.currBranch}),"getCurrentBranch"),_=a((function(){return v.records.direction}),"getDirection"),F=a((function(){return v.records.head}),"getHead"),K={commitType:w,getConfig:E,setDirection:L,setOptions:T,getOptions:M,commit:P,branch:R,merge:I,cherryPick:A,checkout:G,prettyPrint:H,clear:z,getBranchesAsObjArray:j,getBranches:S,getCommits:D,getCommitsArray:N,getCurrentBranch:W,getDirection:_,getHead:F,setAccTitle:h,getAccTitle:d,getAccDescription:m,setAccDescription:$,setDiagramTitle:y,getDiagramTitle:l},U=a(((t,e)=>{r(t,e),t.dir&&e.setDirection(t.dir);for(const r of t.statements)V(r,e)}),"populate"),V=a(((r,t)=>{var e={Commit:a((r=>t.commit(Y(r))),"Commit"),Branch:a((r=>t.branch(Q(r))),"Branch"),Merge:a((r=>t.merge(X(r))),"Merge"),Checkout:a((r=>t.checkout(J(r))),"Checkout"),CherryPicking:a((r=>t.cherryPick(Z(r))),"CherryPicking")}[r.$type];e?e(r):c.error("Unknown statement type: "+r.$type)}),"parseStatement"),Y=a((r=>({id:r.id,msg:r.message??"",type:void 0!==r.type?w[r.type]:w.NORMAL,tags:r.tags??void 0})),"parseCommit"),Q=a((r=>({name:r.name,order:r.order??0})),"parseBranch"),X=a((r=>({branch:r.branch,id:r.id??"",type:void 0!==r.type?w[r.type]:void 0,tags:r.tags??void 0})),"parseMerge"),J=a((r=>r.branch),"parseCheckout"),Z=a((r=>({id:r.id,targetId:"",tags:0===r.tags?.length?void 0:r.tags,parent:r.parent})),"parseCherryPicking"),rr={parse:a((async r=>{r=await b("gitGraph",r),c.debug(r),U(r,K)}),"parse")},tr=o(),er=tr?.gitGraph,ar=10,or=40,nr=new Map,ir=new Map,sr=new Map,cr=[],hr=0,dr="LR",mr=a((()=>{nr.clear(),ir.clear(),sr.clear(),hr=0,cr=[],dr="LR"}),"clear"),$r=a((r=>{const t=document.createElementNS("http://www.w3.org/2000/svg","text");return("string"==typeof r?r.split(/\\n|\n|<br\s*\/?>/gi):r).forEach((r=>{var e=document.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),e.setAttribute("dy","1em"),e.setAttribute("x","0"),e.setAttribute("class","row"),e.textContent=r.trim(),t.appendChild(e)})),t}),"drawText"),yr=a((r=>{let t,e,o;return o="BT"===dr?(e=a(((r,t)=>r<=t),"comparisonFunc"),1/0):(e=a(((r,t)=>t<=r),"comparisonFunc"),0),r.forEach((r=>{var a="TB"===dr||"BT"==dr?ir.get(r)?.y:ir.get(r)?.x;void 0!==a&&e(a,o)&&(t=r,o=a)})),t}),"findClosestParent"),lr=a((r=>{let t="",e=1/0;return r.forEach((r=>{var a=ir.get(r).y;a<=e&&(t=r,e=a)})),t||void 0}),"findClosestParentBT"),gr=a(((r,t,e)=>{let a=e,o=e;const n=[];r.forEach((r=>{var e=t.get(r);if(!e)throw new Error("Commit not found for key "+r);e.parents.length?(a=xr(e),o=Math.max(a,o)):n.push(e),fr(e,a)})),a=o,n.forEach((r=>{ur(r,a,e)})),r.forEach((r=>{var e,n;r=t.get(r);r?.parents.length&&(e=lr(r.parents),(a=ir.get(e).y-or)<=o&&(o=a),e=nr.get(r.branch).pos,n=a-ar,ir.set(r.id,{x:e,y:n}))}))}),"setParallelBTPos"),pr=a((r=>{var t=yr(r.parents.filter((r=>null!==r)));if(!t)throw new Error("Closest parent not found for commit "+r.id);if(t=ir.get(t)?.y,void 0===t)throw new Error("Closest parent position not found for commit "+r.id);return t}),"findClosestParentPos"),xr=a((r=>pr(r)+or),"calculateCommitPosition"),fr=a(((r,t)=>{var e=nr.get(r.branch);if(e)return e=e.pos,ir.set(r.id,{x:e,y:t+=ar}),{x:e,y:t};throw new Error("Branch not found for commit "+r.id)}),"setCommitPosition"),ur=a(((r,t,e)=>{var a=nr.get(r.branch);if(!a)throw new Error("Branch not found for commit "+r.id);a=a.pos,ir.set(r.id,{x:a,y:t+e})}),"setRootPosition"),br=a(((r,t,e,a,o,n)=>{var i;n===w.HIGHLIGHT?(r.append("rect").attr("x",e.x-10).attr("y",e.y-10).attr("width",20).attr("height",20).attr("class",`commit ${t.id} commit-highlight${o%8} ${a}-outer`),r.append("rect").attr("x",e.x-6).attr("y",e.y-6).attr("width",12).attr("height",12).attr("class",`commit ${t.id} commit${o%8} ${a}-inner`)):n===w.CHERRY_PICK?(r.append("circle").attr("cx",e.x).attr("cy",e.y).attr("r",10).attr("class",`commit ${t.id} `+a),r.append("circle").attr("cx",e.x-3).attr("cy",e.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${t.id} `+a),r.append("circle").attr("cx",e.x+3).attr("cy",e.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${t.id} `+a),r.append("line").attr("x1",e.x+3).attr("y1",e.y+1).attr("x2",e.x).attr("y2",e.y-5).attr("stroke","#fff").attr("class",`commit ${t.id} `+a),r.append("line").attr("x1",e.x-3).attr("y1",e.y+1).attr("x2",e.x).attr("y2",e.y-5).attr("stroke","#fff").attr("class",`commit ${t.id} `+a)):((i=r.append("circle")).attr("cx",e.x),i.attr("cy",e.y),i.attr("r",t.type===w.MERGE?9:10),i.attr("class",`commit ${t.id} commit`+o%8),n===w.MERGE&&((i=r.append("circle")).attr("cx",e.x),i.attr("cy",e.y),i.attr("r",6),i.attr("class",`commit ${a} ${t.id} commit`+o%8)),n===w.REVERSE&&r.append("path").attr("d",`M ${e.x-5},${e.y-5}L${e.x+5},${e.y+5}M${e.x-5},${e.y+5}L${e.x+5},`+(e.y-5)).attr("class",`commit ${a} ${t.id} commit`+o%8))}),"drawCommitBullet"),wr=a(((r,t,e,a)=>{var o,n;t.type!==w.CHERRY_PICK&&(t.customId&&t.type===w.MERGE||t.type!==w.MERGE)&&er?.showCommitLabel&&(n=(r=r.append("g")).insert("rect").attr("class","commit-label-bkg"),o=(t=r.append("text").attr("x",a).attr("y",e.y+25).attr("class","commit-label").text(t.id)).node()?.getBBox())&&(n.attr("x",e.posWithOffset-o.width/2-2).attr("y",e.y+13.5).attr("width",o.width+4).attr("height",o.height+4),"TB"===dr||"BT"===dr?(n.attr("x",e.x-(o.width+16+5)).attr("y",e.y-12),t.attr("x",e.x-(o.width+16)).attr("y",e.y+o.height-12)):t.attr("x",e.posWithOffset-o.width/2),er.rotateCommitLabel)&&("TB"===dr||"BT"===dr?(t.attr("transform","rotate(-45, "+e.x+", "+e.y+")"),n.attr("transform","rotate(-45, "+e.x+", "+e.y+")")):(t=-7.5-(o.width+10)/25*9.5,n=10+o.width/25*8.5,r.attr("transform","translate("+t+", "+n+") rotate(-45, "+a+", "+e.y+")")))}),"drawCommitLabel"),Br=a(((r,t,e,a)=>{if(0<t.tags.length){let g=0,p=0,x=0;var o,n,i,s,c=[];for(const a of t.tags.reverse()){var h=r.insert("polygon"),d=r.append("circle"),m=r.append("text").attr("y",e.y-16-g).attr("class","tag-label").text(a),$=m.node()?.getBBox();if(!$)throw new Error("Tag bbox not found");p=Math.max(p,$.width),x=Math.max(x,$.height),m.attr("x",e.posWithOffset-$.width/2),c.push({tag:m,hole:d,rect:h,yOffset:g}),g+=20}for({tag:o,hole:n,rect:i,yOffset:s}of c){var y=x/2,l=e.y-19.2-s;i.attr("class","tag-label-bkg").attr("points",`\n ${a-p/2-2},${l+2} \n ${a-p/2-2},${l-2}\n ${e.posWithOffset-p/2-4},${l-y-2}\n ${e.posWithOffset+p/2+4},${l-y-2}\n ${e.posWithOffset+p/2+4},${l+y+2}\n ${e.posWithOffset-p/2-4},`+(l+y+2)),n.attr("cy",l).attr("cx",a-p/2+2).attr("r",1.5).attr("class","tag-hole"),"TB"!==dr&&"BT"!==dr||(l=a+s,i.attr("class","tag-label-bkg").attr("points",`\n ${e.x},${l+2}\n ${e.x},${l-2}\n ${e.x+ar},${l-y-2}\n ${e.x+ar+p+4},${l-y-2}\n ${e.x+ar+p+4},${l+y+2}\n ${e.x+ar},`+(l+y+2)).attr("transform","translate(12,12) rotate(45, "+e.x+","+a+")"),n.attr("cx",e.x+2).attr("cy",l).attr("transform","translate(12,12) rotate(45, "+e.x+","+a+")"),o.attr("x",e.x+5).attr("y",l+3).attr("transform","translate(14,14) rotate(45, "+e.x+","+a+")"))}}}),"drawCommitTags"),Er=a((r=>{switch(r.customType??r.type){case w.NORMAL:return"commit-normal";case w.REVERSE:return"commit-reverse";case w.HIGHLIGHT:return"commit-highlight";case w.MERGE:return"commit-merge";case w.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}}),"getCommitClassType"),vr=a(((r,t,e,a)=>{var o,n={x:0,y:0};return 0<r.parents.length?(o=yr(r.parents))?(o=a.get(o)??n,"TB"===t?o.y+or:"BT"===t?(a.get(r.id)??n).y-or:o.x+or):0:"TB"===t?30:"BT"===t?(a.get(r.id)??n).y-or:0}),"calculatePosition"),kr=a(((r,t,e)=>{e="BT"===dr&&e?t:t+ar,t="TB"===dr||"BT"===dr?e:nr.get(r.branch)?.pos;var a="TB"===dr||"BT"===dr?nr.get(r.branch)?.pos:e;if(void 0===a||void 0===t)throw new Error("Position were undefined for commit "+r.id);return{x:a,y:t,posWithOffset:e}}),"getCommitPosition"),Cr=a(((r,t,e)=>{if(!er)throw new Error("GitGraph config not found");const o=r.append("g").attr("class","commit-bullets"),n=r.append("g").attr("class","commit-labels");let i="TB"===dr||"BT"===dr?30:0;r=[...t.keys()];const s=er?.parallelCommits??!1;var c=a(((r,e)=>(r=t.get(r)?.seq,e=t.get(e)?.seq,void 0!==r&&void 0!==e?r-e:0)),"sortKeys");let h=r.sort(c);"BT"===dr&&(s&&gr(h,t,i),h=h.reverse()),h.forEach((r=>{var a=t.get(r);if(!a)throw new Error("Commit not found for key "+r);s&&(i=vr(a,dr,i,ir));var c,h,d;r=kr(a,i,s);e&&(c=Er(a),h=a.customType??a.type,d=nr.get(a.branch)?.index??0,br(o,a,r,c,d,h),wr(n,a,r,i),Br(n,a,r,i)),"TB"===dr||"BT"===dr?ir.set(a.id,{x:r.x,y:r.posWithOffset}):ir.set(a.id,{x:r.posWithOffset,y:r.y}),(i="BT"===dr&&s?i+or:i+or+ar)>hr&&(hr=i)}))}),"drawCommits"),Lr=a(((r,t,e,o,n)=>{const i=(("TB"===dr||"BT"===dr?e.x<o.x:e.y<o.y)?t:r).branch,s=a((r=>r.branch===i),"isOnBranchToGetCurve"),c=a((e=>e.seq>r.seq&&e.seq<t.seq),"isBetweenCommits");return[...n.values()].some((r=>c(r)&&s(r)))}),"shouldRerouteArrow"),Tr=a(((r,t,e=0)=>{const a=r+Math.abs(r-t)/2;var o;return 5<e?a:cr.every((r=>10<=Math.abs(r-a)))?(cr.push(a),a):(o=Math.abs(r-t),Tr(r,t-o/5,e+1))}),"findLane"),Mr=a(((r,t,e,a)=>{var o=ir.get(t.id),n=ir.get(e.id);if(void 0===o||void 0===n)throw new Error(`Commit positions not found for commits ${t.id} and `+e.id);var i;a=Lr(t,e,o,n,a);let s,c="",h="",d=0,m=0,$=nr.get(e.branch)?.index;if(e.type===w.MERGE&&t.id!==e.parents[0]&&($=nr.get(t.branch)?.index),a?(c="A 10 10, 0, 0, 0,",h="A 10 10, 0, 0, 1,",d=10,m=10,a=o.y<n.y?Tr(o.y,n.y):Tr(n.y,o.y),i=o.x<n.x?Tr(o.x,n.x):Tr(n.x,o.x),s="TB"===dr?o.x<n.x?`M ${o.x} ${o.y} L ${i-d} ${o.y} ${h} ${i} ${o.y+m} L ${i} ${n.y-d} ${c} ${i+m} ${n.y} L ${n.x} `+n.y:($=nr.get(t.branch)?.index,`M ${o.x} ${o.y} L ${i+d} ${o.y} ${c} ${i} ${o.y+m} L ${i} ${n.y-d} ${h} ${i-m} ${n.y} L ${n.x} `+n.y):"BT"===dr?o.x<n.x?`M ${o.x} ${o.y} L ${i-d} ${o.y} ${c} ${i} ${o.y-m} L ${i} ${n.y+d} ${h} ${i+m} ${n.y} L ${n.x} `+n.y:($=nr.get(t.branch)?.index,`M ${o.x} ${o.y} L ${i+d} ${o.y} ${h} ${i} ${o.y-m} L ${i} ${n.y+d} ${c} ${i-m} ${n.y} L ${n.x} `+n.y):o.y<n.y?`M ${o.x} ${o.y} L ${o.x} ${a-d} ${c} ${o.x+m} ${a} L ${n.x-d} ${a} ${h} ${n.x} ${a+m} L ${n.x} `+n.y:($=nr.get(t.branch)?.index,`M ${o.x} ${o.y} L ${o.x} ${a+d} ${h} ${o.x+m} ${a} L ${n.x-d} ${a} ${c} ${n.x} ${a-m} L ${n.x} `+n.y)):(c="A 20 20, 0, 0, 0,",h="A 20 20, 0, 0, 1,",d=20,m=20,"TB"===dr?(o.x<n.x&&(s=e.type===w.MERGE&&t.id!==e.parents[0]?`M ${o.x} ${o.y} L ${o.x} ${n.y-d} ${c} ${o.x+m} ${n.y} L ${n.x} `+n.y:`M ${o.x} ${o.y} L ${n.x-d} ${o.y} ${h} ${n.x} ${o.y+m} L ${n.x} `+n.y),o.x>n.x&&(c="A 20 20, 0, 0, 0,",h="A 20 20, 0, 0, 1,",d=20,m=20,s=e.type===w.MERGE&&t.id!==e.parents[0]?`M ${o.x} ${o.y} L ${o.x} ${n.y-d} ${h} ${o.x-m} ${n.y} L ${n.x} `+n.y:`M ${o.x} ${o.y} L ${n.x+d} ${o.y} ${c} ${n.x} ${o.y+m} L ${n.x} `+n.y),o.x===n.x&&(s=`M ${o.x} ${o.y} L ${n.x} `+n.y)):"BT"===dr?(o.x<n.x&&(s=e.type===w.MERGE&&t.id!==e.parents[0]?`M ${o.x} ${o.y} L ${o.x} ${n.y+d} ${h} ${o.x+m} ${n.y} L ${n.x} `+n.y:`M ${o.x} ${o.y} L ${n.x-d} ${o.y} ${c} ${n.x} ${o.y-m} L ${n.x} `+n.y),o.x>n.x&&(c="A 20 20, 0, 0, 0,",h="A 20 20, 0, 0, 1,",d=20,m=20,s=e.type===w.MERGE&&t.id!==e.parents[0]?`M ${o.x} ${o.y} L ${o.x} ${n.y+d} ${c} ${o.x-m} ${n.y} L ${n.x} `+n.y:`M ${o.x} ${o.y} L ${n.x-d} ${o.y} ${c} ${n.x} ${o.y-m} L ${n.x} `+n.y),o.x===n.x&&(s=`M ${o.x} ${o.y} L ${n.x} `+n.y)):(o.y<n.y&&(s=e.type===w.MERGE&&t.id!==e.parents[0]?`M ${o.x} ${o.y} L ${n.x-d} ${o.y} ${h} ${n.x} ${o.y+m} L ${n.x} `+n.y:`M ${o.x} ${o.y} L ${o.x} ${n.y-d} ${c} ${o.x+m} ${n.y} L ${n.x} `+n.y),o.y>n.y&&(s=e.type===w.MERGE&&t.id!==e.parents[0]?`M ${o.x} ${o.y} L ${n.x-d} ${o.y} ${c} ${n.x} ${o.y-m} L ${n.x} `+n.y:`M ${o.x} ${o.y} L ${o.x} ${n.y+d} ${h} ${o.x+m} ${n.y} L ${n.x} `+n.y),o.y===n.y&&(s=`M ${o.x} ${o.y} L ${n.x} `+n.y))),void 0===s)throw new Error("Line definition not found");r.append("path").attr("d",s).attr("class","arrow arrow"+$%8)}),"drawArrow"),Pr=a(((r,t)=>{const e=r.append("g").attr("class","commit-arrows");[...t.keys()].forEach((r=>{const a=t.get(r);a.parents&&0<a.parents.length&&a.parents.forEach((r=>{Mr(e,t.get(r),a,t)}))}))}),"drawArrows"),Rr=a(((r,t)=>{const e=r.append("g");t.forEach(((r,t)=>{t%=8;var a=nr.get(r.name)?.pos;if(void 0===a)throw new Error("Position not found for branch "+r.name);var o=((o=e.append("line")).attr("x1",0),o.attr("y1",a),o.attr("x2",hr),o.attr("y2",a),o.attr("class","branch branch"+t),"TB"===dr?(o.attr("y1",30),o.attr("x1",a),o.attr("y2",hr),o.attr("x2",a)):"BT"===dr&&(o.attr("y1",hr),o.attr("x1",a),o.attr("y2",30),o.attr("x2",a)),cr.push(a),r.name),n=(r=$r(o),o=e.insert("rect"),e.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+t));n.node().appendChild(r),r=r.getBBox();o.attr("class","branchLabelBkg label"+t).attr("rx",4).attr("ry",4).attr("x",-r.width-4-(!0===er?.rotateCommitLabel?30:0)).attr("y",-r.height/2+8).attr("width",r.width+18).attr("height",r.height+4),n.attr("transform","translate("+(-r.width-14-(!0===er?.rotateCommitLabel?30:0))+", "+(a-r.height/2-1)+")"),"TB"===dr?(o.attr("x",a-r.width/2-10).attr("y",0),n.attr("transform","translate("+(a-r.width/2-5)+", 0)")):"BT"===dr?(o.attr("x",a-r.width/2-10).attr("y",hr),n.attr("transform","translate("+(a-r.width/2-5)+", "+hr+")")):o.attr("transform","translate(-19, "+(a-r.height/2)+")")}))}),"drawBranches"),Ir=a((function(r,t,e,a,o){return nr.set(r,{pos:t,index:e}),t+(50+(o?40:0)+("TB"===dr||"BT"===dr?a.width/2:0))}),"setBranchPosition"),Ar={draw:a((function(r,t,e,a){if(mr(),c.debug("in gitgraph renderer",r+"\n","id:",t,e),!er)throw new Error("GitGraph config not found");const o=er.rotateCommitLabel??!1;r=a.db,sr=r.getCommits(),e=r.getBranchesAsObjArray(),dr=r.getDirection();const n=x(`[id="${t}"]`);let i=0;e.forEach(((r,t)=>{var e=$r(r.name),a=n.append("g"),s=a.insert("g").attr("class","branchLabel"),c=s.insert("g").attr("class","label branch-label");c.node()?.appendChild(e),e=e.getBBox();i=Ir(r.name,i,t,e,o),c.remove(),s.remove(),a.remove()})),Cr(n,sr,!1),er.showBranches&&Rr(n,e),Pr(n,sr),Cr(n,sr,!0),f.insertTitle(n,"gitTitleText",er.titleTopMargin??0,r.getDiagramTitle()),u(void 0,n,er.diagramPadding,er.useMaxWidth)}),"draw")},Gr=a((r=>`\n .commit-id,\n .commit-msg,\n .branch-label {\n fill: lightgrey;\n color: lightgrey;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n ${[0,1,2,3,4,5,6,7].map((t=>`\n .branch-label${t} { fill: ${r["gitBranchLabel"+t]}; }\n .commit${t} { stroke: ${r["git"+t]}; fill: ${r["git"+t]}; }\n .commit-highlight${t} { stroke: ${r["gitInv"+t]}; fill: ${r["gitInv"+t]}; }\n .label${t} { fill: ${r["git"+t]}; }\n .arrow${t} { stroke: ${r["git"+t]}; }\n `)).join("\n")}\n\n .branch {\n stroke-width: 1;\n stroke: ${r.lineColor};\n stroke-dasharray: 2;\n }\n .commit-label { font-size: ${r.commitLabelFontSize}; fill: ${r.commitLabelColor};}\n .commit-label-bkg { font-size: ${r.commitLabelFontSize}; fill: ${r.commitLabelBackground}; opacity: 0.5; }\n .tag-label { font-size: ${r.tagLabelFontSize}; fill: ${r.tagLabelColor};}\n .tag-label-bkg { fill: ${r.tagLabelBackground}; stroke: ${r.tagLabelBorder}; }\n .tag-hole { fill: ${r.textColor}; }\n\n .commit-merge {\n stroke: ${r.primaryColor};\n fill: ${r.primaryColor};\n }\n .commit-reverse {\n stroke: ${r.primaryColor};\n fill: ${r.primaryColor};\n stroke-width: 3;\n }\n .commit-highlight-outer {\n }\n .commit-highlight-inner {\n stroke: ${r.primaryColor};\n fill: ${r.primaryColor};\n }\n\n .arrow { stroke-width: 8; stroke-linecap: round; fill: none}\n .gitTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${r.textColor};\n }\n`),"getStyles"),Or={parser:rr,db:K,renderer:Ar,styles:Gr};export{Or as diagram};
|