diff --git a/5433.js b/5433.js new file mode 100644 index 0000000..cc1a831 --- /dev/null +++ b/5433.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkonsenui_v2_react_minimum=self.webpackChunkonsenui_v2_react_minimum||[]).push([[5433],{803:(t,a,e)=>{function r(t,a){t.accDescr&&a.setAccDescription?.(t.accDescr),t.accTitle&&a.setAccTitle?.(t.accTitle),t.title&&a.setDiagramTitle?.(t.title)}e.d(a,{S:()=>r}),(0,e(6009).K2)(r,"populateCommonDb")},5433:(t,a,e)=>{e.d(a,{diagram:()=>U});var r=e(803),l=e(7501),n=(e(9955),e(1360),e(2235),e(962),e(6979),e(9731),e(389)),o=(e(1265),e(3615),e(57)),i=(e(5070),e(772)),d=(e(8605),e(6009)),s=[],c=[...s],p=i.UI.visual,m=(0,d.K2)((()=>(0,o.$t)({...p,...(0,i.zj)().visual})),"getConfig"),x={getPages:(0,d.K2)((()=>c),"getPages"),addPage:(0,d.K2)((t=>{c.push(t)}),"addPage"),getConfig:m,clear:(0,d.K2)((()=>{(0,i.IU)(),c=[...s]}),"clear"),setAccTitle:i.SV,getAccTitle:i.iN,setDiagramTitle:i.ke,getDiagramTitle:i.ab,getAccDescription:i.m7,setAccDescription:i.EI},h=(0,d.K2)((t=>{(0,r.S)(t,x);for(const a of t.pages){const t=a.subDiagrams.map((t=>{switch(t.diagramType){case"array":return{type:"array",orientation:t.orientation,title:t.title,showIndex:t.showIndex,label:t.label,elements:t.elements.map((t=>({value:t.value,color:t.color,arrow:void 0!==t.arrowLabel&&null!==t.arrowLabel,arrowLabel:t.arrowLabel})))};case"matrix":return{type:"matrix",title:t.title,rows:t.rows.map((t=>({elements:t.elements.map((t=>({value:t.value,color:t.color,arrow:void 0!==t.arrowLabel&&null!==t.arrowLabel,arrowLabel:t.arrowLabel})))}))),showIndex:t.showIndex,label:t.label};case"stack":return{type:"stack",orientation:t.orientation,title:t.title,showIndex:t.showIndex,label:t.label,size:t.size,elements:t.elements.map((t=>({value:t.value,color:t.color,arrow:void 0!==t.arrowLabel&&null!==t.arrowLabel,arrowLabel:t.arrowLabel})))};case"tree":return{type:"tree",title:t.title,label:t.label,elements:t.elements.map((t=>({nodeId:t.nodeId,left:"None"==t.left?void 0:t.left,right:"None"==t.right?void 0:t.right,value:t.value,color:t.color,arrow:void 0!==t.arrowLabel&&null!==t.arrowLabel,arrowLabel:t.arrowLabel})))};case"graph":return{type:"graph",title:t.title,label:t.label,elements:t.elements.map((t=>{if("NodeDefinition"==t.$type)return{type:"node",nodeId:t.nodeId,value:t.value,color:t.color,arrow:void 0!==t.arrowLabel&&null!==t.arrowLabel,arrowLabel:t.arrowLabel,hidden:"true"==(t.hidden||"").toLowerCase()};if("EdgeDefinition"==t.$type)return{type:"edge",start:t.start,end:t.end,value:t.value,color:t.color};throw new Error("Unknown graph element type")}))};case"linkedList":return{type:"linkedList",title:t.title,label:t.label,elements:t.elements.map((t=>({value:t.value,color:t.color,arrow:!!t.arrowLabel,arrowLabel:t.arrowLabel})))};case"text":return{type:"text",title:t.title,elements:t.elements.map((t=>t.value))};default:throw new Error(`Unknown diagram type: ${t.diagramType}`)}}));x.addPage({subDiagrams:t})}}),"populate"),b={parse:async t=>{const a=await(0,l.q)("visual",t);i.Rm.debug(a),h(a)}},f=(0,d.K2)(((t,a=.6)=>{if(g(t))return t||"null";const e={black:"#000000",white:"#FFFFFF",red:"#FF0000",green:"#008000",blue:"#0000FF",yellow:"#FFFF00",cyan:"#00FFFF",magenta:"#FF00FF",gray:"#808080",grey:"#808080",maroon:"#800000",olive:"#808000",purple:"#800080",teal:"#008080",navy:"#000080",orange:"#FFA500",pink:"#FFC0CB",brown:"#A52A2A",aqua:"#00FFFF",lime:"#00FF00",gold:"#FFD700",silver:"#C0C0C0",beige:"#F5F5DC",coral:"#FF7F50",chocolate:"#D2691E",crimson:"#DC143C",indigo:"#4B0082",khaki:"#F0E68C",lavender:"#E6E6FA",orchid:"#DA70D6",plum:"#DDA0DD",salmon:"#FA8072",sienna:"#A0522D",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",azure:"#F0FFFF",ivory:"#FFFFF0",mintcream:"#F5FFFA",snow:"#FFFAFA",goldenrod:"#DAA520",tomato:"#FF6347",slateblue:"#6A5ACD",darkgreen:"#006400",darkblue:"#00008B",darkred:"#8B0000",darkorange:"#FF8C00",darkviolet:"#9400D3",darkkhaki:"#BDB76B",lightblue:"#ADD8E6",lightgreen:"#90EE90",lightcoral:"#F08080",lightgray:"#D3D3D3",lightgrey:"#D3D3D3"},r=t?t.toLowerCase():"";return r in e?w(e[r],a):"white"}),"getColor");function g(t){return!!t&&/^#([\dA-Fa-f]{3}){1,2}$/.test(t)}(0,d.K2)(g,"isValidHexColor");var w=(0,d.K2)(((t,a)=>(t=t.replace(/^#/,""),`rgba(${parseInt(t.slice(0,2),16)}, ${parseInt(t.slice(2,4),16)}, ${parseInt(t.slice(4,6),16)}, ${a})`)),"hexToRgba"),k=(0,d.K2)(((t,a,e,r,l)=>{t.append("defs").append("marker").attr("id","arrowhead").attr("viewBox","0 0 10 10").attr("refX","5").attr("refY","5").attr("markerWidth","6").attr("markerHeight","6").attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill","black"),a.title&&t.append("text").attr("x",100).attr("y",20).attr("fill",r.labelColor).attr("font-size","16").attr("dominant-baseline","hanging").attr("text-anchor","middle").attr("class","arrayDiagramTitle").text(a.title);const n=t.append("g").attr("class","component").attr("id",`component_${l}`).attr("transform",`translate(50, ${e+40})`);let o=0;if(a.elements.forEach(((t,e)=>{u(n,t,e,r,a.showIndex||!1,o),o+=1})),a.label){const t=160,e=100;n.append("text").attr("x",e).attr("y",t).attr("fill",r.labelColor).attr("font-size","16").attr("dominant-baseline","hanging").attr("text-anchor","middle").attr("class","arrayDiagramLabel").text(a.label)}}),"drawArrayDiagram"),u=(0,d.K2)(((t,a,e,{labelColor:r,labelFontSize:l},n,o)=>{const i=t.append("g");i.attr("class","unit").attr("id",`unit_${o}`);const d=40*e,s=f(a.color);if(a.arrow&&"null"!==a.arrowLabel){const t=10,e=40;i.append("line").attr("x1",d+20).attr("y1",t).attr("x2",d+20).attr("y2",e).attr("stroke","black").attr("stroke-width","1.5").attr("marker-end","url(#arrowhead)"),a.arrowLabel&&"null"!==a.arrowLabel&&i.append("text").attr("x",d+20).attr("y",t-20).attr("fill",r).attr("font-size","16").attr("dominant-baseline","hanging").attr("text-anchor","middle").attr("class","arrowContext").text(a.arrowLabel)}i.append("rect").attr("x",d).attr("y",50).attr("width",40).attr("height",40).style("fill",s).attr("stroke","#000000").attr("stroke-width","2px").attr("class","arrayElement"),i.append("text").attr("x",d+20).attr("y",70).attr("fill",r).attr("font-size","16").attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","elementLabel").text(a.value),n&&i.append("text").attr("x",d+20).attr("y",110).attr("fill",r).attr("font-size","16").attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","indexLabel").text(e)}),"drawElement"),y=(0,d.K2)(((t,a,e,r,l)=>{a.title;const n=t.append("g");n.attr("transform",`translate(0, ${e})`).attr("class","component").attr("id",`component_${l}`);const o=a.rows.length,i=Math.max(...a.rows.map((t=>t.elements.length)));if(a.title&&t.append("text").attr("x",50).attr("y",e).attr("fill",r.labelColor).attr("font-size",r.labelFontSize).attr("dominant-baseline","hanging").attr("text-anchor","start").attr("class","diagramTitle").text(a.title),a.rows.forEach(((t,a)=>{t.elements.forEach(((t,e)=>{L(n,t,a,e,r),D(n,a,e,r)}))})),a.label){const t=50*o+50,e=25*i;n.append("text").attr("x",e).attr("y",t).attr("fill",r.labelColor).attr("font-size",r.labelFontSize).attr("dominant-baseline","hanging").attr("text-anchor","middle").attr("class","arrayDiagramLabel").text(a.label)}a.showIndex&&F(n,o,i,r)}),"drawMatrixDiagram"),L=(0,d.K2)(((t,a,e,r,{labelColor:l,labelFontSize:n})=>{const o=t.append("g");o.attr("class","unit").attr("id",`unit_(${e},${r})`);const i=50*r,d=50*e,s=f(a.color);o.append("rect").attr("x",i).attr("y",d).attr("width",50).attr("height",50).style("fill",s).attr("stroke","#000000").attr("stroke-width","1.2px").attr("class","matrixElement"),o.append("text").attr("x",i+25).attr("y",d+25).attr("fill",l).attr("font-size",n).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","elementLabel").text(a.value.toString()),a.arrow&&"null"!==a.arrowLabel&&(o.append("circle").attr("cx",i+25).attr("cy",d+25).attr("r",23).attr("stroke","red").attr("stroke-width","2").attr("fill","none"),o.append("text").attr("x",i+52).attr("y",d+25).attr("fill","red").attr("font-size",n).attr("dominant-baseline","middle").attr("text-anchor","start").attr("class","arrowLabel").text(a.arrowLabel||""))}),"drawElement"),F=(0,d.K2)(((t,a,e,{labelColor:r,labelFontSize:l})=>{const n=t.append("g");for(let t=0;t{const n=50*e,o=50*a;t.append("g").append("rect").attr("x",n).attr("y",o).attr("width",50).attr("height",50).attr("stroke",r).attr("stroke-width",l).attr("fill","none")}),"drawGrid"),v=(0,d.K2)(((t,a,e,r)=>{t.append("defs").append("marker").attr("id","arrowhead").attr("viewBox","0 0 10 10").attr("refX","5").attr("refY","5").attr("markerWidth","6").attr("markerHeight","6").attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill","black");const l=t.append("g");l.attr("transform",`translate(0, ${e})`).attr("class","component").attr("id",`component_${r}`);const n=40*a.size;E(l,50,0,70,n);let o=0;if(a.elements.forEach(((t,e)=>{const r=a.size-a.elements.length+e;z(l,t,r,o),o+=1})),a.label){const t=n+40+20,e=85;l.append("text").attr("x",e).attr("y",t).attr("fill","black").attr("font-size","16").attr("dominant-baseline","hanging").attr("text-anchor","middle").attr("class","stackDiagramLabel").text(a.label)}}),"drawStackDiagram"),z=(0,d.K2)(((t,a,e,r)=>{const l=t.append("g");l.attr("class","unit").attr("id",`unit_${r}`);const n=40*e,o=f(a.color);if(l.append("rect").attr("x",50).attr("y",n).attr("width",70).attr("height",40).style("fill",o).attr("stroke","black").attr("stroke-width","1").attr("class","stackElement"),a.arrow&&"null"!==a.arrowLabel){const t=130,e=t+40;l.append("line").attr("x1",e).attr("y1",n+20).attr("x2",t).attr("y2",n+20).attr("stroke","black").attr("stroke-width","1.5").attr("marker-end","url(#arrowhead)"),a.arrowLabel&&"null"!==a.arrowLabel&&l.append("text").attr("x",e+10).attr("y",n+20).attr("fill","black").attr("font-size","16").attr("dominant-baseline","middle").attr("text-anchor","start").attr("class","arrowContext").text(a.arrowLabel)}l.append("text").attr("x",85).attr("y",n+20).attr("fill","black").attr("font-size","16").attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","elementLabel").text(a.value)}),"drawElement"),E=(0,d.K2)(((t,a,e,r,l)=>{const n="#000000";t.append("line").attr("x1",a).attr("y1",e).attr("x2",a).attr("y2",e+l).attr("stroke",n).attr("stroke-width",2),t.append("line").attr("x1",a+r).attr("y1",e).attr("x2",a+r).attr("y2",e+l).attr("stroke",n).attr("stroke-width",2),t.append("line").attr("x1",a).attr("y1",e+l).attr("x2",a+r).attr("y2",e+l).attr("stroke",n).attr("stroke-width",2)}),"drawFramework"),K=(0,d.K2)(((t,a,e,r)=>{const l=t.append("g");l.attr("transform",`translate(0, ${e})`).attr("class","component").attr("id",`component_${r}`),l.append("defs").append("marker").attr("id","arrowhead").attr("viewBox","0 0 10 10").attr("refX","5").attr("refY","5").attr("markerWidth","4").attr("markerHeight","5").attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill","black");const n=a.elements.filter((t=>"node"==t.type)),o=new Set(n.filter((t=>t.hidden)).map((t=>t.nodeId))),i=n.filter((t=>!t.hidden)),d=a.elements.filter((t=>"edge"==t.type&&!o.has(t.start)&&!o.has(t.end))),s=$(n||[]);if(d&&d.forEach((t=>{C(l,t,s)})),i){let t=0;i.forEach((a=>{I(l,a,s[a.nodeId],t),t+=1}))}if(a.label){const t=i?100*Math.ceil(i.length/3)+70:100,e=150;l.append("text").attr("x",e).attr("y",t).attr("fill","black").attr("font-size","16").attr("dominant-baseline","hanging").attr("text-anchor","middle").attr("class","graphDiagramLabel").text(a.label)}}),"drawGraphDiagram"),$=(0,d.K2)((t=>{const a={},e=2*Math.PI/t.length;return t.forEach(((t,r)=>{const l=r*e;a[t.nodeId]={x:150+100*Math.cos(l),y:150+100*Math.sin(l)}})),a}),"calculateNodePositions"),I=(0,d.K2)(((t,a,e,r)=>{if(a.hidden)return;const l=e.x,n=e.y,o=f(a.color),i=t.append("g");if(i.attr("class","unit").attr("id",`unit_${r}`),i.append("circle").attr("cx",l).attr("cy",n).attr("r",20).style("fill",o).attr("stroke","black").attr("stroke-width","1").attr("class","graphNode"),i.append("text").attr("x",l).attr("y",n).attr("dy",".35em").attr("fill","black").attr("font-size","16").attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","nodeLabel").text(a.value||a.nodeId),a.arrow&&"null"!==a.arrowLabel){const t=l+45,e=l+25;i.append("line").attr("x1",t).attr("y1",n).attr("x2",e).attr("y2",n).attr("stroke","black").attr("stroke-width","2").attr("marker-end","url(#arrowhead)"),i.append("text").attr("x",t+5).attr("y",n).attr("fill","black").attr("font-size","14").attr("dominant-baseline","middle").attr("text-anchor","start").attr("class","arrowLabel").text(a.arrowLabel||"")}}),"drawNode"),C=(0,d.K2)(((t,a,e)=>{const r=e[a.start],l=e[a.end];if(r&&l){const{startX:e,startY:n,endX:o,endY:i}=A(r,l),d=a.color||"black";t.append("line").attr("x1",e||0).attr("y1",n||0).attr("x2",o||0).attr("y2",i||0).attr("stroke",d).attr("stroke-width","2"),a.value&&t.append("text").attr("x",(e+o)/2).attr("y",(n+i)/2).attr("fill","black").attr("font-size","16").attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","edgeLabel").text(a.value)}}),"drawEdge"),A=(0,d.K2)(((t,a)=>{const e=a.x-t.x,r=a.y-t.y,l=Math.sqrt(e*e+r*r),n=20*e/l,o=20*r/l;return{startX:t.x+n,startY:t.y+o,endX:a.x-n,endY:a.y-o}}),"calculateEdgePosition"),_=(0,d.K2)(((t,a,e,r)=>{const l=t.append("g");l.attr("transform",`translate(0, ${e})`).attr("class","component").attr("id",`component_${r}`),l.append("defs").append("marker").attr("id","arrowhead").attr("viewBox","0 0 10 10").attr("refX","5").attr("refY","5").attr("markerWidth","4").attr("markerHeight","5").attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill","black");const n=a.elements||[],o=S(n),i=M(n);if(o&&o.forEach((t=>{P(l,t,i)})),n){let t=0;n.forEach((a=>{B(l,a,i[a.nodeId],t),t+=1}))}if(a.label){const t=n?100*Math.ceil(n.length/3)+70:100,e=150;l.append("text").attr("x",e).attr("y",t).attr("fill","black").attr("font-size","16").attr("dominant-baseline","hanging").attr("text-anchor","middle").attr("class","treeDiagramLabel").text(a.label)}}),"drawTreeDiagram"),M=(0,d.K2)((t=>{const a={},e=T(t),r=e>2?100:70,l=(0,d.K2)(((n,o,i)=>{const d=r-i*(r/e),s=o,c=0+100*i;a[n.nodeId]={x:s,y:c};const p=t.find((t=>t.nodeId===n.left)),m=t.find((t=>t.nodeId===n.right));p&&l(p,s-d,i+1),m&&l(m,s+d,i+1)}),"calculatePosition"),n=t.find((t=>!t.parentId));return n&&l(n,150,0),a}),"calculateNodePositions"),T=(0,d.K2)((t=>{const a=(0,d.K2)(((e,r)=>{const l=t.find((t=>t.nodeId===e.left)),n=t.find((t=>t.nodeId===e.right)),o=l?a(l,r+1):r,i=n?a(n,r+1):r;return Math.max(o,i)}),"findDepth"),e=t.find((t=>!t.parentId));return e?a(e,0):0}),"calculateMaxDepth"),S=(0,d.K2)((t=>{const a=[];return t.forEach((t=>{t.left&&a.push({start:t.nodeId,end:t.left}),t.right&&a.push({start:t.nodeId,end:t.right})})),a}),"calculateTreeEdges"),B=(0,d.K2)(((t,a,e,r)=>{const l=e.x,n=e.y,o=f(a.color),i=t.append("g");if(i.attr("class","unit").attr("id",`unit_${r}`),i.append("circle").attr("cx",l).attr("cy",n).attr("r",20).style("fill",o).attr("stroke","black").attr("stroke-width","1").attr("class","treeNode"),i.append("text").attr("x",l).attr("y",n).attr("dy",".35em").attr("fill","black").attr("font-size","16").attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","nodeLabel").text(a.value||a.nodeId),a.arrow&&"null"!==a.arrowLabel){const t=l+45,e=l+25;i.append("line").attr("x1",t).attr("y1",n).attr("x2",e).attr("y2",n).attr("stroke","black").attr("stroke-width","2").attr("marker-end","url(#arrowhead)"),i.append("text").attr("x",t+5).attr("y",n).attr("fill","black").attr("font-size","16").attr("dominant-baseline","middle").attr("text-anchor","start").attr("class","arrowLabel").text(a.arrowLabel)}}),"drawNode"),P=(0,d.K2)(((t,a,e)=>{const r=e[a.start],l=e[a.end];if(r&&l){const{startX:e,startY:n,endX:o,endY:i}=X(r,l),d=a.color||"black";t.append("line").attr("x1",e).attr("y1",n).attr("x2",o).attr("y2",i).attr("stroke",d).attr("stroke-width","2"),a.value&&t.append("text").attr("x",(e+o)/2).attr("y",(n+i)/2).attr("fill","black").attr("font-size","16").attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","edgeLabel").text(a.value)}}),"drawEdge"),X=(0,d.K2)(((t,a)=>{const e=a.x-t.x,r=a.y-t.y,l=Math.sqrt(e*e+r*r),n=20*e/l,o=20*r/l;return{startX:t.x+n,startY:t.y+o,endX:a.x-n,endY:a.y-o}}),"calculateEdgePosition"),Y=(0,d.K2)(((t,a,e,r)=>{const l=t.append("g");l.attr("transform",`translate(0, ${e})`).attr("class","component").attr("id",`component_${r}`),l.append("defs").append("marker").attr("id","arrowhead_node").attr("viewBox","0 0 10 10").attr("refX","5").attr("refY","5").attr("markerWidth","5").attr("markerHeight","6").attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill","black"),l.append("defs").append("marker").attr("id","arrowhead").attr("viewBox","0 0 10 10").attr("refX","5").attr("refY","5").attr("markerWidth","3").attr("markerHeight","5").attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill","black");const n=a.elements,o=N(n||[]);let i=0;if(n&&n.forEach(((t,a)=>{W(l,t,o[a],a{const a=[];return t.forEach(((t,e)=>{a.push({x:50+120*e,y:50})})),a}),"calculateNodePositions"),W=(0,d.K2)(((t,a,e,r,l)=>{const n=e.x,o=e.y,i=f(a.color),d=t.append("g");if(d.attr("class","unit").attr("id",`unit_${l}`),d.append("rect").attr("x",n).attr("y",o).attr("width",60).attr("height",30).style("fill",i).attr("stroke","black").attr("stroke-width","1").attr("class","linkedListNode"),d.append("text").attr("x",n+30).attr("y",o+15).attr("dy",".35em").attr("fill","black").attr("font-size","18").attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","nodeLabel").text(a.value),"null"!==a.arrowLabel){const t=o-30,e=o-10;d.append("line").attr("x1",n+30).attr("y1",t).attr("x2",n+30).attr("y2",e).attr("stroke","black").attr("stroke-width","2").attr("marker-end","url(#arrowhead)"),d.append("text").attr("x",n+30).attr("y",t-10).attr("fill","black").attr("font-size","16").attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","arrowLabel").text(a.arrowLabel||"")}r&&d.append("line").attr("x1",n+60).attr("y1",o+15).attr("x2",n+60+55).attr("y2",o+15).attr("stroke","black").attr("stroke-width","2").attr("marker-end","url(#arrowhead_node)")}),"drawNode"),H=(0,d.K2)(((t,a,e,r)=>{const l=t.append("g");l.attr("transform",`translate(0, ${e})`).attr("class","component").attr("id",`component_${r}`);let n=0,o=0;if(a.elements.forEach((t=>{n=q(l,t,n,o),o+=1})),a.label){const t=n+20,e=50;l.append("text").attr("x",e).attr("y",t).attr("fill","black").attr("font-size","16").attr("dominant-baseline","hanging").attr("text-anchor","middle").attr("class","textDiagramLabel").text(a.label)}}),"drawTextDiagram"),q=(0,d.K2)(((t,a,e,r)=>{const l=t.append("g").attr("class","unit").attr("id",`unit_${r}`),n=a.split("\n");return n.forEach(((t,a)=>{const r=e+20*a;l.append("text").attr("x",50).attr("y",r).attr("fill","black").attr("font-size","20").attr("dominant-baseline","hanging").attr("class","textElement").text(t)})),e+20*n.length}),"drawElement"),U={parser:b,db:x,renderer:{draw:(0,d.K2)(((t,a,e,r)=>{const l=r.db,o=l.getConfig(),s=l.getPages(),c=l.getDiagramTitle(),p=(0,n.D)(a),m=(0,d.K2)(((t,a,e)=>{const r=t.append("g").attr("id",`page${e}`).attr("class","page").attr("display",0===e?"inline":"none");c&&r.append("text").text(c).attr("x",500).attr("y",25).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","pageTitle");let l=50,n=0;for(const t of a.subDiagrams)switch(t.type){case"array":k(r,t,l,o,n),n+=1,l+=250;break;case"matrix":y(r,t,l,o,n),n+=1,l+=250;break;case"stack":v(r,t,l,n),n+=1,l+=250;break;case"graph":K(r,t,l,n),n+=1,l+=250;break;case"tree":_(r,t,l,n),n+=1,l+=250;break;case"linkedList":Y(r,t,l,n),n+=1,l+=250;break;case"text":H(r,t,l,n),n+=1,l+=250;break;default:throw new Error(`Unknown diagram type: ${t.type}`)}}),"drawPage");p.attr("viewBox","0 0 1000 800"),(0,i.a$)(p,800,1e3,o.useMaxWidth),s.forEach(((t,a)=>{m(p,t,a)}))}),"draw")},styles:(0,d.K2)(((t={})=>(i.Rm.debug({options:t}),`\n .element {\n font-size: ${t.array?.elementFontSize??"10px"};\n fill: ${t.array?.valueColor??"black"};\n }\n .element.index {\n fill: ${t.array?.indexColor??"black"};\n }\n .element {\n stroke: ${t.array?.elementStrokeColor??"black"};\n stroke-width: ${t.array?.elementStrokeWidth??"1"};\n fill: ${t.array?.elementFillColor??"#efefef"};\n }\n `)),"styles")}}}]); \ No newline at end of file diff --git a/app.js b/app.js index 8233400..b303cf8 100644 --- a/app.js +++ b/app.js @@ -1,2 +1,2 @@ /*! For license information please see app.js.LICENSE.txt */ -(self.webpackChunkonsenui_v2_react_minimum=self.webpackChunkonsenui_v2_react_minimum||[]).push([[3524],{3895:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";function findLastDrawCoveringIndex(t,e){var n=t.draw,r=null;if(!n)return console.log("draw command is null!"),null;for(var l=0;l=i.start&&e<=i.end&&(r=n[l])}return r}function evaluateExpression(string1,string2,number){var replacedString=string1.replace(new RegExp(string2,"g"),number);return eval(replacedString)}function findComponentIdxByName(t,e){for(var n=t.data,r=0;revaluateExpression,el:()=>findComponentIdxByName,rO:()=>findLastDrawCoveringIndex})},6897:(t,e,n)=>{"use strict";var r=n(758),l=n(9576),i=n(9673),o=n(1393),a=n(972),s={palette:{mode:"dark",primary:{main:"#90caf9"},secondary:{main:"#f48fb1"}},components:{MuiAccordion:{defaultProps:{square:!0,TransitionProps:{unmountOnExit:!0}},styleOverrides:{root:{border:"1px solid rgba(255, 255, 255, .125)",boxShadow:"none",transition:(0,a.A)().transitions.create("margin-left"),"&:not(:last-child)":{borderBottom:0},"&:before":{display:"none"},"&.Mui-expanded":{margin:"auto"},"&.Mui-disabled":{marginLeft:32}}}},MuiAccordionSummary:{styleOverrides:{root:{borderBottom:"1px solid rgba(255, 255, 255, .125)",minHeight:56,"&.Mui-expanded":{minHeight:56}},content:{alignItems:"center",justifyContent:"space-between","&.Mui-expanded":{margin:"12px 0"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:"#212121"}}},MuiDrawer:{styleOverrides:{docked:{"& .MuiPaper-root":{position:"static"}},paper:{}}},MuiPopover:{styleOverrides:{paper:{backgroundColor:"#121212"}}},MuiListItemButton:{styleOverrides:{root:{"&.Mui-selected":{borderLeft:"2px solid #3399ff",color:"#66b3ff",backgroundColor:"#1d2126"}}}}},typography:{fontSize:14}};const u=(0,a.A)(s);var c=n(5686),h=n(1191),d=n(3989),f=n(7749),p=n(4805),g=n(1891),m=n(3325),y=n(7230),b=n(7366);function _(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,l,i,o,a=[],s=!0,u=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(a.push(r.value),a.length!==e);s=!0);}catch(t){u=!0,l=t}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw l}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return x(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n0?n.map((function(t,e){return r.createElement(p.A,{key:t.timestamp,selected:o===e,onClick:function(){l(t),a(e)}},r.createElement(g.A,{sx:{pl:2}},new Date(t.timestamp).toLocaleString()))})):r.createElement(g.A,{sx:{pl:2}},"No saved diagrams")))))};var v=n(1275);function w(t){t.languages.register({id:"customLang"});var e=new RegExp("\\b(".concat(["page","show","visslides","data","draw"].join("|"),")\\b")),n=[":",":=","=","*",",","@","&","(",")","[","]","{","}"].map((function(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")})),r=new RegExp("(".concat(n.join("|"),")"),"g"),l=new RegExp("\\b(".concat(["array","matrix","linkedlist","stack","tree","graph","text"].join("|"),")\\b")),i=new RegExp("\\b(".concat(["id","value","color","arrow","hidden","structure"].join("|"),")\\b"));t.languages.setMonarchTokensProvider("customLang",{tokenizer:{root:[[/\[error\].*/,"custom-error"],[/\[warning\].*/,"custom-warning"],[/\[info\].*/,"custom-info"],[/\[debug\].*/,"custom-debug"],[/\b(digit|number)\b/,"custom-number"],[/\/\/.*$/,"comment"],[/$[ \t]*.*/,"inlinecomment"],[e,"keyword"],[l,"component"],[i,"attribute"],[/\b[a-zA-Z_][a-zA-Z0-9_]*\b/,"variable"],[/\b\d+(\.\d+)?\b/,"number"],[r,"symbol"]]}}),t.editor.defineTheme("customTheme",{base:"vs-dark",inherit:!0,rules:[{token:"custom-error",foreground:"ff0000",fontStyle:"bold"},{token:"custom-warning",foreground:"FFA500",fontStyle:"italic"},{token:"custom-info",foreground:"0000ff"},{token:"custom-debug",foreground:"008800"},{token:"custom-number",foreground:"800080"},{token:"comment",foreground:"6a9955"},{token:"inlinecomment",foreground:"6a9955"},{token:"variable",foreground:"dcdcaa"},{token:"number",foreground:"b5cea8"},{token:"keyword",foreground:"569cd6"},{token:"symbol",foreground:"ffcc00"},{token:"component",foreground:"4ec9b0"},{token:"attribute",foreground:"d19a66"}],colors:{"editor.background":"#1E1E1E","editor.foreground":"#FFFFFF","editorCursor.foreground":"#A7A7A7","editor.lineHighlightBackground":"#333333","editorLineNumber.foreground":"#858585","editor.selectionBackground":"#264F78","editor.inactiveSelectionBackground":"#3A3D41"}})}const k=function(t){var e=t.value,n=void 0===e?"":e,l=t.onChange,i=void 0===l?function(){}:l;return v.wG.init().then((function(t){w(t)})),r.createElement(v.Ay,{height:"100%",language:"customLang",value:n,onChange:function(t){return i(t)},theme:"customTheme",options:{automaticLayout:!0,fontFamily:"Consolas",fontSize:15,lineNumbers:"on",minimap:{enabled:!1}}})},T=function(t){var e=t.value,n=void 0===e?"":e,l=t.onChange,i=void 0===l?function(){}:l;return v.wG.init().then((function(t){w(t)})),r.createElement(v.Ay,{height:"100%",language:"customLang",value:n,onChange:function(t){return i(t)},theme:"customTheme",options:{automaticLayout:!0,fontFamily:"Consolas",fontSize:14,lineNumbers:"on",minimap:{enabled:!1}}})};var S=n(6220),K=n(7463),A=n(235),B=n(9967),F=n(6607),E=n(9007);const L=function(t){var e=t.code1,n=t.mermaidCode,l=t.editor1Height,i=t.leftWidth,o=t.handleEditor1Change,a=t.setEditor1Height,s=t.setMermaidCode,u=t.dslEditorEditable,c=t.setDslEditorEditable;return r.createElement("div",{className:"CodeEditorsContent",style:{width:i,display:"flex",flexDirection:"column",overflow:"hidden",position:"relative"}},r.createElement(h.A,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",px:2}},r.createElement(K.A,{variant:"overline"},"Code Editor"),r.createElement(A.A,{title:u?"Lock Editor":"Unlock Editor"},r.createElement(B.A,{onClick:function(){c((function(t){return!t}))},size:"small"},u?r.createElement(E.A,{sx:{fontSize:18}}):r.createElement(F.A,{sx:{fontSize:18}})))),r.createElement(S.ResizableBox,{height:l,width:1/0,resizeHandles:["s"],onResizeStop:function(t,e){return a(e.size.height)},minConstraints:[1/0,100],maxConstraints:[1/0,window.innerHeight-100],handle:r.createElement("span",{style:{width:"100%",height:"4px",borderTop:"1px solid #444",cursor:"row-resize",position:"absolute",bottom:0,left:0}})},r.createElement("div",{style:{height:"100%",margin:0,padding:0}},r.createElement(k,{value:e,onChange:o}))),r.createElement("div",{style:{height:"calc(100% - ".concat(l,"px)"),overflow:"hidden"}},r.createElement(K.A,{variant:"overline",sx:{pl:2}},"Mermaid Editor"),r.createElement(T,{value:n,onChange:s})))};var M=n(9700),O=n(389),$=n(6404),I=n(3615),D=n(57),N=(n(5070),n(772)),P=(n(8605),n(6009)),j="comm",z="rule",q="decl",R=Math.abs,W=String.fromCharCode;function U(t){return t.trim()}function H(t,e,n){return t.replace(e,n)}function Y(t,e,n){return t.indexOf(e,n)}function G(t,e){return 0|t.charCodeAt(e)}function V(t,e,n){return t.slice(e,n)}function J(t){return t.length}function X(t){return t.length}function Z(t,e){return e.push(t),t}(0,P.K2)(U,"trim"),(0,P.K2)(H,"replace"),(0,P.K2)(Y,"indexof"),(0,P.K2)(G,"charat"),(0,P.K2)(V,"substr"),(0,P.K2)(J,"strlen"),(0,P.K2)(X,"sizeof"),(0,P.K2)(Z,"append");var Q=1,tt=1,et=0,nt=0,rt=0,lt="";function it(t,e,n,r,l,i,o,a){return{value:t,root:e,parent:n,type:r,props:l,children:i,line:Q,column:tt,length:o,return:"",siblings:a}}function ot(){return rt}function at(){return rt=nt>0?G(lt,--nt):0,tt--,10===rt&&(tt=1,Q--),rt}function st(){return rt=nt2||dt(rt)>3?"":" "}function yt(t,e){for(;--e&&st()&&!(rt<48||rt>102||rt>57&&rt<65||rt>70&&rt<97););return ht(t,ct()+(e<6&&32==ut()&&32==st()))}function bt(t){for(;st();)switch(rt){case t:return nt;case 34:case 39:34!==t&&39!==t&&bt(rt);break;case 40:41===t&&bt(t);break;case 92:st()}return nt}function _t(t,e){for(;st()&&t+rt!==57&&(t+rt!==84||47!==ut()););return"/*"+ht(e,nt-1)+"*"+W(47===t?t:st())}function xt(t){for(;!dt(ut());)st();return ht(t,nt)}function Ct(t){return pt(vt("",null,null,null,[""],t=ft(t),0,[0],t))}function vt(t,e,n,r,l,i,o,a,s){for(var u=0,c=0,h=o,d=0,f=0,p=0,g=1,m=1,y=1,b=0,_="",x=l,C=i,v=r,w=_;m;)switch(p=b,b=st()){case 40:if(108!=p&&58==G(w,h-1)){-1!=Y(w+=H(gt(b),"&","&\f"),"&\f",R(u?a[u-1]:0))&&(y=-1);break}case 34:case 39:case 91:w+=gt(b);break;case 9:case 10:case 13:case 32:w+=mt(p);break;case 92:w+=yt(ct()-1,7);continue;case 47:switch(ut()){case 42:case 47:Z(kt(_t(st(),ct()),e,n,s),s);break;default:w+="/"}break;case 123*g:a[u++]=J(w)*y;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+c:-1==y&&(w=H(w,/\f/g,"")),f>0&&J(w)-h&&Z(f>32?Tt(w+";",r,n,h-1,s):Tt(H(w," ","")+";",r,n,h-2,s),s);break;case 59:w+=";";default:if(Z(v=wt(w,e,n,u,c,l,a,_,x=[],C=[],h,i),i),123===b)if(0===c)vt(w,e,v,v,x,i,h,a,C);else switch(99===d&&110===G(w,3)?100:d){case 100:case 108:case 109:case 115:vt(t,v,v,r&&Z(wt(t,v,v,0,0,l,a,_,l,x=[],h,C),C),l,C,h,a,r?x:C);break;default:vt(w,v,v,v,[""],C,0,a,C)}}u=c=f=0,g=y=1,_=w="",h=o;break;case 58:h=1+J(w),f=p;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==at())continue;switch(w+=W(b),b*g){case 38:y=c>0?1:(w+="\f",-1);break;case 44:a[u++]=(J(w)-1)*y,y=1;break;case 64:45===ut()&&(w+=gt(st())),d=ut(),c=h=J(_=w+=xt(ct())),b++;break;case 45:45===p&&2==J(w)&&(g=0)}}return i}function wt(t,e,n,r,l,i,o,a,s,u,c,h){for(var d=l-1,f=0===l?i:[""],p=X(f),g=0,m=0,y=0;g0?f[b]+" "+_:H(_,/&\f/g,f[b])))&&(s[y++]=x);return it(t,e,n,0===l?z:a,s,u,c,h)}function kt(t,e,n,r){return it(t,e,n,j,W(ot()),V(t,2,-2),0,r)}function Tt(t,e,n,r,l){return it(t,e,n,q,V(t,0,r),V(t,r+1,-1),r,l)}function St(t,e){for(var n="",r=0;r/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await n.e(8544).then(n.bind(n,8544));return{id:"c4",diagram:t}}),"loader")},Bt="flowchart",Ft={id:Bt,detector:(0,P.K2)(((t,e)=>"dagre-wrapper"!==e?.flowchart?.defaultRenderer&&"elk"!==e?.flowchart?.defaultRenderer&&/^\s*graph/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(1265),n.e(3723),n.e(2725),n.e(8396),n.e(3706),n.e(9199),n.e(4822)]).then(n.bind(n,4822));return{id:Bt,diagram:t}}),"loader")},Et="flowchart-v2",Lt={id:Et,detector:(0,P.K2)(((t,e)=>"dagre-d3"!==e?.flowchart?.defaultRenderer&&"elk"!==e?.flowchart?.defaultRenderer&&(!(!/^\s*graph/.test(t)||"dagre-wrapper"!==e?.flowchart?.defaultRenderer)||/^\s*flowchart/.test(t))),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(1265),n.e(3723),n.e(2725),n.e(8396),n.e(3706),n.e(9199),n.e(3478)]).then(n.bind(n,3478));return{id:Et,diagram:t}}),"loader")},Mt={id:"er",detector:(0,P.K2)((t=>/^\s*erDiagram/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(1265),n.e(3723),n.e(1381)]).then(n.bind(n,3762));return{id:"er",diagram:t}}),"loader")},Ot="gitGraph",$t={id:Ot,detector:(0,P.K2)((t=>/^\s*gitGraph/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await n.e(9872).then(n.bind(n,9872));return{id:Ot,diagram:t}}),"loader")},It="gantt",Dt={id:It,detector:(0,P.K2)((t=>/^\s*gantt/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await n.e(3640).then(n.bind(n,3640));return{id:It,diagram:t}}),"loader")},Nt="info",Pt={id:Nt,detector:(0,P.K2)((t=>/^\s*info/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(1265),n.e(4549),n.e(7581)]).then(n.bind(n,7581));return{id:Nt,diagram:t}}),"loader")},jt={id:"pie",detector:(0,P.K2)((t=>/^\s*pie/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(1265),n.e(4549),n.e(9158)]).then(n.bind(n,9158));return{id:"pie",diagram:t}}),"loader")},zt="quadrantChart",qt={id:zt,detector:(0,P.K2)((t=>/^\s*quadrantChart/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await n.e(7194).then(n.bind(n,7194));return{id:zt,diagram:t}}),"loader")},Rt="xychart",Wt={id:Rt,detector:(0,P.K2)((t=>/^\s*xychart-beta/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(2725),n.e(3474)]).then(n.bind(n,3474));return{id:Rt,diagram:t}}),"loader")},Ut="requirement",Ht={id:Ut,detector:(0,P.K2)((t=>/^\s*requirement(Diagram)?/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(1265),n.e(3723),n.e(9856)]).then(n.bind(n,9856));return{id:Ut,diagram:t}}),"loader")},Yt="sequence",Gt={id:Yt,detector:(0,P.K2)((t=>/^\s*sequenceDiagram/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await n.e(5171).then(n.bind(n,5171));return{id:Yt,diagram:t}}),"loader")},Vt="class",Jt={id:Vt,detector:(0,P.K2)(((t,e)=>"dagre-wrapper"!==e?.class?.defaultRenderer&&/^\s*classDiagram/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(1265),n.e(3723),n.e(5877),n.e(7606)]).then(n.bind(n,7606));return{id:Vt,diagram:t}}),"loader")},Xt="classDiagram",Zt={id:Xt,detector:(0,P.K2)(((t,e)=>!(!/^\s*classDiagram/.test(t)||"dagre-wrapper"!==e?.class?.defaultRenderer)||/^\s*classDiagram-v2/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(1265),n.e(3723),n.e(2725),n.e(8396),n.e(3706),n.e(5877),n.e(6803)]).then(n.bind(n,6803));return{id:Xt,diagram:t}}),"loader")},Qt="state",te={id:Qt,detector:(0,P.K2)(((t,e)=>"dagre-wrapper"!==e?.state?.defaultRenderer&&/^\s*stateDiagram/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(1265),n.e(3723),n.e(1269),n.e(2807)]).then(n.bind(n,2807));return{id:Qt,diagram:t}}),"loader")},ee="stateDiagram",ne={id:ee,detector:(0,P.K2)(((t,e)=>!!/^\s*stateDiagram-v2/.test(t)||!(!/^\s*stateDiagram/.test(t)||"dagre-wrapper"!==e?.state?.defaultRenderer)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(1265),n.e(3723),n.e(2725),n.e(8396),n.e(3706),n.e(1269),n.e(8953)]).then(n.bind(n,8953));return{id:ee,diagram:t}}),"loader")},re="journey",le={id:re,detector:(0,P.K2)((t=>/^\s*journey/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await n.e(3456).then(n.bind(n,3456));return{id:re,diagram:t}}),"loader")},ie={draw:(0,P.K2)(((t,e,n)=>{N.Rm.debug("rendering svg for syntax error\n");const r=(0,O.D)(e),l=r.append("g");r.attr("viewBox","0 0 2412 512"),(0,N.a$)(r,100,512,!0),l.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),l.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),l.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),l.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),l.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),l.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),l.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),l.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${n}`)}),"draw")},oe=ie,ae={db:{},renderer:ie,parser:{parse:()=>{}}},se="flowchart-elk",ue={id:se,detector:(0,P.K2)(((t,e)=>!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&"elk"===e?.flowchart?.defaultRenderer)&&(setTimeout((()=>N.Rm.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](link) for more details. This diagram will be rendered using `dagre` layout as a fallback.")),500),!0)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(1265),n.e(3723),n.e(2725),n.e(8396),n.e(3706),n.e(9199),n.e(3478)]).then(n.bind(n,3478));return{id:se,diagram:t}}),"loader")},ce="timeline",he={id:ce,detector:(0,P.K2)((t=>/^\s*timeline/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await n.e(3796).then(n.bind(n,3796));return{id:ce,diagram:t}}),"loader")},de="mindmap",fe={id:de,detector:(0,P.K2)((t=>/^\s*mindmap/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(2725),n.e(1450)]).then(n.bind(n,1450));return{id:de,diagram:t}}),"loader")},pe="sankey",ge={id:pe,detector:(0,P.K2)((t=>/^\s*sankey-beta/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await n.e(9156).then(n.bind(n,9156));return{id:pe,diagram:t}}),"loader")},me="packet",ye={id:me,detector:(0,P.K2)((t=>/^\s*packet-beta/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(1265),n.e(4549),n.e(2842)]).then(n.bind(n,2842));return{id:me,diagram:t}}),"loader")},be="array",_e={id:be,detector:(0,P.K2)((t=>/^\s*array/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(1265),n.e(4549),n.e(2763)]).then(n.bind(n,2763));return{id:be,diagram:t}}),"loader")},xe="matrix",Ce={id:xe,detector:(0,P.K2)((t=>/^\s*matrix/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(1265),n.e(4549),n.e(3438)]).then(n.bind(n,3438));return{id:xe,diagram:t}}),"loader")},ve="testslides",we={id:ve,detector:(0,P.K2)((t=>/^\s*testslides/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(1265),n.e(4549),n.e(6756)]).then(n.bind(n,6756));return{id:ve,diagram:t}}),"loader")},ke="visslides",Te={id:ke,detector:(0,P.K2)((t=>/^\s*visslides/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(1265),n.e(4549),n.e(5932)]).then(n.bind(n,5932));return{id:ke,diagram:t}}),"loader")},Se="visual",Ke={id:Se,detector:(0,P.K2)((t=>/^\s*visual/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(1265),n.e(4549),n.e(7990)]).then(n.bind(n,7990));return{id:Se,diagram:t}}),"loader")},Ae="block",Be={id:Ae,detector:(0,P.K2)((t=>/^\s*block-beta/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(1265),n.e(2725),n.e(8396),n.e(373)]).then(n.bind(n,373));return{id:Ae,diagram:t}}),"loader")},Fe=!1,Ee=(0,P.K2)((()=>{Fe||(Fe=!0,(0,N.Js)("error",ae,(t=>"error"===t.toLowerCase().trim())),(0,N.Js)("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},(t=>t.toLowerCase().trimStart().startsWith("---"))),(0,N.Xd)(At,Zt,Jt,Mt,Dt,Pt,jt,Ht,Gt,ue,Lt,Ft,fe,he,$t,ne,te,le,qt,ge,ye,Wt,Be,_e,Ce,we,Te,Ke))}),"addDiagrams"),Le=class t{constructor(t,e,n,r,l){this.type=t,this.text=e,this.db=n,this.parser=r,this.renderer=l}static{(0,P.K2)(this,"Diagram")}static async fromText(e,n={}){const r=(0,N.zj)(),l=(0,N.Ch)(e,r);e=(0,D.C4)(e)+"\n";try{(0,N.Gs)(l)}catch(t){const e=(0,N.J$)(l);if(!e)throw new N.C0(`Diagram ${l} not found.`);const{id:n,diagram:r}=await e();(0,N.Js)(n,r)}const{db:i,parser:o,renderer:a,init:s}=(0,N.Gs)(l);return o.parser&&(o.parser.yy=i),i.clear?.(),s?.(r),n.title&&i.setDiagramTitle?.(n.title),await o.parse(e),new t(l,e,i,o,a)}async render(t,e){await this.renderer.draw(this.text,t,e,this)}getParser(){return this.parser}getType(){return this.type}},Me=[],Oe=(0,P.K2)((()=>{Me.forEach((t=>{t()})),Me=[]}),"attachFunctions"),$e=(0,P.f1)((0,N.gK)(),1),Ie="graphics-document document";function De(t,e){t.attr("role",Ie),""!==e&&t.attr("aria-roledescription",e)}function Ne(t,e,n,r){if(void 0!==t.insert){if(n){const e=`chart-desc-${r}`;t.attr("aria-describedby",e),t.insert("desc",":first-child").attr("id",e).text(n)}if(e){const n=`chart-title-${r}`;t.attr("aria-labelledby",n),t.insert("title",":first-child").attr("id",n).text(e)}}}(0,P.K2)(De,"setA11yDiagramInfo"),(0,P.K2)(Ne,"addSVGa11yTitleDescription");var Pe=(0,P.K2)((t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart()),"cleanupComments");function je(t){return null==t}function ze(t){return"object"==typeof t&&null!==t}function qe(t){return Array.isArray(t)?t:je(t)?[]:[t]}function Re(t,e){var n,r,l,i;if(e)for(n=0,r=(i=Object.keys(e)).length;na&&(e=r-a+(i=" ... ").length),n-r>a&&(n=r+a-(o=" ...").length),{str:i+t.slice(e,n).replace(/\t/g,"→")+o,pos:r-e+i.length}}function Xe(t,e){return He.repeat(" ",e-t.length)+t}function Ze(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),"number"!=typeof e.indent&&(e.indent=1),"number"!=typeof e.linesBefore&&(e.linesBefore=3),"number"!=typeof e.linesAfter&&(e.linesAfter=2);for(var n,r=/\r?\n|\r|\0/g,l=[0],i=[],o=-1;n=r.exec(t.buffer);)i.push(n.index),l.push(n.index+n[0].length),t.position<=n.index&&o<0&&(o=l.length-2);o<0&&(o=l.length-1);var a,s,u="",c=Math.min(t.line+e.linesAfter,i.length).toString().length,h=e.maxLength-(e.indent+c+3);for(a=1;a<=e.linesBefore&&!(o-a<0);a++)s=Je(t.buffer,l[o-a],i[o-a],t.position-(l[o]-l[o-a]),h),u=He.repeat(" ",e.indent)+Xe((t.line-a+1).toString(),c)+" | "+s.str+"\n"+u;for(s=Je(t.buffer,l[o],i[o],t.position,h),u+=He.repeat(" ",e.indent)+Xe((t.line+1).toString(),c)+" | "+s.str+"\n",u+=He.repeat("-",e.indent+c+3+s.pos)+"^\n",a=1;a<=e.linesAfter&&!(o+a>=i.length);a++)s=Je(t.buffer,l[o+a],i[o+a],t.position-(l[o]-l[o+a]),h),u+=He.repeat(" ",e.indent)+Xe((t.line+a+1).toString(),c)+" | "+s.str+"\n";return u.replace(/\n$/,"")}(0,P.K2)(Je,"getLine"),(0,P.K2)(Xe,"padStart"),(0,P.K2)(Ze,"makeSnippet");var Qe=Ze,tn=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],en=["scalar","sequence","mapping"];function nn(t){var e={};return null!==t&&Object.keys(t).forEach((function(n){t[n].forEach((function(t){e[String(t)]=n}))})),e}function rn(t,e){if(e=e||{},Object.keys(e).forEach((function(e){if(-1===tn.indexOf(e))throw new Ve('Unknown option "'+e+'" is met in definition of "'+t+'" YAML type.')})),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(t){return t},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=nn(e.styleAliases||null),-1===en.indexOf(this.kind))throw new Ve('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}(0,P.K2)(nn,"compileStyleAliases"),(0,P.K2)(rn,"Type$1");var ln=rn;function on(t,e){var n=[];return t[e].forEach((function(t){var e=n.length;n.forEach((function(n,r){n.tag===t.tag&&n.kind===t.kind&&n.multi===t.multi&&(e=r)})),n[e]=t})),n}function an(){var t,e,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function r(t){t.multi?(n.multi[t.kind].push(t),n.multi.fallback.push(t)):n[t.kind][t.tag]=n.fallback[t.tag]=t}for((0,P.K2)(r,"collectType"),t=0,e=arguments.length;t=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Tn=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Sn(t){return null!==t&&!(!Tn.test(t)||"_"===t[t.length-1])}function Kn(t){var e,n;return n="-"===(e=t.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),".inf"===e?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===e?NaN:n*parseFloat(e,10)}(0,P.K2)(Sn,"resolveYamlFloat"),(0,P.K2)(Kn,"constructYamlFloat");var An=/^[-+]?[0-9]+e/;function Bn(t,e){var n;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(He.isNegativeZero(t))return"-0.0";return n=t.toString(10),An.test(n)?n.replace("e",".e"):n}function Fn(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||He.isNegativeZero(t))}(0,P.K2)(Bn,"representYamlFloat"),(0,P.K2)(Fn,"isFloat");var En=new ln("tag:yaml.org,2002:float",{kind:"scalar",resolve:Sn,construct:Kn,predicate:Fn,represent:Bn,defaultStyle:"lowercase"}),Ln=un.extend({implicit:[fn,yn,kn,En]}),Mn=Ln,On=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),$n=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function In(t){return null!==t&&(null!==On.exec(t)||null!==$n.exec(t))}function Dn(t){var e,n,r,l,i,o,a,s,u=0,c=null;if(null===(e=On.exec(t))&&(e=$n.exec(t)),null===e)throw new Error("Date resolve error");if(n=+e[1],r=+e[2]-1,l=+e[3],!e[4])return new Date(Date.UTC(n,r,l));if(i=+e[4],o=+e[5],a=+e[6],e[7]){for(u=e[7].slice(0,3);u.length<3;)u+="0";u=+u}return e[9]&&(c=6e4*(60*+e[10]+ +(e[11]||0)),"-"===e[9]&&(c=-c)),s=new Date(Date.UTC(n,r,l,i,o,a,u)),c&&s.setTime(s.getTime()-c),s}function Nn(t){return t.toISOString()}(0,P.K2)(In,"resolveYamlTimestamp"),(0,P.K2)(Dn,"constructYamlTimestamp"),(0,P.K2)(Nn,"representYamlTimestamp");var Pn=new ln("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:In,construct:Dn,instanceOf:Date,represent:Nn});function jn(t){return"<<"===t||null===t}(0,P.K2)(jn,"resolveYamlMerge");var zn=new ln("tag:yaml.org,2002:merge",{kind:"scalar",resolve:jn}),qn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function Rn(t){if(null===t)return!1;var e,n,r=0,l=t.length,i=qn;for(n=0;n64)){if(e<0)return!1;r+=6}return r%8==0}function Wn(t){var e,n,r=t.replace(/[\r\n=]/g,""),l=r.length,i=qn,o=0,a=[];for(e=0;e>16&255),a.push(o>>8&255),a.push(255&o)),o=o<<6|i.indexOf(r.charAt(e));return 0==(n=l%4*6)?(a.push(o>>16&255),a.push(o>>8&255),a.push(255&o)):18===n?(a.push(o>>10&255),a.push(o>>2&255)):12===n&&a.push(o>>4&255),new Uint8Array(a)}function Un(t){var e,n,r="",l=0,i=t.length,o=qn;for(e=0;e>18&63],r+=o[l>>12&63],r+=o[l>>6&63],r+=o[63&l]),l=(l<<8)+t[e];return 0==(n=i%3)?(r+=o[l>>18&63],r+=o[l>>12&63],r+=o[l>>6&63],r+=o[63&l]):2===n?(r+=o[l>>10&63],r+=o[l>>4&63],r+=o[l<<2&63],r+=o[64]):1===n&&(r+=o[l>>2&63],r+=o[l<<4&63],r+=o[64],r+=o[64]),r}function Hn(t){return"[object Uint8Array]"===Object.prototype.toString.call(t)}(0,P.K2)(Rn,"resolveYamlBinary"),(0,P.K2)(Wn,"constructYamlBinary"),(0,P.K2)(Un,"representYamlBinary"),(0,P.K2)(Hn,"isBinary");var Yn=new ln("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Rn,construct:Wn,predicate:Hn,represent:Un}),Gn=Object.prototype.hasOwnProperty,Vn=Object.prototype.toString;function Jn(t){if(null===t)return!0;var e,n,r,l,i,o=[],a=t;for(e=0,n=a.length;e>10),56320+(t-65536&1023))}(0,P.K2)(Cr,"_class"),(0,P.K2)(vr,"is_EOL"),(0,P.K2)(wr,"is_WHITE_SPACE"),(0,P.K2)(kr,"is_WS_OR_EOL"),(0,P.K2)(Tr,"is_FLOW_INDICATOR"),(0,P.K2)(Sr,"fromHexCode"),(0,P.K2)(Kr,"escapedHexLen"),(0,P.K2)(Ar,"fromDecimalCode"),(0,P.K2)(Br,"simpleEscapeSequence"),(0,P.K2)(Fr,"charFromCodepoint");var Er,Lr=new Array(256),Mr=new Array(256);for(Er=0;Er<256;Er++)Lr[Er]=Br(Er)?1:0,Mr[Er]=Br(Er);function Or(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||ar,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function $r(t,e){var n={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return n.snippet=Qe(n),new Ve(e,n)}function Ir(t,e){throw $r(t,e)}function Dr(t,e){t.onWarning&&t.onWarning.call(null,$r(t,e))}(0,P.K2)(Or,"State$1"),(0,P.K2)($r,"generateError"),(0,P.K2)(Ir,"throwError"),(0,P.K2)(Dr,"throwWarning");var Nr={YAML:(0,P.K2)((function(t,e,n){var r,l,i;null!==t.version&&Ir(t,"duplication of %YAML directive"),1!==n.length&&Ir(t,"YAML directive accepts exactly one argument"),null===(r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&Ir(t,"ill-formed argument of the YAML directive"),l=parseInt(r[1],10),i=parseInt(r[2],10),1!==l&&Ir(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=i<2,1!==i&&2!==i&&Dr(t,"unsupported YAML version of the document")}),"handleYamlDirective"),TAG:(0,P.K2)((function(t,e,n){var r,l;2!==n.length&&Ir(t,"TAG directive accepts exactly two arguments"),r=n[0],l=n[1],_r.test(r)||Ir(t,"ill-formed tag handle (first argument) of the TAG directive"),sr.call(t.tagMap,r)&&Ir(t,'there is a previously declared suffix for "'+r+'" tag handle'),xr.test(l)||Ir(t,"ill-formed tag prefix (second argument) of the TAG directive");try{l=decodeURIComponent(l)}catch(e){Ir(t,"tag prefix is malformed: "+l)}t.tagMap[r]=l}),"handleTagDirective")};function Pr(t,e,n,r){var l,i,o,a;if(e1&&(t.result+=He.repeat("\n",e-1))}function Hr(t,e,n){var r,l,i,o,a,s,u,c,h=t.kind,d=t.result;if(kr(c=t.input.charCodeAt(t.position))||Tr(c)||35===c||38===c||42===c||33===c||124===c||62===c||39===c||34===c||37===c||64===c||96===c)return!1;if((63===c||45===c)&&(kr(r=t.input.charCodeAt(t.position+1))||n&&Tr(r)))return!1;for(t.kind="scalar",t.result="",l=i=t.position,o=!1;0!==c;){if(58===c){if(kr(r=t.input.charCodeAt(t.position+1))||n&&Tr(r))break}else if(35===c){if(kr(t.input.charCodeAt(t.position-1)))break}else{if(t.position===t.lineStart&&Wr(t)||n&&Tr(c))break;if(vr(c)){if(a=t.line,s=t.lineStart,u=t.lineIndent,Rr(t,!1,-1),t.lineIndent>=e){o=!0,c=t.input.charCodeAt(t.position);continue}t.position=i,t.line=a,t.lineStart=s,t.lineIndent=u;break}}o&&(Pr(t,l,i,!1),Ur(t,t.line-a),l=i=t.position,o=!1),wr(c)||(i=t.position+1),c=t.input.charCodeAt(++t.position)}return Pr(t,l,i,!1),!!t.result||(t.kind=h,t.result=d,!1)}function Yr(t,e){var n,r,l;if(39!==(n=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,r=l=t.position;0!==(n=t.input.charCodeAt(t.position));)if(39===n){if(Pr(t,r,t.position,!0),39!==(n=t.input.charCodeAt(++t.position)))return!0;r=t.position,t.position++,l=t.position}else vr(n)?(Pr(t,r,l,!0),Ur(t,Rr(t,!1,e)),r=l=t.position):t.position===t.lineStart&&Wr(t)?Ir(t,"unexpected end of the document within a single quoted scalar"):(t.position++,l=t.position);Ir(t,"unexpected end of the stream within a single quoted scalar")}function Gr(t,e){var n,r,l,i,o,a;if(34!==(a=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,n=r=t.position;0!==(a=t.input.charCodeAt(t.position));){if(34===a)return Pr(t,n,t.position,!0),t.position++,!0;if(92===a){if(Pr(t,n,t.position,!0),vr(a=t.input.charCodeAt(++t.position)))Rr(t,!1,e);else if(a<256&&Lr[a])t.result+=Mr[a],t.position++;else if((o=Kr(a))>0){for(l=o,i=0;l>0;l--)(o=Sr(a=t.input.charCodeAt(++t.position)))>=0?i=(i<<4)+o:Ir(t,"expected hexadecimal character");t.result+=Fr(i),t.position++}else Ir(t,"unknown escape sequence");n=r=t.position}else vr(a)?(Pr(t,n,r,!0),Ur(t,Rr(t,!1,e)),n=r=t.position):t.position===t.lineStart&&Wr(t)?Ir(t,"unexpected end of the document within a double quoted scalar"):(t.position++,r=t.position)}Ir(t,"unexpected end of the stream within a double quoted scalar")}function Vr(t,e){var n,r,l,i,o,a,s,u,c,h,d,f,p=!0,g=t.tag,m=t.anchor,y=Object.create(null);if(91===(f=t.input.charCodeAt(t.position)))o=93,u=!1,i=[];else{if(123!==f)return!1;o=125,u=!0,i={}}for(null!==t.anchor&&(t.anchorMap[t.anchor]=i),f=t.input.charCodeAt(++t.position);0!==f;){if(Rr(t,!0,e),(f=t.input.charCodeAt(t.position))===o)return t.position++,t.tag=g,t.anchor=m,t.kind=u?"mapping":"sequence",t.result=i,!0;p?44===f&&Ir(t,"expected the node content, but found ','"):Ir(t,"missed comma between flow collection entries"),d=null,a=s=!1,63===f&&kr(t.input.charCodeAt(t.position+1))&&(a=s=!0,t.position++,Rr(t,!0,e)),n=t.line,r=t.lineStart,l=t.position,nl(t,e,ur,!1,!0),h=t.tag,c=t.result,Rr(t,!0,e),f=t.input.charCodeAt(t.position),!s&&t.line!==n||58!==f||(a=!0,f=t.input.charCodeAt(++t.position),Rr(t,!0,e),nl(t,e,ur,!1,!0),d=t.result),u?zr(t,i,y,h,c,d,n,r,l):a?i.push(zr(t,null,y,h,c,d,n,r,l)):i.push(c),Rr(t,!0,e),44===(f=t.input.charCodeAt(t.position))?(p=!0,f=t.input.charCodeAt(++t.position)):p=!1}Ir(t,"unexpected end of the stream within a flow collection")}function Jr(t,e){var n,r,l,i,o=fr,a=!1,s=!1,u=e,c=0,h=!1;if(124===(i=t.input.charCodeAt(t.position)))r=!1;else{if(62!==i)return!1;r=!0}for(t.kind="scalar",t.result="";0!==i;)if(43===(i=t.input.charCodeAt(++t.position))||45===i)fr===o?o=43===i?gr:pr:Ir(t,"repeat of a chomping mode identifier");else{if(!((l=Ar(i))>=0))break;0===l?Ir(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?Ir(t,"repeat of an indentation width identifier"):(u=e+l-1,s=!0)}if(wr(i)){do{i=t.input.charCodeAt(++t.position)}while(wr(i));if(35===i)do{i=t.input.charCodeAt(++t.position)}while(!vr(i)&&0!==i)}for(;0!==i;){for(qr(t),t.lineIndent=0,i=t.input.charCodeAt(t.position);(!s||t.lineIndentu&&(u=t.lineIndent),vr(i))c++;else{if(t.lineIndente)&&0!==r)Ir(t,"bad indentation of a sequence entry");else if(t.lineIndente)&&(y&&(o=t.line,a=t.lineStart,s=t.position),nl(t,e,dr,!0,l)&&(y?g=t.result:m=t.result),y||(zr(t,d,f,p,g,m,o,a,s),p=g=m=null),Rr(t,!0,-1),u=t.input.charCodeAt(t.position)),(t.line===i||t.lineIndent>e)&&0!==u)Ir(t,"bad indentation of a mapping entry");else if(t.lineIndente?p=1:t.lineIndent===e?p=0:t.lineIndente?p=1:t.lineIndent===e?p=0:t.lineIndent tag; it should be "scalar", not "'+t.kind+'"'),s=0,u=t.implicitTypes.length;s"),null!==t.result&&h.kind!==t.kind&&Ir(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+h.kind+'", not "'+t.kind+'"'),h.resolve(t.result,t.tag)?(t.result=h.construct(t.result,t.tag),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):Ir(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return null!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||m}function rl(t){var e,n,r,l,i=t.position,o=!1;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);0!==(l=t.input.charCodeAt(t.position))&&(Rr(t,!0,-1),l=t.input.charCodeAt(t.position),!(t.lineIndent>0||37!==l));){for(o=!0,l=t.input.charCodeAt(++t.position),e=t.position;0!==l&&!kr(l);)l=t.input.charCodeAt(++t.position);for(r=[],(n=t.input.slice(e,t.position)).length<1&&Ir(t,"directive name must not be less than one character in length");0!==l;){for(;wr(l);)l=t.input.charCodeAt(++t.position);if(35===l){do{l=t.input.charCodeAt(++t.position)}while(0!==l&&!vr(l));break}if(vr(l))break;for(e=t.position;0!==l&&!kr(l);)l=t.input.charCodeAt(++t.position);r.push(t.input.slice(e,t.position))}0!==l&&qr(t),sr.call(Nr,n)?Nr[n](t,n,r):Dr(t,'unknown document directive "'+n+'"')}Rr(t,!0,-1),0===t.lineIndent&&45===t.input.charCodeAt(t.position)&&45===t.input.charCodeAt(t.position+1)&&45===t.input.charCodeAt(t.position+2)?(t.position+=3,Rr(t,!0,-1)):o&&Ir(t,"directives end mark is expected"),nl(t,t.lineIndent-1,dr,!1,!0),Rr(t,!0,-1),t.checkLineBreaks&&yr.test(t.input.slice(i,t.position))&&Dr(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&Wr(t)?46===t.input.charCodeAt(t.position)&&(t.position+=3,Rr(t,!0,-1)):t.position=55296&&r<=56319&&e+1=56320&&n<=57343?1024*(r-55296)+n-56320+65536:r}function Ql(t){return/^\n* /.test(t)}(0,P.K2)(ql,"State"),(0,P.K2)(Rl,"indentString"),(0,P.K2)(Wl,"generateNextLine"),(0,P.K2)(Ul,"testImplicitResolving"),(0,P.K2)(Hl,"isWhitespace"),(0,P.K2)(Yl,"isPrintable"),(0,P.K2)(Gl,"isNsCharOrWhitespace"),(0,P.K2)(Vl,"isPlainSafe"),(0,P.K2)(Jl,"isPlainSafeFirst"),(0,P.K2)(Xl,"isPlainSafeLast"),(0,P.K2)(Zl,"codePointAt"),(0,P.K2)(Ql,"needIndentIndicator");var ti=1,ei=2,ni=3,ri=4,li=5;function ii(t,e,n,r,l,i,o,a){var s,u=0,c=null,h=!1,d=!1,f=-1!==r,p=-1,g=Jl(Zl(t,0))&&Xl(Zl(t,t.length-1));if(e||o)for(s=0;s=65536?s+=2:s++){if(!Yl(u=Zl(t,s)))return li;g=g&&Vl(u,c,a),c=u}else{for(s=0;s=65536?s+=2:s++){if((u=Zl(t,s))===dl)h=!0,f&&(d=d||s-p-1>r&&" "!==t[p+1],p=s);else if(!Yl(u))return li;g=g&&Vl(u,c,a),c=u}d=d||f&&s-p-1>r&&" "!==t[p+1]}return h||d?n>9&&Ql(t)?li:o?i===zl?li:ei:d?ri:ni:!g||o||l(t)?i===zl?li:ei:ti}function oi(t,e,n,r,l){t.dump=function(){if(0===e.length)return t.quotingType===zl?'""':"''";if(!t.noCompatMode&&(-1!==Il.indexOf(e)||Dl.test(e)))return t.quotingType===zl?'"'+e+'"':"'"+e+"'";var i=t.indent*Math.max(1,n),o=-1===t.lineWidth?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-i),a=r||t.flowLevel>-1&&n>=t.flowLevel;function s(e){return Ul(t,e)}switch((0,P.K2)(s,"testAmbiguity"),ii(e,a,t.indent,o,s,t.quotingType,t.forceQuotes&&!r,l)){case ti:return e;case ei:return"'"+e.replace(/'/g,"''")+"'";case ni:return"|"+ai(e,t.indent)+si(Rl(e,i));case ri:return">"+ai(e,t.indent)+si(Rl(ui(e,o),i));case li:return'"'+hi(e)+'"';default:throw new Ve("impossible error: invalid scalar style")}}()}function ai(t,e){var n=Ql(t)?String(e):"",r="\n"===t[t.length-1];return n+(!r||"\n"!==t[t.length-2]&&"\n"!==t?r?"":"-":"+")+"\n"}function si(t){return"\n"===t[t.length-1]?t.slice(0,-1):t}function ui(t,e){for(var n,r,l,i=/(\n+)([^\n]*)/g,o=(n=-1!==(n=t.indexOf("\n"))?n:t.length,i.lastIndex=n,ci(t.slice(0,n),e)),a="\n"===t[0]||" "===t[0];l=i.exec(t);){var s=l[1],u=l[2];r=" "===u[0],o+=s+(a||r||""===u?"":"\n")+ci(u,e),a=r}return o}function ci(t,e){if(""===t||" "===t[0])return t;for(var n,r,l=/ [^ ]/g,i=0,o=0,a=0,s="";n=l.exec(t);)(a=n.index)-i>e&&(r=o>i?o:a,s+="\n"+t.slice(i,r),i=r+1),o=a;return s+="\n",t.length-i>e&&o>i?s+=t.slice(i,o)+"\n"+t.slice(o+1):s+=t.slice(i),s.slice(1)}function hi(t){for(var e,n="",r=0,l=0;l=65536?l+=2:l++)r=Zl(t,l),!(e=$l[r])&&Yl(r)?(n+=t[l],r>=65536&&(n+=t[l+1])):n+=e||Pl(r);return n}function di(t,e,n){var r,l,i,o="",a=t.tag;for(r=0,l=n.length;r1024&&(a+="? "),a+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),yi(t,e,o,!1,!1)&&(s+=a+=t.dump));t.tag=u,t.dump="{"+s+"}"}function gi(t,e,n,r){var l,i,o,a,s,u,c="",h=t.tag,d=Object.keys(n);if(!0===t.sortKeys)d.sort();else if("function"==typeof t.sortKeys)d.sort(t.sortKeys);else if(t.sortKeys)throw new Ve("sortKeys must be a boolean or a function");for(l=0,i=d.length;l1024)&&(t.dump&&dl===t.dump.charCodeAt(0)?u+="?":u+="? "),u+=t.dump,s&&(u+=Wl(t,e)),yi(t,e+1,a,!0,s)&&(t.dump&&dl===t.dump.charCodeAt(0)?u+=":":u+=": ",c+=u+=t.dump));t.tag=h,t.dump=c||"{}"}function mi(t,e,n){var r,l,i,o,a,s;for(i=0,o=(l=n?t.explicitTypes:t.implicitTypes).length;i tag resolver accepts not "'+s+'" style');r=a.represent[s](e,s)}t.dump=r}return!0}return!1}function yi(t,e,n,r,l,i,o){t.tag=null,t.dump=n,mi(t,n,!1)||mi(t,n,!0);var a,s=sl.call(t.dump),u=r;r&&(r=t.flowLevel<0||t.flowLevel>e);var c,h,d="[object Object]"===s||"[object Array]"===s;if(d&&(h=-1!==(c=t.duplicates.indexOf(n))),(null!==t.tag&&"?"!==t.tag||h||2!==t.indent&&e>0)&&(l=!1),h&&t.usedDuplicates[c])t.dump="*ref_"+c;else{if(d&&h&&!t.usedDuplicates[c]&&(t.usedDuplicates[c]=!0),"[object Object]"===s)r&&0!==Object.keys(t.dump).length?(gi(t,e,t.dump,l),h&&(t.dump="&ref_"+c+t.dump)):(pi(t,e,t.dump),h&&(t.dump="&ref_"+c+" "+t.dump));else if("[object Array]"===s)r&&0!==t.dump.length?(t.noArrayIndent&&!o&&e>0?fi(t,e-1,t.dump,l):fi(t,e,t.dump,l),h&&(t.dump="&ref_"+c+t.dump)):(di(t,e,t.dump),h&&(t.dump="&ref_"+c+" "+t.dump));else{if("[object String]"!==s){if("[object Undefined]"===s)return!1;if(t.skipInvalid)return!1;throw new Ve("unacceptable kind of an object to dump "+s)}"?"!==t.tag&&oi(t,t.dump,e,i,u)}null!==t.tag&&"?"!==t.tag&&(a=encodeURI("!"===t.tag[0]?t.tag.slice(1):t.tag).replace(/!/g,"%21"),a="!"===t.tag[0]?"!"+a:"tag:yaml.org,2002:"===a.slice(0,18)?"!!"+a.slice(18):"!<"+a+">",t.dump=a+" "+t.dump)}return!0}function bi(t,e){var n,r,l=[],i=[];for(_i(t,l,i),n=0,r=i.length;nt.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,((t,e,n)=>"<"+e+n.replace(/="([^"]*)"/g,"='$1'")+">"))),"cleanupText"),Ti=(0,P.K2)((t=>{const{text:e,metadata:n}=wi(t),{displayMode:r,title:l,config:i={}}=n;return r&&(i.gantt||(i.gantt={}),i.gantt.displayMode=r),{title:l,config:i,text:e}}),"processFrontmatter"),Si=(0,P.K2)((t=>{const e=D._K.detectInit(t)??{},n=D._K.detectDirective(t,"wrap");return Array.isArray(n)?e.wrap=n.some((({type:t})=>{})):"wrap"===n?.type&&(e.wrap=!0),{text:(0,D.vU)(t),directive:e}}),"processDirectives");function Ki(t){const e=ki(t),n=Ti(e),r=Si(n.text),l=(0,D.$t)(n.config,r.directive);return{code:t=Pe(r.text),title:n.title,config:l}}(0,P.K2)(Ki,"preprocessDiagram");var Ai=["foreignobject"],Bi=["dominant-baseline"];function Fi(t){const e=Ki(t);return(0,N.cL)(),(0,N.xA)(e.config??{}),e}async function Ei(t,e){Ee();try{const{code:e}=Fi(t);return{diagramType:(await qi(e)).type}}catch(t){if(e?.suppressErrors)return!1;throw t}}(0,P.K2)(Fi,"processAndSetConfigs"),(0,P.K2)(Ei,"parse");var Li=(0,P.K2)(((t,e,n=[])=>`\n.${t} ${e} { ${n.join(" !important; ")} !important; }`),"cssImportantStyles"),Mi=(0,P.K2)(((t,e=new Map)=>{let n="";if(void 0!==t.themeCSS&&(n+=`\n${t.themeCSS}`),void 0!==t.fontFamily&&(n+=`\n:root { --mermaid-font-family: ${t.fontFamily}}`),void 0!==t.altFontFamily&&(n+=`\n:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),e instanceof Map){const r=t.htmlLabels||t.flowchart?.htmlLabels?["> *","span"]:["rect","polygon","ellipse","circle","path"];e.forEach((t=>{(0,I._S)(t.styles)||r.forEach((e=>{n+=Li(t.id,e,t.styles)})),(0,I._S)(t.textStyles)||(n+=Li(t.id,"tspan",t.textStyles))}))}return n}),"createCssStyles"),Oi=(0,P.K2)(((t,e,n,r)=>{const l=Mi(t,n);return St(Ct(`${r}{${(0,N.tM)(e,l,t.themeVariables)}}`),Kt)}),"createUserStyles"),$i=(0,P.K2)(((t="",e,n)=>{let r=t;return n||e||(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),r=(0,D.Sm)(r),r=r.replace(/
/g,"
"),r}),"cleanUpSvgCode"),Ii=(0,P.K2)(((t="",e)=>``),"putIntoIFrame"),Di=(0,P.K2)(((t,e,n,r,l)=>{const i=t.append("div");i.attr("id",n),r&&i.attr("style",r);const o=i.append("svg").attr("id",e).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return l&&o.attr("xmlns:xlink",l),o.append("g"),t}),"appendDivSvgG");function Ni(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}(0,P.K2)(Ni,"sandboxedIframe");var Pi=(0,P.K2)(((t,e,n,r)=>{t.getElementById(e)?.remove(),t.getElementById(n)?.remove(),t.getElementById(r)?.remove()}),"removeExistingElements"),ji=(0,P.K2)((async function(t,e,n){Ee();const r=Fi(e);e=r.code;const l=(0,N.zj)();N.Rm.debug(l),e.length>(l?.maxTextSize??5e4)&&(e="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");const i="#"+t,o="i"+t,a="#"+o,s="d"+t,u="#"+s,c=(0,P.K2)((()=>{const t=d?a:u,e=(0,N.df)(t).node();e&&"remove"in e&&e.remove()}),"removeTempElements");let h=(0,N.df)("body");const d="sandbox"===l.securityLevel,f="loose"===l.securityLevel,p=l.fontFamily;if(void 0!==n){if(n&&(n.innerHTML=""),d){const t=Ni((0,N.df)(n),o);h=(0,N.df)(t.nodes()[0].contentDocument.body),h.node().style.margin=0}else h=(0,N.df)(n);Di(h,t,s,`font-family: ${p}`,"http://www.w3.org/1999/xlink")}else{if(Pi(document,t,s,o),d){const t=Ni((0,N.df)("body"),o);h=(0,N.df)(t.nodes()[0].contentDocument.body),h.node().style.margin=0}else h=(0,N.df)("body");Di(h,t,s)}let g,m;try{g=await Le.fromText(e,{title:r.title})}catch(t){if(l.suppressErrorRendering)throw c(),t;g=await Le.fromText("error"),m=t}const y=h.select(u).node(),b=g.type,_=y.firstChild,x=_.firstChild,C=g.renderer.getClasses?.(e,g),v=Oi(l,b,C,i),w=document.createElement("style");w.innerHTML=v,_.insertBefore(w,x);try{await g.renderer.draw(e,t,M.r,g)}catch(n){throw l.suppressErrorRendering?c():oe.draw(e,t,M.r),n}const k=h.select(`${u} svg`),T=g.db.getAccTitle?.(),S=g.db.getAccDescription?.();Ri(b,k,T,S),h.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let K=h.select(u).node().innerHTML;if(N.Rm.debug("config.arrowMarkerAbsolute",l.arrowMarkerAbsolute),K=$i(K,d,(0,N._3)(l.arrowMarkerAbsolute)),d){const t=h.select(u+" svg").node();K=Ii(K,t)}else f||(K=$e.default.sanitize(K,{ADD_TAGS:Ai,ADD_ATTR:Bi}));if(Oe(),m)throw m;return c(),{diagramType:b,svg:K,bindFunctions:g.db.bindFunctions}}),"render");function zi(t={}){t?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),(0,N.wZ)(t),t?.theme&&t.theme in N.H$?t.themeVariables=N.H$[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=N.H$.default.getThemeVariables(t.themeVariables));const e="object"==typeof t?(0,N.UU)(t):(0,N.Q2)();(0,N.He)(e.logLevel),Ee()}(0,P.K2)(zi,"initialize");var qi=(0,P.K2)(((t,e={})=>{const{code:n}=Ki(t);return Le.fromText(n,e)}),"getDiagramFromText");function Ri(t,e,n,r){De(e,t),Ne(e,n,r,e.attr("id"))}(0,P.K2)(Ri,"addA11yInfo");var Wi=Object.freeze({render:ji,parse:Ei,getDiagramFromText:qi,initialize:zi,getConfig:N.zj,setConfig:N.eI,getSiteConfig:N.Q2,updateSiteConfig:N.B6,reset:()=>{(0,N.cL)()},globalReset:()=>{(0,N.cL)(N.sb)},defaultConfig:N.sb});(0,N.He)((0,N.zj)().logLevel),(0,N.cL)((0,N.zj)());var Ui=(0,P.K2)((async()=>{N.Rm.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(N.mW).map((async([t,{detector:e,loader:n}])=>{if(n)try{(0,N.Gs)(t)}catch(r){try{const{diagram:t,id:r}=await n();(0,N.Js)(r,t,e)}catch(e){throw N.Rm.error(`Failed to load external diagram with key ${t}. Removing from detectors.`),delete N.mW[t],e}}})))).filter((t=>"rejected"===t.status));if(t.length>0){N.Rm.error(`Failed to load ${t.length} external diagrams`);for(const e of t)N.Rm.error(e);throw new Error(`Failed to load ${t.length} external diagrams`)}}),"loadRegisteredDiagrams"),Hi=(0,P.K2)(((t,e,n)=>{N.Rm.warn(t),(0,D.dq)(t)?(n&&n(t.str,t.hash),e.push({...t,message:t.str,error:t})):(n&&n(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))}),"handleError"),Yi=(0,P.K2)((async function(t={querySelector:".mermaid"}){try{await Gi(t)}catch(e){if((0,D.dq)(e)&&N.Rm.error(e.str),io.parseError&&io.parseError(e),!t.suppressErrors)throw N.Rm.error("Use the suppressErrors option to suppress these errors"),e}}),"run"),Gi=(0,P.K2)((async function({postRenderCallback:t,querySelector:e,nodes:n}={querySelector:".mermaid"}){const r=Wi.getConfig();let l;if(N.Rm.debug((t?"":"No ")+"Callback function found"),n)l=n;else{if(!e)throw new Error("Nodes and querySelector are both undefined");l=document.querySelectorAll(e)}N.Rm.debug(`Found ${l.length} diagrams`),void 0!==r?.startOnLoad&&(N.Rm.debug("Start On Load: "+r?.startOnLoad),Wi.updateSiteConfig({startOnLoad:r?.startOnLoad}));const i=new D._K.InitIDGenerator(r.deterministicIds,r.deterministicIDSeed);let o;const a=[];for(const e of Array.from(l)){if(N.Rm.info("Rendering diagram: "+e.id),e.getAttribute("data-processed"))continue;e.setAttribute("data-processed","true");const n=`mermaid-${i.next()}`;o=e.innerHTML,o=(0,$.T)(D._K.entityDecode(o)).trim().replace(//gi,"
");const r=D._K.detectInit(o);r&&N.Rm.debug("Detected early reinit: ",r);try{const{svg:r,bindFunctions:l}=await lo(n,o,e);e.innerHTML=r,t&&await t(n),l&&l(e)}catch(t){Hi(t,a,io.parseError)}}if(a.length>0)throw a[0]}),"runThrowsErrors"),Vi=(0,P.K2)((function(t){Wi.initialize(t)}),"initialize"),Ji=(0,P.K2)((async function(t,e,n){N.Rm.warn("mermaid.init is deprecated. Please use run instead."),t&&Vi(t);const r={postRenderCallback:n,querySelector:".mermaid"};"string"==typeof e?r.querySelector=e:e&&(e instanceof HTMLElement?r.nodes=[e]:r.nodes=e),await Yi(r)}),"init"),Xi=(0,P.K2)((async(t,{lazyLoad:e=!0}={})=>{Ee(),(0,N.Xd)(...t),!1===e&&await Ui()}),"registerExternalDiagrams"),Zi=(0,P.K2)((function(){if(io.startOnLoad){const{startOnLoad:t}=Wi.getConfig();t&&io.run().catch((t=>N.Rm.error("Mermaid failed to initialize",t)))}}),"contentLoaded");"undefined"!=typeof document&&window.addEventListener("load",Zi,!1);var Qi=(0,P.K2)((function(t){io.parseError=t}),"setParseErrorHandler"),to=[],eo=!1,no=(0,P.K2)((async()=>{if(!eo){for(eo=!0;to.length>0;){const t=to.shift();if(t)try{await t()}catch(t){N.Rm.error("Error executing queue",t)}}eo=!1}}),"executeQueue"),ro=(0,P.K2)((async(t,e)=>new Promise(((n,r)=>{const l=(0,P.K2)((()=>new Promise(((l,i)=>{Wi.parse(t,e).then((t=>{l(t),n(t)}),(t=>{N.Rm.error("Error parsing",t),io.parseError?.(t),i(t),r(t)}))}))),"performCall");to.push(l),no().catch(r)}))),"parse"),lo=(0,P.K2)(((t,e,n)=>new Promise(((r,l)=>{const i=(0,P.K2)((()=>new Promise(((i,o)=>{Wi.render(t,e,n).then((t=>{i(t),r(t)}),(t=>{N.Rm.error("Error parsing",t),io.parseError?.(t),o(t),l(t)}))}))),"performCall");to.push(i),no().catch(l)}))),"render"),io={startOnLoad:!0,mermaidAPI:Wi,parse:ro,render:lo,init:Ji,run:Yi,registerExternalDiagrams:Xi,initialize:Vi,parseError:void 0,contentLoaded:Zi,setParseErrorHandler:Qi,detectType:N.Ch},oo=io,ao=function(t){var e=t.svgElement,n=t.updateInspector;(0,r.useEffect)((function(){l()}),[e]);var l=function(){e&&e.addEventListener("click",i)},i=function(t){for(var e=t.target;e&&!e.classList.contains("unit");)e=e.parentElement;for(var r=e?e.id:null;e&&!e.classList.contains("component");)e=e.parentElement;for(var l=e?e.id:null;e&&!e.classList.contains("page");)e=e.parentElement;var i=e?e.id:null;n(r,l,i)};return r.createElement("div",null)};function so(t){return so="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},so(t)}function uo(){uo=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,l=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var i=e&&e.prototype instanceof y?e:y,o=Object.create(i.prototype),a=new F(r||[]);return l(o,"_invoke",{value:S(t,n,a)}),o}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=c;var d="suspendedStart",f="suspendedYield",p="executing",g="completed",m={};function y(){}function b(){}function _(){}var x={};u(x,o,(function(){return this}));var C=Object.getPrototypeOf,v=C&&C(C(E([])));v&&v!==n&&r.call(v,o)&&(x=v);var w=_.prototype=y.prototype=Object.create(x);function k(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function n(l,i,o,a){var s=h(t[l],t,i);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"==so(c)&&r.call(c,"__await")?e.resolve(c.__await).then((function(t){n("next",t,o,a)}),(function(t){n("throw",t,o,a)})):e.resolve(c).then((function(t){u.value=t,o(u)}),(function(t){return n("throw",t,o,a)}))}a(s.arg)}var i;l(this,"_invoke",{value:function(t,r){function l(){return new e((function(e,l){n(t,r,e,l)}))}return i=i?i.then(l,l):l()}})}function S(e,n,r){var l=d;return function(i,o){if(l===p)throw Error("Generator is already running");if(l===g){if("throw"===i)throw o;return{value:t,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=K(a,r);if(s){if(s===m)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(l===d)throw l=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);l=p;var u=h(e,n,r);if("normal"===u.type){if(l=r.done?g:f,u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(l=g,r.method="throw",r.arg=u.arg)}}}function K(e,n){var r=n.method,l=e.iterator[r];if(l===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,K(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=h(l,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function B(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function E(e){if(e||""===e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var l=-1,i=function n(){for(;++l=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return l("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(s&&u){if(this.prev=0;--n){var l=this.tryEntries[n];if(l.tryLoc<=this.prev&&r.call(l,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),B(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var l=r.arg;B(n)}return l}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:E(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function co(t,e,n,r,l,i,o){try{var a=t[i](o),s=a.value}catch(t){return void n(t)}a.done?e(s):Promise.resolve(s).then(r,l)}const ho=function(t){var e=t.text,n=t.update,l=t.exampleSvg,i=(t.setTotalPages,t.setSvgContent),o=(0,r.useRef)(null);return(0,r.useEffect)((function(){oo.initialize({startOnLoad:!0,securityLevel:"loose",theme:"forest",logLevel:5});var t=function(){var t,r=(t=uo().mark((function t(){var r,a;return uo().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!o.current||""===e){t.next=19;break}if(t.prev=1,!l){t.next=7;break}o.current.innerHTML=l,n(o.current),t.next=14;break;case 7:return t.next=9,oo.mermaidAPI.render("preview",e);case 9:r=t.sent,a=r.svg,i(a),o.current.innerHTML=a,n(o.current);case 14:t.next=19;break;case 16:t.prev=16,t.t0=t.catch(1),console.error("Mermaid render error:",t.t0);case 19:case"end":return t.stop()}}),t,null,[[1,16]])})),function(){var e=this,n=arguments;return new Promise((function(r,l){var i=t.apply(e,n);function o(t){co(i,r,l,o,a,"next",t)}function a(t){co(i,r,l,o,a,"throw",t)}o(void 0)}))});return function(){return r.apply(this,arguments)}}();return t(),function(){o.current&&(o.current.innerHTML="")}}),[e,l]),r.createElement("div",{ref:o,className:"mermaid-container"})};var fo=n(3340),po=n(7235),go=n(3044),mo=n(6879),yo=n(6466),bo=n(3360),_o=n(5800),xo=n(7187),Co=n(1045),vo=n(7477);function wo(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,l,i,o,a=[],s=!0,u=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(a.push(r.value),a.length!==e);s=!0);}catch(t){u=!0,l=t}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw l}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return ko(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ko(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ko(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=1?d-1:1)},variant:"contained",style:{fontSize:"12px",marginRight:"15px",maxWidth:"80px",maxHeight:"25px",minWidth:"40px",minHeight:"25px"}},"Prev"),r.createElement(fo.A,{variant:"contained",style:{fontSize:"12px",marginRight:"15px",maxWidth:"60px",maxHeight:"25px",minWidth:"40px",minHeight:"25px"}},"Play"),r.createElement(fo.A,{onClick:function(){p(d+1<=s?d+1:s)},variant:"contained",style:{fontSize:"12px",marginRight:"15px",maxWidth:"80px",maxHeight:"25px",minWidth:"40px",minHeight:"25px"}},"Next"),d,"/",s)))))};var So=n(1003),Ko=n.n(So),Ao=n(1381),Bo=n(8847),Fo=[{id:"badExample",title:"Bad example",tags:[],svg:"",userCode:'// common error\n// 1.page index exceeds data structure, i.e no array[9] but there are only 5 element in array\n// 2.invalid input format\n// 3.arrow field with ""\n// 4.can\'t find component name\n// 5.page index is invalid, like -1\n data:\n\tarray arr = {\n\t\tstructure: [[unit1],[unit1,unit2],[unit1,unit2,unit3], *] # unit_id, required\n\t}\n\tlinkedlist li = {\n\t\tstructure: [[unit1],[unit1,unit2],[unit1,unit2,unit3], *] # unit_id, required\n\t}\n\ttree tr = {\n\t\tstructure: [[node1],[node1,node2],[node1,node2,node3], *, *, *]\n\t}\n\ndraw:\n\tpage p := [0,2] {\n\t\tshow arr[p]\n\t\tshow li[p-1]\n\t}\n\tpage p := [3,3] {\n\t\tshow li[3]\n\t}\n\tpage i := [4,8] {\n\t\tshow li[8-i]\n\t\tshow tr[i]\n\t}'},{id:"goodExample",title:"Good example",tags:[],svg:"",userCode:"data:\n\tarray arr = {\n\t\tstructure: [[unit1],[unit1,unit2],[unit1,unit2,unit3], *]\n\t}\n\tlinkedlist li = {\n\t\tstructure: [[unit1],[unit1,unit2],[unit1,unit2,unit3], *] \n\t}\n\ttree tr = {\n\t\tstructure: [[node1],[node1,node2],[node1,node2,node3], *, *, *]\n\t}\n\ndraw:\n\tpage p := [0,2] {\n\t\tshow arr[p]\n\t\tshow li[p]\n\t}\n\tpage p := [3,3] {\n\t\tshow li[3]\n\t}",renderCode:""},{id:"goodExample2",title:"Good example 2",tags:[],svg:"",userCode:"data:\ngraph gh = {\n id:[[n1],[n1,n2],[n1,n2,n3],[n1,n2,n3,n4],[n1,n2,n3,n4,n5]]\n edge:[[(n1,n1)],[(n1,n2),(n1,n1)]]\n value:[[n1,n1],[n1,n2,n1,n2],[n1,n2,n3,n1,n2,n3],[n1,n2,n3,n4,n1,n2,n3,n4],[n1,n2,n3,n4,n5,n1,n2,n3,n4,n5]]\n color:[[blue],[null,blue],[null,null,blue],[null,null,null,null],[null,null,null,null,null]]\n arrow:[[null],[null,null],[null,null,null],[null,null,null,null],[null,null,null,null,null]]\n hidden:[[false],[false,null],[null,null,null],[null,null,null,null],[null,null,null,null,null]]\n}\narray arr = {\n structure:[[n1],[n1,n2],[n1,n2,n3],[n1,n2,n3,n4],[n1,n2,n3,n4,n5]]\n value:[[n1,n1],[n1,n2,n1,n2],[n1,n2,n3,n1,n2,n3],[n1,n2,n3,n4,n1,n2,n3,n4],[n1,n2,n3,n4,n5,n1,n2,n3,n4,n5]]\n color:[[blue],[null,blue],[null,null,blue],[null,null,null,null],[null,null,null,null,null]]\n arrow:[[null],[null,null],[null,null,null],[null,null,null,null],[null,null,null,null,null]]\n hidden:[[false],[false,false],[false,false,false],[false,false,false,false],[false,false,false,false,false]]\n}\ntree tr = {\n structure:[[n1],[n1,n2],[n1,n2,n3],[n1,n2,n3,n4],[n1,n2,n3,n4,n5]]\n value:[[n1,n1],[n1,n2,n1,n2],[n1,n2,n3,n1,n2,n3],[n1,n2,n3,n4,n1,n2,n3,n4],[n1,n2,n3,n4,n5,n1,n2,n3,n4,n5]]\n color:[[null],[null,null],[null,null,null],[null,null,null,null],[null,null,null,null,null]]\n arrow:[[null],[null,null],[null,null,null],[null,null,null,null],[null,null,null,null,null]]\n hidden:[[false],[false,false],[false,false,false],[false,false,false,false],[false,false,false,false,false]]\n}\nlinkedlist li = {\n structure:[[n1],[n1,n2],[n1,n2,n3],[n1,n2,n3,n4],[n1,n2,n3,n4,n5]]\n value:[[n1,n1],[n1,n2,n1,n2],[n1,n2,n3,n1,n2,n3],[n1,n2,n3,n4,n1,n2,n3,n4],[n1,n2,n3,n4,n5,n1,n2,n3,n4,n5]]\n color:[[blue],[null,blue],[null,null,blue],[null,null,null,null],[null,null,null,null,null]]\n arrow:[[null],[null,null],[null,null,null],[null,null,null,null],[null,null,null,null,null]]\n hidden:[[false],[false,false],[false,false,false],[false,false,false,false],[false,false,false,false,false]]\n}\nstack sk = {\n structure:[[n1],[n1,n2],[n1,n2,n3],[n1,n2,n3,n4],[n1,n2,n3,n4,n5]]\n value:[[n1,n1],[n1,n2,n1,n2],[n1,n2,n3,n1,n2,n3],[n1,n2,n3,n4,n1,n2,n3,n4],[n1,n2,n3,n4,n5,n1,n2,n3,n4,n5]]\n color:[[null],[null,null],[null,null,null],[null,null,null,null],[null,null,null,null,null]]\n arrow:[[null],[null,null],[null,null,null],[null,null,null,null],[null,null,null,null,null]]\n hidden:[[false],[false,false],[false,false,false],[false,false,false,false],[false,false,false,false,false]]\n}\nmatrix mr = {\n structure:[[[1]],[[1],[1,2]],[[1],[1,2],[1,2,3]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]]]\n value:[[[1]],[[1],[1,2]],[[1],[1,2],[1,2,3]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]]]\n color:[[[1]],[[1],[1,2]],[[1],[1,2],[1,2,3]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]]]\n arrow:[[[null]],[[yes],[null,yes]],[[null],[null,null],[null,yes,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]]]\n hidden:[[[null]],[[null],[null,null]],[[null],[null,null],[null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]]]\n}\ndraw:\npage p:=[0,2] {\nshow mr[p]\n}\npage p:=[3,4] {\nshow tr[p-3]\n}\npage p:=[5,6] {\nshow li[p-5]\nshow arr[p-5]\n}\npage i:=[7,8] {\nshow sk[i-7]\n}\npage jk:=[9,13] {\nshow gh[jk-9]\n}",renderCode:""},{id:"graphTest",title:"graph Test",userCode:"data:\ngraph gh = {\nid:[[n1],[n1,n2],[n1,n2,n3]]\nvalue:[[1],[1,2],[1,2,3]]\nedge:[[(node1,node1)]]\n}\ndraw:\npage p := [0,2] {\nshow gh[p]\n}"},{id:"arrayTest",title:"array Test",userCode:"data:\narray arr1 = {\nstructure:[[n1],[n1,n2],[n1,n2,n3]]\n}\narray arr2 = {\nstructure:[[n1],[n1,n2],[n1,n2,n3]]\n}\ndraw:\npage p := [0,1] {\nshow arr1[p]\n}\npage p := [2,2] {\nshow arr1[p]\nshow arr2[p-1]\n}"},{id:"Fibonacci",title:"Fibonacci",userCode:"data:\narray arr1 = {\n structure:[[1],[1,1],[1,1,2],[1,1,2,3],[1,1,2,3,5],[1,1,2,3,5,8]]\n value:[[1],[1,1],[1,1,2],[1,1,2,3],[1,1,2,3]]\n color:[[null],[null,null],[null,null,null],[null,null,null,null],[null,null,null,null]]\n arrow:[[null],[null,null],[null,null,null],[null,null,null,null],[null,null,null,null]]\n hidden:[[false],[false,false],[false,false,false],[false,false,false,false],[false,false,false,false]]\n}\ndraw:\npage p:=[0,5] {\nshow arr1[p]\n}"},{id:"dfsExample",title:"Depth-First Search",userCode:"data:\ngraph dfs = {\n id:[[n1,n2,n3,n4,n5,n6,n7,n8],[n1,n2,n3,n4,n5,n6,n7,n8],[n1,n2,n3,n4,n5,n6,n7,n8],[n1,n2,n3,n4,n5,n6,n7,n8]]\n edge:[[(n1,n2),(n1,n6),(n1,n7),(n2,n3),(n3,n7),(n3,n5),(n4,n5),(n4,n6),(n4,n8)],[(n1,n2),(n1,n6),(n1,n7),(n2,n3),(n3,n7),(n3,n5),(n4,n5),(n4,n6),(n4,n8)],[(n1,n2),(n1,n6),(n1,n7),(n2,n3),(n3,n7),(n3,n5),(n4,n5),(n4,n6),(n4,n8)],[(n1,n2),(n1,n6),(n1,n7),(n2,n3),(n3,n7),(n3,n5),(n4,n5),(n4,n6),(n4,n8)]]\n value:[[n1,n2,n3,n4,n5,n6,n7,n8],[n1,n2,n3,n4,n5,n6,n7,n8],[n1,n2,n3,n4,n5,n6,n7,n8],[n1,n2,n3,n4,n5,n6,n7,n8]]\n color:[[red,null,null,null,null,null,null,null],[blue,red,null,null,null,null,null,null],[blue,blue,red,null,null,null,null,null],[blue,blue,blue,null,red,null,null,null]]\n arrow:[[start,null,null,null,null,null,null,null],[null,cur,null,null,null,null,null,null],[null,null,cur,null,null,null,null,null],[null,null,null,null,cur,null,null,null]]\n hidden:[[null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null]]\n}\ndraw:\npage p:=[0,3] {\nshow dfs[p]\n}"}],Eo=n(8675),Lo=n(6836),Mo=n(6746),Oo=n(1789),$o=n(4590),Io=n(7853),Do=n(9755);function No(t){var e=t.data,n=t.draw;return e.forEach((function(t){switch(t.type){case"array":case"tree":case"linkedlist":case"stack":var e=t.attributes.structure.length;t.attributes.value=t.attributes.value?t.attributes.value:[];for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=Array(e);nr.length||r.splice(i+1,0,r[i].slice())})),console.log("idx: ",n,"\nname: ",l,"\ncomponent_idx_dsl: ",i,"\ncomponent_id_dsl",a,"\nto copy: ",t.data[a],"\nafter copy: ",t.data)})),e.range.end+=1;var a=Po(t);n(a),s(!1)},sx:{mr:1},size:"small"},r.createElement(Io.A,{sx:{fontSize:20}}))),r.createElement(A.A,{title:"Remove last Page"},r.createElement(B.A,{disabled:!(i===o)||o<=1,onClick:function(){console.log("remove current page: ",i-1);var t=No(l);a((function(t){return t-1}));var e=(0,Uo.rO)(t,i-1),r=e.page_index,o=i-1;e.show.forEach((function(e){var n=e.component_index,l=e.component_name,i=(0,Uo.O4)(n,r,o),a=(0,Uo.el)(t,l),s=t.data[a].attributes;Object.entries(s).forEach((function(t){var e=Jo(t,2),n=e[0],r=e[1];"edge"===n&&i-1<0||r.splice(i,1)}))})),e.range.end-=1;var u=Po(t);n(u),s(!1)},sx:{mr:1},size:"small"},r.createElement(Do.A,{sx:{fontSize:20}}))))),e&&r.createElement(h.A,{component:"form",sx:{"& .MuiTextField-root":{m:1,width:"25ch"},p:"5px 15px"},noValidate:!0,autoComplete:"off"},r.createElement("div",null,r.createElement(h.A,{display:"flex",flexGrow:1,alignItems:"center",sx:{"& > *":{mr:1}}},r.createElement(K.A,{variant:"overline"},"Current Selection:"),r.createElement(Lo.A,{label:e.unitID,size:"small"}),r.createElement(Lo.A,{label:e.componentID,size:"small"}),r.createElement(Lo.A,{label:e.pageID,size:"small"}))),r.createElement("div",null,r.createElement("div",null,r.createElement(Mo.A,{control:r.createElement(Oo.A,{checked:d.isIndex,onChange:function(t){f(Go(Go({},d),{},{isIndex:t.target.checked}))}}),label:"IsIndex"}),r.createElement(fo.A,{variant:"contained",size:"small",onClick:function(){console.log("query index:",e),console.log("new data:",d);var t=Go({},l),r=(0,Uo.rO)(t,parseInt(e.pageID.slice(4))),i=r.page_index,o=parseInt(e.pageID.slice(4)),a=r.show[parseInt(e.componentID.slice(10))].component_index,u=r.show[parseInt(e.componentID.slice(10))].component_name,c=(0,Uo.O4)(a,i,o),h=(0,Uo.el)(t,u),f=e.unitID.slice(5),p=t.data[h],g=t.data[h].type,m=p.attributes;switch(g){case"array":case"stack":m.structure[c][parseInt(f)]=d.value,m.value[c][parseInt(f)]=d.value,m.color[c][parseInt(f)]=d.color,m.arrow[c][parseInt(f)]=d.arrow,m.hidden[c][parseInt(f)]=d.hidden;break;case"tree":case"linkedlist":case"graph":m.value[c][parseInt(f)]=d.value,m.color[c][parseInt(f)]=d.color,m.arrow[c][parseInt(f)]=d.arrow,m.hidden[c][parseInt(f)]=d.hidden,console.log("debug findSelectedComponentData\n",m);break;case"matrix":var y=parseInt(f.slice(1,-1).split(",")[0]),b=parseInt(f.slice(1,-1).split(",")[1]);m.value[c][y][b]=d.value,m.color[c][y][b]=d.color,m.arrow[c][y][b]=d.arrow,m.hidden[c][y][b]=d.hidden;break;default:console.log("GUI EDITOR - findUnitData, no matching component type!")}var _=Po(t);n(_),s(!1)}},"Update")),r.createElement("div",null,("graph"==g||"tree"==g||"linkedlist"==g)&&r.createElement($o.A,{label:"Id",disabled:"true",id:"outlined-size-small",helperText:"The unit id is unchangeable",value:d.id,size:"small",onChange:function(t){f(Go(Go({},d),{},{value:t.target.value}))}}),r.createElement($o.A,{label:"Value",id:"outlined-size-small",value:d.value,size:"small",onChange:function(t){f(Go(Go({},d),{},{value:t.target.value}))}}),r.createElement($o.A,{label:"Unit Color",id:"outlined-size-small",value:d.color,size:"small",onChange:function(t){f(Go(Go({},d),{},{color:t.target.value}))}}),r.createElement($o.A,{label:"Arrow Label",id:"outlined-size-small",value:d.arrow,size:"small",onChange:function(t){f(Go(Go({},d),{},{arrow:t.target.value}))}}),"graph"==g&&r.createElement($o.A,{label:"Hidden",id:"outlined-size-small",value:d.hidden,size:"small",onChange:function(t){f(Go(Go({},d),{},{hidden:t.target.value}))}})))))};var Qo=n(9794),ta=n(1826),ea=n(421),na=n(8803);const ra=function(){return r.createElement(Qo.A,{position:"static",sx:{justifyContent:"space-between",flexDirection:"row",padding:"2px 15px",borderBottom:"1px solid #444",backgroundColor:"#000"}},r.createElement(h.A,{display:"flex",flexGrow:1,alignItems:"center"},r.createElement(K.A,{sx:{fontWeight:"bold",textTransform:"uppercase"}},"Intuition Vis")),r.createElement(h.A,{display:"flex"},r.createElement(ta.A,{disableGutters:!0},r.createElement(ea.Ay,{container:!0,justifyContent:"space-between",alignItems:"center"},r.createElement(B.A,{href:"https://github.com/ETH-PEACH-Lab/intuition-vis-test",target:"_blank",rel:"noreferrer",size:"large"},r.createElement(na.A,null)),r.createElement(fo.A,{variant:"text",color:"inherit"},"Docs"),r.createElement(fo.A,{variant:"text",color:"inherit"},"Tutorial"),r.createElement(fo.A,{variant:"text",color:"inherit",href:"https://eth-peach-lab.github.io/intuition-visualisation/",target:"_blank"},"Intuition Viewer")))))};function la(t){return la="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},la(t)}function ia(){ia=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,l=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var i=e&&e.prototype instanceof y?e:y,o=Object.create(i.prototype),a=new F(r||[]);return l(o,"_invoke",{value:S(t,n,a)}),o}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=c;var d="suspendedStart",f="suspendedYield",p="executing",g="completed",m={};function y(){}function b(){}function _(){}var x={};u(x,o,(function(){return this}));var C=Object.getPrototypeOf,v=C&&C(C(E([])));v&&v!==n&&r.call(v,o)&&(x=v);var w=_.prototype=y.prototype=Object.create(x);function k(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function n(l,i,o,a){var s=h(t[l],t,i);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"==la(c)&&r.call(c,"__await")?e.resolve(c.__await).then((function(t){n("next",t,o,a)}),(function(t){n("throw",t,o,a)})):e.resolve(c).then((function(t){u.value=t,o(u)}),(function(t){return n("throw",t,o,a)}))}a(s.arg)}var i;l(this,"_invoke",{value:function(t,r){function l(){return new e((function(e,l){n(t,r,e,l)}))}return i=i?i.then(l,l):l()}})}function S(e,n,r){var l=d;return function(i,o){if(l===p)throw Error("Generator is already running");if(l===g){if("throw"===i)throw o;return{value:t,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=K(a,r);if(s){if(s===m)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(l===d)throw l=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);l=p;var u=h(e,n,r);if("normal"===u.type){if(l=r.done?g:f,u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(l=g,r.method="throw",r.arg=u.arg)}}}function K(e,n){var r=n.method,l=e.iterator[r];if(l===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,K(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=h(l,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function B(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function E(e){if(e||""===e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var l=-1,i=function n(){for(;++l=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return l("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(s&&u){if(this.prev=0;--n){var l=this.tryEntries[n];if(l.tryLoc<=this.prev&&r.call(l,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),B(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var l=r.arg;B(n)}return l}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:E(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function oa(t,e,n,r,l,i,o){try{var a=t[i](o),s=a.value}catch(t){return void n(t)}a.done?e(s):Promise.resolve(s).then(r,l)}function aa(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,l,i,o,a=[],s=!0,u=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(a.push(r.value),a.length!==e);s=!0);}catch(t){u=!0,l=t}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw l}}return a}}(t,e)||sa(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sa(t,e){if(t){if("string"==typeof t)return ua(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ua(t,e):void 0}}function ua(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n0&&n.forEach((function(t){t&&t.style&&(t.style.display="none")})),n&&n.length>0&&n[t].style&&(n[t].style.display="inline")}};(0,r.useEffect)((function(){H()}),[]),(0,r.useEffect)((function(){var t=document.getElementById("preview"),e=0;try{e=t.querySelectorAll("g.page").length}catch(t){console.log("got error when fetching total pages: error")}O(e),R(B-1)}),[I]),(0,r.useEffect)((function(){var t=document.getElementById("preview");if(t&&B<=M){var e=t.querySelectorAll("g.page");e&&e.length>0&&e.forEach((function(t){t&&t.style&&(t.style.display="none")})),e&&e.length>0&&e[B-1].style&&(e[B-1].style.display="inline")}}),[B]),(0,r.useEffect)((function(){try{var t=Wo(s);f(t);var e=(0,Eo.G)(t);m(e),R(B-1)}catch(t){m("DSL grammar is incorrect!"),console.log("update mermaid error:\n",t)}}),[s]),(0,r.useEffect)((function(){var t=function(){F(window.currentPage)};return window.addEventListener("pageChange",t),function(){window.removeEventListener("pageChange",t)}}),[]);var W=function(t){var e=t.clientX,n=i,r=function(t){var r=n+t.clientX-e;r>100&&r20){var l=r.shift();document.cookie="".concat(l.timestamp,"=; max-age=0; path=/")}return r.sort((function(t,e){return new Date(e.timestamp)-new Date(t.timestamp)})),r})),alert("Diagram saved successfully!")},mermaidRef:z,updateInspector:Y,totalPages:M,setTotalPages:O,setSvgContent:D,currentPage:B,setCurrentPage:F}),r.createElement(Zo,{inspectorIndex:S,setCode1:u,parsedCode1:d,setParsedCode1:f,code1:s,currentPage:B,totalPages:M,setCurrentPage:F,setTotalPages:O,dslEditorEditable:P,setDslEditorEditable:j})))))))))};var ha=document.getElementById("app");(0,l.H)(ha).render(r.createElement(r.StrictMode,null,r.createElement(i.A,{theme:u},r.createElement(o.Ay,null),r.createElement(ca,null))))},3026:t=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function n(t,n,r){return(n=function(t){var n=function(t,n){if("object"!=e(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var l=r.call(t,"string");if("object"!=e(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==e(n)?n:n+""}(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}function r(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n0&&e.push(r(e[e.length-1])):e.push(t[n][0]);return e}function i(t){var e={id:null,value:null,color:null,arrow:null,hidden:null};return t.forEach((function(t){var n=Object.keys(t)[0],r=t[n];e[n]=r})),e}var o={Lexer:void 0,ParserRules:[{name:"main$string$1",symbols:[{literal:"d"},{literal:"a"},{literal:"t"},{literal:"a"},{literal:":"}],postprocess:function(t){return t.join("")}},{name:"main$string$2",symbols:[{literal:"d"},{literal:"r"},{literal:"a"},{literal:"w"},{literal:":"}],postprocess:function(t){return t.join("")}},{name:"main",symbols:["_","main$string$1","_","data_entries","_","main$string$2","draw_section","_"],postprocess:function(t){var e={data:t[3]};return e.draw=t[6],e}},{name:"draw_section$ebnf$1",symbols:["draw_entry"]},{name:"draw_section$ebnf$1",symbols:["draw_section$ebnf$1","draw_entry"],postprocess:function(t){return t[0].concat([t[1]])}},{name:"draw_section",symbols:["draw_section$ebnf$1"],postprocess:function(t){return t[0]}},{name:"draw_entry",symbols:["page_entry"],postprocess:function(t){return t[0]}},{name:"page_entry$string$1",symbols:[{literal:"p"},{literal:"a"},{literal:"g"},{literal:"e"}],postprocess:function(t){return t.join("")}},{name:"page_entry$string$2",symbols:[{literal:":"},{literal:"="}],postprocess:function(t){return t.join("")}},{name:"page_entry$ebnf$1$subexpression$1",symbols:["_","show_entry"]},{name:"page_entry$ebnf$1",symbols:["page_entry$ebnf$1$subexpression$1"]},{name:"page_entry$ebnf$1$subexpression$2",symbols:["_","show_entry"]},{name:"page_entry$ebnf$1",symbols:["page_entry$ebnf$1","page_entry$ebnf$1$subexpression$2"],postprocess:function(t){return t[0].concat([t[1]])}},{name:"page_entry",symbols:["_","page_entry$string$1","_","page_index","_","page_entry$string$2","_","range_entry","_",{literal:"{"},"page_entry$ebnf$1","_",{literal:"}"}],postprocess:function(t){var e={};return e.page_index=t[3][0],e.range=t[7],e.show=t[10].map((function(t){return t[1]})),e}},{name:"range_entry",symbols:[{literal:"["},"number",{literal:","},"number",{literal:"]"}],postprocess:function(t){return{start:t[1],end:t[3]}}},{name:"page_index",symbols:["alphanum"]},{name:"show_entry$string$1",symbols:[{literal:"s"},{literal:"h"},{literal:"o"},{literal:"w"}],postprocess:function(t){return t.join("")}},{name:"show_entry",symbols:["show_entry$string$1","_","component_name",{literal:"["},"component_index",{literal:"]"}],postprocess:function(t){return{component_name:t[2][0],component_index:t[4]}}},{name:"component_index$ebnf$1",symbols:[/[A-Za-z0-9\-\+\*/]/]},{name:"component_index$ebnf$1",symbols:["component_index$ebnf$1",/[A-Za-z0-9\-\+\*/]/],postprocess:function(t){return t[0].concat([t[1]])}},{name:"component_index",symbols:["component_index$ebnf$1"],postprocess:function(t){return t[0].join("")}},{name:"component_name",symbols:["alphanum"]},{name:"data_entries$ebnf$1$subexpression$1",symbols:["_","data_entry"]},{name:"data_entries$ebnf$1",symbols:["data_entries$ebnf$1$subexpression$1"]},{name:"data_entries$ebnf$1$subexpression$2",symbols:["_","data_entry"]},{name:"data_entries$ebnf$1",symbols:["data_entries$ebnf$1","data_entries$ebnf$1$subexpression$2"],postprocess:function(t){return t[0].concat([t[1]])}},{name:"data_entries",symbols:["data_entries$ebnf$1"],postprocess:function(t){return t[0].map((function(t){return t[1]}))}},{name:"data_entry$ebnf$1",symbols:["all_type_description"]},{name:"data_entry$ebnf$1",symbols:["data_entry$ebnf$1","all_type_description"],postprocess:function(t){return t[0].concat([t[1]])}},{name:"data_entry",symbols:["data_type","_","var_name","_",{literal:"="},"_",{literal:"{"},"data_entry$ebnf$1","_",{literal:"}"}],postprocess:function(t){switch(t[0][0]){case"array":var e={type:t[0][0],name:t[2]};return e.attributes=i(t[7].map((function(t){return t[0]}))),e;case"stack":var n={type:t[0][0],name:t[2]};return n.attributes=i(t[7].map((function(t){return t[0]}))),n;case"tree":var r={type:t[0][0],name:t[2]};return r.attributes=i(t[7].map((function(t){return t[0]}))),r;case"linkedlist":var l={type:t[0][0],name:t[2]};return l.attributes=i(t[7].map((function(t){return t[0]}))),l;case"matrix":var o={type:t[0][0],name:t[2],processed_data:t[7].map((function(t){return t[0]}))};return o.attributes=i(o.processed_data),o;case"graph":var a={type:t[0][0],name:t[2]};return a.attributes=i(t[7].map((function(t){return t[0]}))),a;default:return}}},{name:"all_type_description",symbols:["data_description"]},{name:"all_type_description",symbols:["matrix_description"],postprocess:function(t){return e=t,(n=[]).concat.apply(n,r(e));var e,n}},{name:"matrix_description",symbols:["_","attribute_name","_",{literal:":"},"_",{literal:"["},"_","matrix_components","_",{literal:"]"}],postprocess:function(t){return n({},t[1][0],l(t[7]))}},{name:"matrix_components$ebnf$1",symbols:[]},{name:"matrix_components$ebnf$1$subexpression$1",symbols:["_",{literal:","},"_","matrix_component_or_star"]},{name:"matrix_components$ebnf$1",symbols:["matrix_components$ebnf$1","matrix_components$ebnf$1$subexpression$1"],postprocess:function(t){return t[0].concat([t[1]])}},{name:"matrix_components",symbols:["matrix_component_or_star","matrix_components$ebnf$1"],postprocess:function(t){return[t[0]].concat(t[1].map((function(t){return t[3]})))}},{name:"matrix_component_or_star",symbols:["matrix_component"]},{name:"matrix_component_or_star",symbols:[{literal:"*"}],postprocess:function(t){return"*"===t[0]?"*":t[0]}},{name:"matrix_component",symbols:[{literal:"["},"matrix_rows",{literal:"]"}],postprocess:function(t){return t[1]}},{name:"matrix_rows$ebnf$1",symbols:[]},{name:"matrix_rows$ebnf$1$subexpression$1",symbols:[{literal:","},"_","matrix_row"]},{name:"matrix_rows$ebnf$1",symbols:["matrix_rows$ebnf$1","matrix_rows$ebnf$1$subexpression$1"],postprocess:function(t){return t[0].concat([t[1]])}},{name:"matrix_rows",symbols:["matrix_row","_","matrix_rows$ebnf$1"],postprocess:function(t){return[t[0]].concat(t[2].map((function(t){return t[2]})))}},{name:"matrix_row$ebnf$1",symbols:[]},{name:"matrix_row$ebnf$1$subexpression$1",symbols:[{literal:","},"_","value"]},{name:"matrix_row$ebnf$1",symbols:["matrix_row$ebnf$1","matrix_row$ebnf$1$subexpression$1"],postprocess:function(t){return t[0].concat([t[1]])}},{name:"matrix_row",symbols:["_",{literal:"["},"value","_","matrix_row$ebnf$1",{literal:"]"}],postprocess:function(t){return[t[2][0]].concat(t[4].map((function(t){return t[2][0]})))}},{name:"data_type$string$1",symbols:[{literal:"a"},{literal:"r"},{literal:"r"},{literal:"a"},{literal:"y"}],postprocess:function(t){return t.join("")}},{name:"data_type",symbols:["data_type$string$1"]},{name:"data_type$string$2",symbols:[{literal:"s"},{literal:"t"},{literal:"a"},{literal:"c"},{literal:"k"}],postprocess:function(t){return t.join("")}},{name:"data_type",symbols:["data_type$string$2"]},{name:"data_type$string$3",symbols:[{literal:"l"},{literal:"i"},{literal:"n"},{literal:"k"},{literal:"e"},{literal:"d"},{literal:"l"},{literal:"i"},{literal:"s"},{literal:"t"}],postprocess:function(t){return t.join("")}},{name:"data_type",symbols:["data_type$string$3"]},{name:"data_type$string$4",symbols:[{literal:"t"},{literal:"r"},{literal:"e"},{literal:"e"}],postprocess:function(t){return t.join("")}},{name:"data_type",symbols:["data_type$string$4"]},{name:"data_type$string$5",symbols:[{literal:"m"},{literal:"a"},{literal:"t"},{literal:"r"},{literal:"i"},{literal:"x"}],postprocess:function(t){return t.join("")}},{name:"data_type",symbols:["data_type$string$5"]},{name:"data_type$string$6",symbols:[{literal:"g"},{literal:"r"},{literal:"a"},{literal:"p"},{literal:"h"}],postprocess:function(t){return t.join("")}},{name:"data_type",symbols:["data_type$string$6"]},{name:"var_name$ebnf$1",symbols:[/[a-zA-Z0-9]/]},{name:"var_name$ebnf$1",symbols:["var_name$ebnf$1",/[a-zA-Z0-9]/],postprocess:function(t){return t[0].concat([t[1]])}},{name:"var_name",symbols:["var_name$ebnf$1"],postprocess:function(t){return t[0].join("").replace(",","")}},{name:"data_description",symbols:["_","attribute_name","_",{literal:":"},"_",{literal:"["},"_","data_rows","_",{literal:"]"}],postprocess:function(t){return n({},t[1][0],l(t[7]))}},{name:"attribute_name",symbols:["alphanum"]},{name:"data_rows$ebnf$1",symbols:[]},{name:"data_rows$ebnf$1$subexpression$1",symbols:[{literal:","},"_","data_row_or_star"]},{name:"data_rows$ebnf$1",symbols:["data_rows$ebnf$1","data_rows$ebnf$1$subexpression$1"],postprocess:function(t){return t[0].concat([t[1]])}},{name:"data_rows",symbols:["data_row_or_star","_","data_rows$ebnf$1"],postprocess:function(t){return[t[0]].concat(t[2].map((function(t){return t[2]})))}},{name:"data_row_or_star",symbols:["data_row"]},{name:"data_row_or_star",symbols:[{literal:"*"}],postprocess:function(t){return"*"===t[0]?"*":t[0]}},{name:"data_row",symbols:[{literal:"["},"_","value_edge_list","_",{literal:"]"}],postprocess:function(t){return"object"==e(t[2][0])?t[2][0]:t[2]}},{name:"value_edge_list",symbols:["edge_list"]},{name:"value_edge_list",symbols:["value_list"],postprocess:function(t){return t[0]}},{name:"value_list$ebnf$1",symbols:[]},{name:"value_list$ebnf$1$subexpression$1",symbols:[{literal:","},"_","value"]},{name:"value_list$ebnf$1",symbols:["value_list$ebnf$1","value_list$ebnf$1$subexpression$1"],postprocess:function(t){return t[0].concat([t[1]])}},{name:"value_list",symbols:["value","_","value_list$ebnf$1"],postprocess:function(t){return[t[0][0]].concat(t[2].map((function(t){return t[2][0]})))}},{name:"edge_list$ebnf$1",symbols:[]},{name:"edge_list$ebnf$1$subexpression$1",symbols:[{literal:","},"_","edge"]},{name:"edge_list$ebnf$1",symbols:["edge_list$ebnf$1","edge_list$ebnf$1$subexpression$1"],postprocess:function(t){return t[0].concat([t[1]])}},{name:"edge_list",symbols:["edge","_","edge_list$ebnf$1"],postprocess:function(t){return[t[0]].concat(t[2].map((function(t){return t[2]})))}},{name:"edge",symbols:[{literal:"("},"_","value","_",{literal:","},"_","value","_",{literal:")"}],postprocess:function(t){return{startPoint:t[2],endPoint:t[6]}}},{name:"value",symbols:["alphanum"]},{name:"number$ebnf$1",symbols:[/[0-9]/]},{name:"number$ebnf$1",symbols:["number$ebnf$1",/[0-9]/],postprocess:function(t){return t[0].concat([t[1]])}},{name:"number",symbols:["number$ebnf$1"],postprocess:function(t){return parseInt(t[0].join(""),10)}},{name:"alphanum$ebnf$1",symbols:[/[a-zA-Z0-9#$!]/]},{name:"alphanum$ebnf$1",symbols:["alphanum$ebnf$1",/[a-zA-Z0-9#$!]/],postprocess:function(t){return t[0].concat([t[1]])}},{name:"alphanum",symbols:["alphanum$ebnf$1"],postprocess:function(t){return t[0].join("")}},{name:"_$ebnf$1",symbols:[]},{name:"_$ebnf$1",symbols:["_$ebnf$1",/[ \t\n\r]/],postprocess:function(t){return t[0].concat([t[1]])}},{name:"_",symbols:["_$ebnf$1"]}],ParserStart:"main"};void 0!==t.exports?t.exports=o:window.grammar=o}()},9038:(t,e,n)=>{"use strict";function r(t){let e="array\n@\n";const n=t.attributes.structure,r=t.attributes.color||[],l=t.attributes.value||[],i=t.attributes.arrow||[];for(let t=0;tr})},6205:(t,e,n)=>{"use strict";function r(t){let e="graph\n@";const n=t.attributes.id,r=t.attributes.edge||[],l=t.attributes.value||[],i=t.attributes.color||[],o=t.attributes.arrow||[],a=t.attributes.hidden||[];for(let t=0;tr})},2936:(t,e,n)=>{"use strict";function r(t){let e="linkedList\n@\n";const n=t.attributes.structure,r=t.attributes.value||[],l=t.attributes.color||[],i=t.attributes.arrow||[];for(let t=0;tr})},4724:(t,e,n)=>{"use strict";function r(t){let e="matrix\n@";const n=t.attributes.structure,r=t.attributes.color||[],l=t.attributes.arrow||[];for(let t=0;tr})},6665:(t,e,n)=>{"use strict";function r(t){let e="stack\n";e+="size: 7\n",e+="@\n";const n=t.attributes.structure,r=t.attributes.color||[],l=t.attributes.arrow||[];for(let t=0;tr})},6835:(t,e,n)=>{"use strict";function r(t){let e="tree\n@";return e+=function(t,e,n,r){if(!t||0===t.length)return"";let l=[{node:t[0],index:0}],i="";for(;l.length>0;){let o=l.shift(),a=o.node,s=o.index;if("none"===a)i+="\nNone:[None,None]";else{let o=2*s+1,u=2*s+2,c=or})},8675:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{G:()=>convertParsedDSLtoMermaid});var _parser_test_mjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7484),_generateArray_mjs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(9038),_generateLinkedlist_mjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2936),_generateStack_mjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(6665),_generateTree_mjs__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6835),_generateMatrix_mjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(4724),_generateGraph_mjs__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(6205);function convertDSLtoMermaid(t){const e=(0,_parser_test_mjs__WEBPACK_IMPORTED_MODULE_0__.n)(t),n=e.data,r=e.draw;let l={};r.forEach((t=>{const e=t.page_index,r=t.range.start,i=t.range.end,o=t.show;for(let t=r;t{let o=i.component_index,a=i.component_name,s=calculateIndex(e,t,o),u=findItemByComponentNameAndIndex(n,a,s);l[`page${t}`][`component_${r}`]={type:u.type,name:a,index:s,attributes:u.attributes},r+=1}))}}));let i="visual\n";const o=Object.keys(l);for(const t of o){i+="page\n";const e=Object.keys(l[t]);for(const n of e){const e=l[t][n];switch(e.type){case"array":i+=(0,_generateArray_mjs__WEBPACK_IMPORTED_MODULE_1__.b)(e);break;case"linkedlist":i+=(0,_generateLinkedlist_mjs__WEBPACK_IMPORTED_MODULE_2__.$)(e);break;case"stack":i+=(0,_generateStack_mjs__WEBPACK_IMPORTED_MODULE_3__.a)(e);break;case"tree":i+=(0,_generateTree_mjs__WEBPACK_IMPORTED_MODULE_4__.w)(e);break;case"matrix":i+=(0,_generateMatrix_mjs__WEBPACK_IMPORTED_MODULE_5__.z)(e);break;case"graph":i+=(0,_generateGraph_mjs__WEBPACK_IMPORTED_MODULE_6__.q)(e);break;default:console.log(`compiler error! no matching componenet type: ${e.type}!`)}}}return i}function convertParsedDSLtoMermaid(t){const e=t.data,n=t.draw;let r={};n.forEach((t=>{const n=t.page_index,l=t.range.start,i=t.range.end,o=t.show;for(let t=l;t{let o=i.component_index,a=i.component_name,s=calculateIndex(n,t,o),u=findItemByComponentNameAndIndex(e,a,s);r[`page${t}`][`component_${l}`]={type:u.type,name:a,index:s,attributes:u.attributes},l+=1}))}}));let l="visual\n";const i=Object.keys(r);for(const t of i){l+="page\n";const e=Object.keys(r[t]);for(const n of e){const e=r[t][n];switch(e.type){case"array":l+=(0,_generateArray_mjs__WEBPACK_IMPORTED_MODULE_1__.b)(e);break;case"linkedlist":l+=(0,_generateLinkedlist_mjs__WEBPACK_IMPORTED_MODULE_2__.$)(e);break;case"stack":l+=(0,_generateStack_mjs__WEBPACK_IMPORTED_MODULE_3__.a)(e);break;case"tree":l+=(0,_generateTree_mjs__WEBPACK_IMPORTED_MODULE_4__.w)(e);break;case"matrix":l+=(0,_generateMatrix_mjs__WEBPACK_IMPORTED_MODULE_5__.z)(e);break;case"graph":l+=(0,_generateGraph_mjs__WEBPACK_IMPORTED_MODULE_6__.q)(e);break;default:console.log(`compiler error! no matching componenet type: ${e.type}!`)}}}return l}function calculateIndex(variableName,variableValue,expression){const regex=new RegExp(`\\b${variableName}\\b`,"g"),replacedExpression=expression.replace(regex,variableValue);try{const result=eval(replacedExpression);return result}catch(t){return console.error("Error evaluating expression:",t),null}}function findItemByComponentNameAndIndex(t,e,n){for(const r of t)if(r.name===e){const t={};for(const[e,l]of Object.entries(r.attributes))Array.isArray(l)?t[e]=l[n]||null:t[e]=l;return{type:r.type,attributes:t}}return console.log(`name: ${e} matches no entries!`),null}},389:(t,e,n)=>{"use strict";n.d(e,{D:()=>l});var r=n(772),l=(0,n(6009).K2)((t=>{const{securityLevel:e}=(0,r.D7)();let n=(0,r.df)("body");if("sandbox"===e){const e=(0,r.df)(`#i${t}`),l=e.node()?.contentDocument??document;n=(0,r.df)(l.body)}return n.select(`#${t}`)}),"selectSvgElement")},3615:(t,e,n)=>{"use strict";n.d(e,{St:()=>s,Xy:()=>k,_S:()=>K,zZ:()=>h});var r=n(8605),l=n(6009),i=(0,r.To)(Object.keys,Object),o=Object.prototype.hasOwnProperty;function a(t){if(!(0,r.HI)(t))return i(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}(0,l.K2)(a,"baseKeys");var s=a,u=(0,r.On)(r.DA,"DataView"),c=(0,r.On)(r.DA,"Promise"),h=(0,r.On)(r.DA,"Set"),d=(0,r.On)(r.DA,"WeakMap"),f="[object Map]",p="[object Promise]",g="[object Set]",m="[object WeakMap]",y="[object DataView]",b=(0,r.$q)(u),_=(0,r.$q)(r.zI),x=(0,r.$q)(c),C=(0,r.$q)(h),v=(0,r.$q)(d),w=r.GT;(u&&w(new u(new ArrayBuffer(1)))!=y||r.zI&&w(new r.zI)!=f||c&&w(c.resolve())!=p||h&&w(new h)!=g||d&&w(new d)!=m)&&(w=(0,l.K2)((function(t){var e=(0,r.GT)(t),n="[object Object]"==e?t.constructor:void 0,l=n?(0,r.$q)(n):"";if(l)switch(l){case b:return y;case _:return f;case x:return p;case C:return g;case v:return m}return e}),"getTag"));var k=w,T=Object.prototype.hasOwnProperty;function S(t){if(null==t)return!0;if((0,r.lr)(t)&&((0,r._i)(t)||"string"==typeof t||"function"==typeof t.splice||(0,r.NY)(t)||(0,r.aB)(t)||(0,r.Th)(t)))return!t.length;var e=k(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if((0,r.HI)(t))return!s(t).length;for(var n in t)if(T.call(t,n))return!1;return!0}(0,l.K2)(S,"isEmpty");var K=S},6404:(t,e,n)=>{"use strict";function r(t){for(var e=[],n=1;nr}),(0,n(6009).K2)(r,"dedent")},772:(t,e,n)=>{"use strict";n.d(e,{$i:()=>pt,A0:()=>Di,AB:()=>_a,AS:()=>Zu,Ag:()=>da,B6:()=>wt,Bp:()=>mc,C0:()=>p,Ch:()=>m,D6:()=>bc,D7:()=>Be,DB:()=>d,DC:()=>Ya,Dl:()=>le,EI:()=>we,EJ:()=>h,Ed:()=>R,Gh:()=>qc,Gs:()=>De,Gu:()=>Ca,H$:()=>st,H1:()=>$t,He:()=>u,IE:()=>po,IU:()=>xe,J$:()=>_,J1:()=>hc,J9:()=>Fc,JW:()=>of,Jj:()=>Tc,Jl:()=>Lc,Jp:()=>Cc,Js:()=>Ie,Ko:()=>Vc,MC:()=>_u,ME:()=>Ee,Mo:()=>va,NN:()=>Ac,Nk:()=>Rc,P$:()=>lt,PG:()=>xa,Ps:()=>Jc,Q2:()=>kt,QO:()=>Xt,Rc:()=>ua,Rm:()=>s,SV:()=>Ce,T9:()=>Pe,TU:()=>wa,UA:()=>pa,UI:()=>ft,UU:()=>Ct,Ug:()=>U,Ui:()=>Ma,VJ:()=>ie,Wi:()=>re,Wt:()=>ge,XV:()=>Fe,Xd:()=>y,Y2:()=>oe,Y7:()=>Hc,YA:()=>kl,YP:()=>ba,ZY:()=>l,_3:()=>Gt,a$:()=>ue,ab:()=>Se,cL:()=>Bt,cw:()=>j,dJ:()=>ac,df:()=>wl,ds:()=>P,eI:()=>Tt,f2:()=>ic,gK:()=>i,h$:()=>pc,hH:()=>C,iN:()=>ve,jU:()=>wc,jZ:()=>zt,jk:()=>je,kB:()=>mu,ke:()=>Te,kl:()=>sc,l7:()=>vn,m7:()=>ke,mW:()=>g,mc:()=>H,mj:()=>Me,ot:()=>ce,pG:()=>nc,rG:()=>ka,sb:()=>mt,sn:()=>Zo,tM:()=>pe,tl:()=>Cn,wX:()=>ca,wZ:()=>vt,xA:()=>At,yF:()=>Oc,yp:()=>yu,yr:()=>na,z1:()=>Gc,zj:()=>St,zp:()=>Ju});var r=n(6009),l=(0,r.P$)({"../../node_modules/.pnpm/dayjs@1.11.11/node_modules/dayjs/dayjs.min.js"(t,e){var n,l;n=t,l=function(){var t=6e4,e=36e5,n="millisecond",l="second",i="minute",o="hour",a="day",s="week",u="month",c="quarter",h="year",d="date",f="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},y=(0,r.K2)((function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t}),"m"),b={s:y,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),l=n%60;return(e<=0?"+":"-")+y(r,2,"0")+":"+y(l,2,"0")},m:(0,r.K2)((function t(e,n){if(e.date()1)return t(o[0])}else{var a=e.name;x[a]=e,l=a}return!r&&l&&(_=l),l||!r&&_}),"t"),k=(0,r.K2)((function(t,e){if(v(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new S(n)}),"O"),T=b;T.l=w,T.i=v,T.w=function(t,e){return k(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var S=function(){function m(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[C]=!0}(0,r.K2)(m,"M");var y=m.prototype;return y.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(T.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(p);if(r){var l=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],l,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],l,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(e)}(t),this.init()},y.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},y.$utils=function(){return T},y.isValid=function(){return!(this.$d.toString()===f)},y.isSame=function(t,e){var n=k(t);return this.startOf(e)<=n&&n<=this.endOf(e)},y.isAfter=function(t,e){return k(t)1?n-1:0),l=1;l2&&void 0!==arguments[2]?arguments[2]:p;e&&e(t,null);let i=r.length;for(;i--;){let e=r[i];if("string"==typeof e){const t=l(e);t!==e&&(n(r)||(r[i]=t),e=t)}t[e]=!0}return t}function S(t){for(let e=0;e/gm),q=a(/\${[\w\W]*}/gm),R=a(/^data-[\-\w.\u00B7-\uFFFF]/),W=a(/^aria-[\-\w]+$/),U=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),H=a(/^(?:\w+script|data):/i),Y=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),G=a(/^html$/i),V=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var J=Object.freeze({__proto__:null,MUSTACHE_EXPR:j,ERB_EXPR:z,TMPLIT_EXPR:q,DATA_ATTR:R,ARIA_ATTR:W,IS_ALLOWED_URI:U,IS_SCRIPT_OR_DATA:H,ATTR_WHITESPACE:Y,DOCTYPE_NAME:G,CUSTOM_ELEMENT:V});const X=(0,r.K2)((function(){return"undefined"==typeof window?null:window}),"getGlobal"),Z=(0,r.K2)((function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";e&&e.hasAttribute(r)&&(n=e.getAttribute(r));const l="dompurify"+(n?"#"+n:"");try{return t.createPolicy(l,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+l+" could not be created."),null}}),"_createTrustedTypesPolicy");function Q(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:X();const n=(0,r.K2)((t=>Q(t)),"DOMPurify");if(n.version="3.1.2",n.removed=[],!e||!e.document||9!==e.document.nodeType)return n.isSupported=!1,n;let{document:l}=e;const i=l,a=i.currentScript,{DocumentFragment:u,HTMLTemplateElement:c,Node:w,Element:k,NodeFilter:S,NamedNodeMap:j=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:z,DOMParser:q,trustedTypes:R}=e,W=k.prototype,H=A(W,"cloneNode"),Y=A(W,"nextSibling"),V=A(W,"childNodes"),tt=A(W,"parentNode");if("function"==typeof c){const t=l.createElement("template");t.content&&t.content.ownerDocument&&(l=t.content.ownerDocument)}let et,nt="";const{implementation:rt,createNodeIterator:lt,createDocumentFragment:it,getElementsByTagName:ot}=l,{importNode:at}=i;let st={};n.isSupported="function"==typeof t&&"function"==typeof tt&&rt&&void 0!==rt.createHTMLDocument;const{MUSTACHE_EXPR:ut,ERB_EXPR:ct,TMPLIT_EXPR:ht,DATA_ATTR:dt,ARIA_ATTR:ft,IS_SCRIPT_OR_DATA:pt,ATTR_WHITESPACE:gt,CUSTOM_ELEMENT:mt}=J;let{IS_ALLOWED_URI:yt}=J,bt=null;const _t=T({},[...B,...F,...E,...M,...$]);let xt=null;const Ct=T({},[...I,...D,...N,...P]);let vt=Object.seal(s(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),wt=null,kt=null,Tt=!0,St=!0,Kt=!1,At=!0,Bt=!1,Ft=!0,Et=!1,Lt=!1,Mt=!1,Ot=!1,$t=!1,It=!1,Dt=!0,Nt=!1,Pt=!0,jt=!1,zt={},qt=null;const Rt=T({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Wt=null;const Ut=T({},["audio","video","img","source","image","track"]);let Ht=null;const Yt=T({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Gt="http://www.w3.org/1998/Math/MathML",Vt="http://www.w3.org/2000/svg",Jt="http://www.w3.org/1999/xhtml";let Xt=Jt,Zt=!1,Qt=null;const te=T({},[Gt,Vt,Jt],g);let ee=null;const ne=["application/xhtml+xml","text/html"];let re=null,le=null;const ie=l.createElement("form"),oe=(0,r.K2)((function(t){return t instanceof RegExp||t instanceof Function}),"isRegexOrFunction"),ae=(0,r.K2)((function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!le||le!==t){if(t&&"object"==typeof t||(t={}),t=K(t),ee=-1===ne.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,re="application/xhtml+xml"===ee?g:p,bt=x(t,"ALLOWED_TAGS")?T({},t.ALLOWED_TAGS,re):_t,xt=x(t,"ALLOWED_ATTR")?T({},t.ALLOWED_ATTR,re):Ct,Qt=x(t,"ALLOWED_NAMESPACES")?T({},t.ALLOWED_NAMESPACES,g):te,Ht=x(t,"ADD_URI_SAFE_ATTR")?T(K(Yt),t.ADD_URI_SAFE_ATTR,re):Yt,Wt=x(t,"ADD_DATA_URI_TAGS")?T(K(Ut),t.ADD_DATA_URI_TAGS,re):Ut,qt=x(t,"FORBID_CONTENTS")?T({},t.FORBID_CONTENTS,re):Rt,wt=x(t,"FORBID_TAGS")?T({},t.FORBID_TAGS,re):{},kt=x(t,"FORBID_ATTR")?T({},t.FORBID_ATTR,re):{},zt=!!x(t,"USE_PROFILES")&&t.USE_PROFILES,Tt=!1!==t.ALLOW_ARIA_ATTR,St=!1!==t.ALLOW_DATA_ATTR,Kt=t.ALLOW_UNKNOWN_PROTOCOLS||!1,At=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Bt=t.SAFE_FOR_TEMPLATES||!1,Ft=!1!==t.SAFE_FOR_XML,Et=t.WHOLE_DOCUMENT||!1,Ot=t.RETURN_DOM||!1,$t=t.RETURN_DOM_FRAGMENT||!1,It=t.RETURN_TRUSTED_TYPE||!1,Mt=t.FORCE_BODY||!1,Dt=!1!==t.SANITIZE_DOM,Nt=t.SANITIZE_NAMED_PROPS||!1,Pt=!1!==t.KEEP_CONTENT,jt=t.IN_PLACE||!1,yt=t.ALLOWED_URI_REGEXP||U,Xt=t.NAMESPACE||Jt,vt=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&oe(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(vt.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&oe(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(vt.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(vt.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Bt&&(St=!1),$t&&(Ot=!0),zt&&(bt=T({},$),xt=[],!0===zt.html&&(T(bt,B),T(xt,I)),!0===zt.svg&&(T(bt,F),T(xt,D),T(xt,P)),!0===zt.svgFilters&&(T(bt,E),T(xt,D),T(xt,P)),!0===zt.mathMl&&(T(bt,M),T(xt,N),T(xt,P))),t.ADD_TAGS&&(bt===_t&&(bt=K(bt)),T(bt,t.ADD_TAGS,re)),t.ADD_ATTR&&(xt===Ct&&(xt=K(xt)),T(xt,t.ADD_ATTR,re)),t.ADD_URI_SAFE_ATTR&&T(Ht,t.ADD_URI_SAFE_ATTR,re),t.FORBID_CONTENTS&&(qt===Rt&&(qt=K(qt)),T(qt,t.FORBID_CONTENTS,re)),Pt&&(bt["#text"]=!0),Et&&T(bt,["html","head","body"]),bt.table&&(T(bt,["tbody"]),delete wt.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw v('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw v('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');et=t.TRUSTED_TYPES_POLICY,nt=et.createHTML("")}else void 0===et&&(et=Z(R,a)),null!==et&&"string"==typeof nt&&(nt=et.createHTML(""));o&&o(t),le=t}}),"_parseConfig"),se=T({},["mi","mo","mn","ms","mtext"]),ue=T({},["foreignobject","annotation-xml"]),ce=T({},["title","style","font","a","script"]),he=T({},[...F,...E,...L]),de=T({},[...M,...O]),fe=(0,r.K2)((function(t){let e=tt(t);e&&e.tagName||(e={namespaceURI:Xt,tagName:"template"});const n=p(t.tagName),r=p(e.tagName);return!!Qt[t.namespaceURI]&&(t.namespaceURI===Vt?e.namespaceURI===Jt?"svg"===n:e.namespaceURI===Gt?"svg"===n&&("annotation-xml"===r||se[r]):Boolean(he[n]):t.namespaceURI===Gt?e.namespaceURI===Jt?"math"===n:e.namespaceURI===Vt?"math"===n&&ue[r]:Boolean(de[n]):t.namespaceURI===Jt?!(e.namespaceURI===Vt&&!ue[r])&&!(e.namespaceURI===Gt&&!se[r])&&!de[n]&&(ce[n]||!he[n]):!("application/xhtml+xml"!==ee||!Qt[t.namespaceURI]))}),"_checkValidNamespace"),pe=(0,r.K2)((function(t){f(n.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){t.remove()}}),"_forceRemove"),ge=(0,r.K2)((function(t,e){try{f(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){f(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!xt[t])if(Ot||$t)try{pe(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}}),"_removeAttribute"),me=(0,r.K2)((function(t){let e=null,n=null;if(Mt)t=""+t;else{const e=m(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===ee&&Xt===Jt&&(t=''+t+"");const r=et?et.createHTML(t):t;if(Xt===Jt)try{e=(new q).parseFromString(r,ee)}catch(t){}if(!e||!e.documentElement){e=rt.createDocument(Xt,"template",null);try{e.documentElement.innerHTML=Zt?nt:r}catch(t){}}const i=e.body||e.documentElement;return t&&n&&i.insertBefore(l.createTextNode(n),i.childNodes[0]||null),Xt===Jt?ot.call(e,Et?"html":"body")[0]:Et?e.documentElement:i}),"_initDocument"),ye=(0,r.K2)((function(t){return lt.call(t.ownerDocument||t,t,S.SHOW_ELEMENT|S.SHOW_COMMENT|S.SHOW_TEXT|S.SHOW_PROCESSING_INSTRUCTION|S.SHOW_CDATA_SECTION,null)}),"_createNodeIterator"),be=(0,r.K2)((function(t){return t instanceof z&&(void 0!==t.__depth&&"number"!=typeof t.__depth||void 0!==t.__removalCount&&"number"!=typeof t.__removalCount||"string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof j)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)}),"_isClobbered"),_e=(0,r.K2)((function(t){return"function"==typeof w&&t instanceof w}),"_isNode"),xe=(0,r.K2)((function(t,e,r){st[t]&&h(st[t],(t=>{t.call(n,e,r,le)}))}),"_executeHook"),Ce=(0,r.K2)((function(t){let e=null;if(xe("beforeSanitizeElements",t,null),be(t))return pe(t),!0;const r=re(t.nodeName);if(xe("uponSanitizeElement",t,{tagName:r,allowedTags:bt}),t.hasChildNodes()&&!_e(t.firstElementChild)&&C(/<[/\w]/g,t.innerHTML)&&C(/<[/\w]/g,t.textContent))return pe(t),!0;if(7===t.nodeType)return pe(t),!0;if(Ft&&8===t.nodeType&&C(/<[/\w]/g,t.data))return pe(t),!0;if(!bt[r]||wt[r]){if(!wt[r]&&we(r)){if(vt.tagNameCheck instanceof RegExp&&C(vt.tagNameCheck,r))return!1;if(vt.tagNameCheck instanceof Function&&vt.tagNameCheck(r))return!1}if(Pt&&!qt[r]){const e=tt(t)||t.parentNode,n=V(t)||t.childNodes;if(n&&e)for(let r=n.length-1;r>=0;--r){const l=H(n[r],!0);l.__removalCount=(t.__removalCount||0)+1,e.insertBefore(l,Y(t))}}return pe(t),!0}return t instanceof k&&!fe(t)?(pe(t),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!C(/<\/no(script|embed|frames)/i,t.innerHTML)?(Bt&&3===t.nodeType&&(e=t.textContent,h([ut,ct,ht],(t=>{e=y(e,t," ")})),t.textContent!==e&&(f(n.removed,{element:t.cloneNode()}),t.textContent=e)),xe("afterSanitizeElements",t,null),!1):(pe(t),!0)}),"_sanitizeElements"),ve=(0,r.K2)((function(t,e,n){if(Dt&&("id"===e||"name"===e)&&(n in l||n in ie))return!1;if(St&&!kt[e]&&C(dt,e));else if(Tt&&C(ft,e));else if(!xt[e]||kt[e]){if(!(we(t)&&(vt.tagNameCheck instanceof RegExp&&C(vt.tagNameCheck,t)||vt.tagNameCheck instanceof Function&&vt.tagNameCheck(t))&&(vt.attributeNameCheck instanceof RegExp&&C(vt.attributeNameCheck,e)||vt.attributeNameCheck instanceof Function&&vt.attributeNameCheck(e))||"is"===e&&vt.allowCustomizedBuiltInElements&&(vt.tagNameCheck instanceof RegExp&&C(vt.tagNameCheck,n)||vt.tagNameCheck instanceof Function&&vt.tagNameCheck(n))))return!1}else if(Ht[e]);else if(C(yt,y(n,gt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==b(n,"data:")||!Wt[t])if(Kt&&!C(pt,y(n,gt,"")));else if(n)return!1;return!0}),"_isValidAttribute"),we=(0,r.K2)((function(t){return"annotation-xml"!==t&&m(t,mt)}),"_isBasicCustomElement"),ke=(0,r.K2)((function(t){xe("beforeSanitizeAttributes",t,null);const{attributes:e}=t;if(!e)return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:xt};let l=e.length;for(;l--;){const i=e[l],{name:o,namespaceURI:a,value:s}=i,u=re(o);let c="value"===o?s:_(s);if(r.attrName=u,r.attrValue=c,r.keepAttr=!0,r.forceKeepAttr=void 0,xe("uponSanitizeAttribute",t,r),c=r.attrValue,r.forceKeepAttr)continue;if(ge(o,t),!r.keepAttr)continue;if(!At&&C(/\/>/i,c)){ge(o,t);continue}Bt&&h([ut,ct,ht],(t=>{c=y(c,t," ")}));const f=re(t.nodeName);if(ve(f,u,c)){if(!Nt||"id"!==u&&"name"!==u||(ge(o,t),c="user-content-"+c),et&&"object"==typeof R&&"function"==typeof R.getAttributeType)if(a);else switch(R.getAttributeType(f,u)){case"TrustedHTML":c=et.createHTML(c);break;case"TrustedScriptURL":c=et.createScriptURL(c)}try{a?t.setAttributeNS(a,o,c):t.setAttribute(o,c),d(n.removed)}catch(t){}}}xe("afterSanitizeAttributes",t,null)}),"_sanitizeAttributes"),Te=(0,r.K2)((function t(e){let n=null;const r=ye(e);for(xe("beforeSanitizeShadowDOM",e,null);n=r.nextNode();){if(xe("uponSanitizeShadowNode",n,null),Ce(n))continue;const e=tt(n);1===n.nodeType&&(e&&e.__depth?n.__depth=(n.__removalCount||0)+e.__depth+1:n.__depth=1),n.__depth>=255&&pe(n),n.content instanceof u&&(n.content.__depth=n.__depth,t(n.content)),ke(n)}xe("afterSanitizeShadowDOM",e,null)}),"_sanitizeShadowDOM");return n.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,l=null,o=null,a=null;if(Zt=!t,Zt&&(t="\x3c!--\x3e"),"string"!=typeof t&&!_e(t)){if("function"!=typeof t.toString)throw v("toString is not a function");if("string"!=typeof(t=t.toString()))throw v("dirty is not a string, aborting")}if(!n.isSupported)return t;if(Lt||ae(e),n.removed=[],"string"==typeof t&&(jt=!1),jt){if(t.nodeName){const e=re(t.nodeName);if(!bt[e]||wt[e])throw v("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof w)r=me("\x3c!----\x3e"),l=r.ownerDocument.importNode(t,!0),1===l.nodeType&&"BODY"===l.nodeName||"HTML"===l.nodeName?r=l:r.appendChild(l);else{if(!Ot&&!Bt&&!Et&&-1===t.indexOf("<"))return et&&It?et.createHTML(t):t;if(r=me(t),!r)return Ot?null:It?nt:""}r&&Mt&&pe(r.firstChild);const s=ye(jt?t:r);for(;o=s.nextNode();){if(Ce(o))continue;const t=tt(o);1===o.nodeType&&(t&&t.__depth?o.__depth=(o.__removalCount||0)+t.__depth+1:o.__depth=1),o.__depth>=255&&pe(o),o.content instanceof u&&(o.content.__depth=o.__depth,Te(o.content)),ke(o)}if(jt)return t;if(Ot){if($t)for(a=it.call(r.ownerDocument);r.firstChild;)a.appendChild(r.firstChild);else a=r;return(xt.shadowroot||xt.shadowrootmode)&&(a=at.call(i,a,!0)),a}let c=Et?r.outerHTML:r.innerHTML;return Et&&bt["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&C(G,r.ownerDocument.doctype.name)&&(c="\n"+c),Bt&&h([ut,ct,ht],(t=>{c=y(c,t," ")})),et&&It?et.createHTML(c):c},n.setConfig=function(){ae(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Lt=!0},n.clearConfig=function(){le=null,Lt=!1},n.isValidAttribute=function(t,e,n){le||ae({});const r=re(t),l=re(e);return ve(r,l,n)},n.addHook=function(t,e){"function"==typeof e&&(st[t]=st[t]||[],f(st[t],e))},n.removeHook=function(t){if(st[t])return d(st[t])},n.removeHooks=function(t){st[t]&&(st[t]=[])},n.removeAllHooks=function(){st={}},n}return(0,r.K2)(Q,"createDOMPurify"),Q()}))}}),o=(0,r.f1)(l(),1),a={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},s={trace:(...t)=>{},debug:(...t)=>{},info:(...t)=>{},warn:(...t)=>{},error:(...t)=>{},fatal:(...t)=>{}},u=(0,r.K2)((function(t="fatal"){let e=a.fatal;"string"==typeof t?(t=t.toLowerCase())in a&&(e=a[t]):"number"==typeof t&&(e=t),s.trace=()=>{},s.debug=()=>{},s.info=()=>{},s.warn=()=>{},s.error=()=>{},s.fatal=()=>{},e<=a.fatal&&(s.fatal=console.error?console.error.bind(console,c("FATAL"),"color: orange"):console.log.bind(console,"",c("FATAL"))),e<=a.error&&(s.error=console.error?console.error.bind(console,c("ERROR"),"color: orange"):console.log.bind(console,"",c("ERROR"))),e<=a.warn&&(s.warn=console.warn?console.warn.bind(console,c("WARN"),"color: orange"):console.log.bind(console,"",c("WARN"))),e<=a.info&&(s.info=console.info?console.info.bind(console,c("INFO"),"color: lightblue"):console.log.bind(console,"",c("INFO"))),e<=a.debug&&(s.debug=console.debug?console.debug.bind(console,c("DEBUG"),"color: lightgreen"):console.log.bind(console,"",c("DEBUG"))),e<=a.trace&&(s.trace=console.debug?console.debug.bind(console,c("TRACE"),"color: lightgreen"):console.log.bind(console,"",c("TRACE")))}),"setLogLevel"),c=(0,r.K2)((t=>`%c${(0,o.default)().format("ss.SSS")} : ${t} : `),"format"),h=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,d=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,f=/\s*%%.*\n/gm,p=class extends Error{static{(0,r.K2)(this,"UnknownDiagramError")}constructor(t){super(t),this.name="UnknownDiagramError"}},g={},m=(0,r.K2)((function(t,e){t=t.replace(h,"").replace(d,"").replace(f,"\n");for(const[n,{detector:r}]of Object.entries(g))if(r(t,e))return n;throw new p(`No diagram type detected matching given configuration for text: ${t}`)}),"detectType"),y=(0,r.K2)(((...t)=>{for(const{id:e,detector:n,loader:r}of t)b(e,n,r)}),"registerLazyLoadedDiagrams"),b=(0,r.K2)(((t,e,n)=>{g[t]&&s.warn(`Detector with key ${t} already exists. Overwriting.`),g[t]={detector:e,loader:n},s.debug(`Detector with key ${t} added${n?" with loader":""}`)}),"addDetector"),_=(0,r.K2)((t=>g[t].loader),"getDiagramLoader"),x=(0,r.K2)(((t,e,{depth:n=2,clobber:r=!1}={})=>{const l={depth:n,clobber:r};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach((e=>x(t,e,l))),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach((e=>{t.includes(e)||t.push(e)})),t):void 0===t||n<=0?null!=t&&"object"==typeof t&&"object"==typeof e?Object.assign(t,e):e:(void 0!==e&&"object"==typeof t&&"object"==typeof e&&Object.keys(e).forEach((l=>{"object"!=typeof e[l]||void 0!==t[l]&&"object"!=typeof t[l]?(r||"object"!=typeof t[l]&&"object"!=typeof e[l])&&(t[l]=e[l]):(void 0===t[l]&&(t[l]=Array.isArray(e[l])?[]:{}),t[l]=x(t[l],e[l],{depth:n-1,clobber:r}))})),t)}),"assignWithDepth"),C=x,v={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t),hsl2rgb:({h:t,s:e,l:n},r)=>{if(!e)return 2.55*n;t/=360,e/=100;const l=(n/=100)<.5?n*(1+e):n+e-n*e,i=2*n-l;switch(r){case"r":return 255*v.hue2rgb(i,l,t+1/3);case"g":return 255*v.hue2rgb(i,l,t);case"b":return 255*v.hue2rgb(i,l,t-1/3)}},rgb2hsl:({r:t,g:e,b:n},r)=>{t/=255,e/=255,n/=255;const l=Math.max(t,e,n),i=Math.min(t,e,n),o=(l+i)/2;if("l"===r)return 100*o;if(l===i)return 0;const a=l-i;if("s"===r)return 100*(o>.5?a/(2-l-i):a/(l+i));switch(l){case t:return 60*((e-n)/a+(ee>n?Math.min(e,Math.max(n,t)):Math.min(n,Math.max(e,t)),round:t=>Math.round(1e10*t)/1e10},unit:{dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}}},k={};for(let t=0;t<=255;t++)k[t]=w.unit.dec2hex(t);var T,S=class{static{(0,r.K2)(this,"Type")}constructor(){this.type=0}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=0}is(t){return this.type===t}},K=new class{static{(0,r.K2)(this,"Channels")}constructor(t,e){this.color=e,this.changed=!1,this.data=t,this.type=new S}set(t,e){return this.color=e,this.changed=!1,this.data=t,this.type.type=0,this}_ensureHSL(){const t=this.data,{h:e,s:n,l:r}=t;void 0===e&&(t.h=w.channel.rgb2hsl(t,"h")),void 0===n&&(t.s=w.channel.rgb2hsl(t,"s")),void 0===r&&(t.l=w.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r:e,g:n,b:r}=t;void 0===e&&(t.r=w.channel.hsl2rgb(t,"r")),void 0===n&&(t.g=w.channel.hsl2rgb(t,"g")),void 0===r&&(t.b=w.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,e=t.r;return this.type.is(2)||void 0===e?(this._ensureHSL(),w.channel.hsl2rgb(t,"r")):e}get g(){const t=this.data,e=t.g;return this.type.is(2)||void 0===e?(this._ensureHSL(),w.channel.hsl2rgb(t,"g")):e}get b(){const t=this.data,e=t.b;return this.type.is(2)||void 0===e?(this._ensureHSL(),w.channel.hsl2rgb(t,"b")):e}get h(){const t=this.data,e=t.h;return this.type.is(1)||void 0===e?(this._ensureRGB(),w.channel.rgb2hsl(t,"h")):e}get s(){const t=this.data,e=t.s;return this.type.is(1)||void 0===e?(this._ensureRGB(),w.channel.rgb2hsl(t,"s")):e}get l(){const t=this.data,e=t.l;return this.type.is(1)||void 0===e?(this._ensureRGB(),w.channel.rgb2hsl(t,"l")):e}get a(){return this.data.a}set r(t){this.type.set(1),this.changed=!0,this.data.r=t}set g(t){this.type.set(1),this.changed=!0,this.data.g=t}set b(t){this.type.set(1),this.changed=!0,this.data.b=t}set h(t){this.type.set(2),this.changed=!0,this.data.h=t}set s(t){this.type.set(2),this.changed=!0,this.data.s=t}set l(t){this.type.set(2),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}({r:0,g:0,b:0,a:0},"transparent"),A={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(35!==t.charCodeAt(0))return;const e=t.match(A.re);if(!e)return;const n=e[1],r=parseInt(n,16),l=n.length,i=l%4==0,o=l>4,a=o?1:17,s=o?8:4,u=i?0:-1,c=o?255:15;return K.set({r:(r>>s*(u+3)&c)*a,g:(r>>s*(u+2)&c)*a,b:(r>>s*(u+1)&c)*a,a:i?(r&c)*a/255:1},t)},stringify:t=>{const{r:e,g:n,b:r,a:l}=t;return l<1?`#${k[Math.round(e)]}${k[Math.round(n)]}${k[Math.round(r)]}${k[Math.round(255*l)]}`:`#${k[Math.round(e)]}${k[Math.round(n)]}${k[Math.round(r)]}`}},B=A,F={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{const e=t.match(F.hueRe);if(e){const[,t,n]=e;switch(n){case"grad":return w.channel.clamp.h(.9*parseFloat(t));case"rad":return w.channel.clamp.h(180*parseFloat(t)/Math.PI);case"turn":return w.channel.clamp.h(360*parseFloat(t))}}return w.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(104!==e&&72!==e)return;const n=t.match(F.re);if(!n)return;const[,r,l,i,o,a]=n;return K.set({h:F._hue2deg(r),s:w.channel.clamp.s(parseFloat(l)),l:w.channel.clamp.l(parseFloat(i)),a:o?w.channel.clamp.a(a?parseFloat(o)/100:parseFloat(o)):1},t)},stringify:t=>{const{h:e,s:n,l:r,a:l}=t;return l<1?`hsla(${w.lang.round(e)}, ${w.lang.round(n)}%, ${w.lang.round(r)}%, ${l})`:`hsl(${w.lang.round(e)}, ${w.lang.round(n)}%, ${w.lang.round(r)}%)`}},E=F,L={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();const e=L.colors[t];if(e)return B.parse(e)},stringify:t=>{const e=B.stringify(t);for(const t in L.colors)if(L.colors[t]===e)return t}},M=L,O={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{const e=t.charCodeAt(0);if(114!==e&&82!==e)return;const n=t.match(O.re);if(!n)return;const[,r,l,i,o,a,s,u,c]=n;return K.set({r:w.channel.clamp.r(l?2.55*parseFloat(r):parseFloat(r)),g:w.channel.clamp.g(o?2.55*parseFloat(i):parseFloat(i)),b:w.channel.clamp.b(s?2.55*parseFloat(a):parseFloat(a)),a:u?w.channel.clamp.a(c?parseFloat(u)/100:parseFloat(u)):1},t)},stringify:t=>{const{r:e,g:n,b:r,a:l}=t;return l<1?`rgba(${w.lang.round(e)}, ${w.lang.round(n)}, ${w.lang.round(r)}, ${w.lang.round(l)})`:`rgb(${w.lang.round(e)}, ${w.lang.round(n)}, ${w.lang.round(r)})`}},$=O,I=t=>{if("string"!=typeof t)return t;const e=B.parse(t)||$.parse(t)||E.parse(t)||M.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},D=t=>!t.changed&&t.color?t.color:t.type.is(2)||void 0===t.data.r?E.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?$.stringify(t):B.stringify(t),N=(0,r.K2)(((t,e)=>{const n=I(t);for(const t in e)n[t]=w.channel.clamp[t](e[t]);return D(n)}),"change"),P=(0,r.K2)(((t,e,n=0,r=1)=>{if("number"!=typeof t)return N(t,{a:e});const l=K.set({r:w.channel.clamp.r(t),g:w.channel.clamp.g(e),b:w.channel.clamp.b(n),a:w.channel.clamp.a(r)});return D(l)}),"rgba"),j=(0,r.K2)(((t,e)=>w.lang.round(I(t)[e])),"channel"),z=(0,r.K2)((t=>{const{r:e,g:n,b:r}=I(t),l=.2126*w.channel.toLinear(e)+.7152*w.channel.toLinear(n)+.0722*w.channel.toLinear(r);return w.lang.round(l)}),"luminance"),q=(0,r.K2)((t=>z(t)>=.5),"isLight"),R=(0,r.K2)((t=>!q(t)),"isDark"),W=(0,r.K2)(((t,e,n)=>{const r=I(t),l=r[e],i=w.channel.clamp[e](l+n);return l!==i&&(r[e]=i),D(r)}),"adjustChannel"),U=(0,r.K2)(((t,e)=>W(t,"l",e)),"lighten"),H=(0,r.K2)(((t,e)=>W(t,"l",-e)),"darken"),Y=(0,r.K2)(((t,e)=>{const n=I(t),r={};for(const t in e)e[t]&&(r[t]=n[t]+e[t]);return N(t,r)}),"adjust"),G=(0,r.K2)(((t,e,n=50)=>{const{r,g:l,b:i,a:o}=I(t),{r:a,g:s,b:u,a:c}=I(e),h=n/100,d=2*h-1,f=o-c,p=((d*f==-1?d:(d+f)/(1+d*f))+1)/2,g=1-p;return P(r*p+a*g,l*p+s*g,i*p+u*g,o*h+c*(1-h))}),"mix"),V=(0,r.K2)(((t,e=100)=>{const n=I(t);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,G(n,t,e)}),"invert"),J=(0,r.K2)(((t,e)=>Y(t,e?{s:-40,l:10}:{s:-40,l:-10})),"mkBorder"),X="#ffffff",Z="#f2f2f2",Q=class{static{(0,r.K2)(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||Y(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||Y(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||J(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||J(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||J(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||J(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||V(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||V(this.tertiaryColor),this.lineColor=this.lineColor||V(this.background),this.arrowheadColor=this.arrowheadColor||V(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?H(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||H(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||V(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||U(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Y(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Y(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Y(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Y(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Y(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Y(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||Y(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Y(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Y(this.primaryColor,{h:330}),this.darkMode)for(let t=0;t{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}},tt=(0,r.K2)((t=>{const e=new Q;return e.calculate(t),e}),"getThemeVariables"),et=class{static{(0,r.K2)(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=U(this.primaryColor,16),this.tertiaryColor=Y(this.primaryColor,{h:-160}),this.primaryBorderColor=V(this.background),this.secondaryBorderColor=J(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=J(this.tertiaryColor,this.darkMode),this.primaryTextColor=V(this.primaryColor),this.secondaryTextColor=V(this.secondaryColor),this.tertiaryTextColor=V(this.tertiaryColor),this.lineColor=V(this.background),this.textColor=V(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=U(V("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=P(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=H("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=H(this.sectionBkgColor,10),this.taskBorderColor=P(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=P(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){this.secondBkg=U(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=U(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=U(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Y(this.primaryColor,{h:64}),this.fillType3=Y(this.secondaryColor,{h:64}),this.fillType4=Y(this.primaryColor,{h:-64}),this.fillType5=Y(this.secondaryColor,{h:-64}),this.fillType6=Y(this.primaryColor,{h:128}),this.fillType7=Y(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Y(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Y(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Y(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Y(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Y(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Y(this.primaryColor,{h:210}),this.cScale9=this.cScale9||Y(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Y(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Y(this.primaryColor,{h:330});for(let t=0;t{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}},nt=(0,r.K2)((t=>{const e=new et;return e.calculate(t),e}),"getThemeVariables"),rt=class{static{(0,r.K2)(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=Y(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=Y(this.primaryColor,{h:-160}),this.primaryBorderColor=J(this.primaryColor,this.darkMode),this.secondaryBorderColor=J(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=J(this.tertiaryColor,this.darkMode),this.primaryTextColor=V(this.primaryColor),this.secondaryTextColor=V(this.secondaryColor),this.tertiaryTextColor=V(this.tertiaryColor),this.lineColor=V(this.background),this.textColor=V(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=P(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Y(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Y(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Y(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Y(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Y(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Y(this.primaryColor,{h:210}),this.cScale9=this.cScale9||Y(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Y(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Y(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||H(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||H(this.tertiaryColor,40);for(let t=0;t{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}},lt=(0,r.K2)((t=>{const e=new rt;return e.calculate(t),e}),"getThemeVariables"),it=class{static{(0,r.K2)(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=U("#cde498",10),this.primaryBorderColor=J(this.primaryColor,this.darkMode),this.secondaryBorderColor=J(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=J(this.tertiaryColor,this.darkMode),this.primaryTextColor=V(this.primaryColor),this.secondaryTextColor=V(this.secondaryColor),this.tertiaryTextColor=V(this.primaryColor),this.lineColor=V(this.background),this.textColor=V(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.actorBorder=H(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Y(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Y(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Y(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Y(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Y(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Y(this.primaryColor,{h:210}),this.cScale9=this.cScale9||Y(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Y(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Y(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||H(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||H(this.tertiaryColor,40);for(let t=0;t{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}},ot=(0,r.K2)((t=>{const e=new it;return e.calculate(t),e}),"getThemeVariables"),at=class{static{(0,r.K2)(this,"Theme")}constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=U(this.contrast,55),this.background="#ffffff",this.tertiaryColor=Y(this.primaryColor,{h:-160}),this.primaryBorderColor=J(this.primaryColor,this.darkMode),this.secondaryBorderColor=J(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=J(this.tertiaryColor,this.darkMode),this.primaryTextColor=V(this.primaryColor),this.secondaryTextColor=V(this.secondaryColor),this.tertiaryTextColor=V(this.tertiaryColor),this.lineColor=V(this.background),this.textColor=V(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.secondBkg=U(this.contrast,55),this.border2=this.contrast,this.actorBorder=U(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let t=0;t{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}},st={base:{getThemeVariables:tt},dark:{getThemeVariables:nt},default:{getThemeVariables:lt},forest:{getThemeVariables:ot},neutral:{getThemeVariables:(0,r.K2)((t=>{const e=new at;return e.calculate(t),e}),"getThemeVariables")}},ut={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},array:{useMaxWidth:!0,borderWidth:1},matrix:{useMaxWidth:!0,borderWidth:1},testslides:{useMaxWidth:!0,borderWidth:1},visslides:{useMaxWidth:!0,borderWidth:1},visual:{useMaxWidth:!0,borderWidth:1},theme:"default",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},ct={...ut,deterministicIDSeed:void 0,themeCSS:void 0,themeVariables:st.default.getThemeVariables(),sequence:{...ut.sequence,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{...ut.gantt,tickInterval:void 0,useWidth:void 0},c4:{...ut.c4,useWidth:void 0,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}},pie:{...ut.pie,useWidth:984},xyChart:{...ut.xyChart,useWidth:void 0},requirement:{...ut.requirement,useWidth:void 0},gitGraph:{...ut.gitGraph,useMaxWidth:!1},sankey:{...ut.sankey,useMaxWidth:!1},packet:{...ut.packet}},ht=(0,r.K2)(((t,e="")=>Object.keys(t).reduce(((n,r)=>Array.isArray(t[r])?n:"object"==typeof t[r]&&null!==t[r]?[...n,e+r,...ht(t[r],"")]:[...n,e+r]),[])),"keyify"),dt=new Set(ht(ct,"")),ft=ct,pt=(0,r.K2)((t=>{if(s.debug("sanitizeDirective called with",t),"object"==typeof t&&null!=t)if(Array.isArray(t))t.forEach((t=>pt(t)));else{for(const e of Object.keys(t)){if(s.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!dt.has(e)||null==t[e]){s.debug("sanitize deleting key: ",e),delete t[e];continue}if("object"==typeof t[e]){s.debug("sanitizing object",e),pt(t[e]);continue}const n=["themeCSS","fontFamily","altFontFamily"];for(const r of n)e.includes(r)&&(s.debug("sanitizing css option",e),t[e]=gt(t[e]))}if(t.themeVariables)for(const e of Object.keys(t.themeVariables)){const n=t.themeVariables[e];n?.match&&!n.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}s.debug("After sanitization",t)}}),"sanitizeDirective"),gt=(0,r.K2)((t=>{let e=0,n=0;for(const r of t){if(e{let n=C({},t),r={};for(const t of e)Kt(t),r=C(r,t);if(n=C(n,r),r.theme&&r.theme in st){const t=C({},T),e=C(t.themeVariables||{},r.themeVariables);n.theme&&n.theme in st&&(n.themeVariables=st[n.theme].getThemeVariables(e))}return Mt(_t=n),_t}),"updateCurrentConfig"),Ct=(0,r.K2)((t=>(yt=C({},mt),yt=C(yt,t),t.theme&&st[t.theme]&&(yt.themeVariables=st[t.theme].getThemeVariables(t.themeVariables)),xt(yt,bt),yt)),"setSiteConfig"),vt=(0,r.K2)((t=>{T=C({},t)}),"saveConfigFromInitialize"),wt=(0,r.K2)((t=>(yt=C(yt,t),xt(yt,bt),yt)),"updateSiteConfig"),kt=(0,r.K2)((()=>C({},yt)),"getSiteConfig"),Tt=(0,r.K2)((t=>(Mt(t),C(_t,t),St())),"setConfig"),St=(0,r.K2)((()=>C({},_t)),"getConfig"),Kt=(0,r.K2)((t=>{t&&(["secure",...yt.secure??[]].forEach((e=>{Object.hasOwn(t,e)&&(s.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])})),Object.keys(t).forEach((e=>{e.startsWith("__")&&delete t[e]})),Object.keys(t).forEach((e=>{"string"==typeof t[e]&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],"object"==typeof t[e]&&Kt(t[e])})))}),"sanitize"),At=(0,r.K2)((t=>{pt(t),!t.fontFamily||t.themeVariables&&t.themeVariables.fontFamily||(t.themeVariables={fontFamily:t.fontFamily}),bt.push(t),xt(yt,bt)}),"addDirective"),Bt=(0,r.K2)(((t=yt)=>{xt(t,bt=[])}),"reset"),Ft={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},Et={},Lt=(0,r.K2)((t=>{Et[t]||(s.warn(Ft[t]),Et[t]=!0)}),"issueWarning"),Mt=(0,r.K2)((t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&Lt("LAZY_LOAD_DEPRECATED")}),"checkConfig"),Ot=(0,r.f1)(i(),1),$t=//gi,It=(0,r.K2)((t=>t?Ht(t).replace(/\\n/g,"#br#").split("#br#"):[""]),"getRows"),Dt=(()=>{let t=!1;return()=>{t||(Nt(),t=!0)}})();function Nt(){const t="data-temp-href-target";Ot.default.addHook("beforeSanitizeAttributes",(e=>{"A"===e.tagName&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")||"")})),Ot.default.addHook("afterSanitizeAttributes",(e=>{"A"===e.tagName&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)||""),e.removeAttribute(t),"_blank"===e.getAttribute("target")&&e.setAttribute("rel","noopener"))}))}(0,r.K2)(Nt,"setupDompurifyHooks");var Pt=(0,r.K2)((t=>(Dt(),Ot.default.sanitize(t))),"removeScript"),jt=(0,r.K2)(((t,e)=>{if(!1!==e.flowchart?.htmlLabels){const n=e.securityLevel;"antiscript"===n||"strict"===n?t=Pt(t):"loose"!==n&&(t=(t=(t=Ht(t)).replace(//g,">")).replace(/=/g,"="),t=Ut(t))}return t}),"sanitizeMore"),zt=(0,r.K2)(((t,e)=>t?t=e.dompurifyConfig?Ot.default.sanitize(jt(t,e),e.dompurifyConfig).toString():Ot.default.sanitize(jt(t,e),{FORBID_TAGS:["style"]}).toString():t),"sanitizeText"),qt=(0,r.K2)(((t,e)=>"string"==typeof t?zt(t,e):t.flat().map((t=>zt(t,e)))),"sanitizeTextOrArray"),Rt=(0,r.K2)((t=>$t.test(t)),"hasBreaks"),Wt=(0,r.K2)((t=>t.split($t)),"splitBreaks"),Ut=(0,r.K2)((t=>t.replace(/#br#/g,"
")),"placeholderToBreak"),Ht=(0,r.K2)((t=>t.replace($t,"#br#")),"breakToPlaceholder"),Yt=(0,r.K2)((t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=e.replaceAll(/\(/g,"\\("),e=e.replaceAll(/\)/g,"\\)")),e}),"getUrl"),Gt=(0,r.K2)((t=>!1!==t&&!["false","null","0"].includes(String(t).trim().toLowerCase())),"evaluate"),Vt=(0,r.K2)((function(...t){const e=t.filter((t=>!isNaN(t)));return Math.max(...e)}),"getMax"),Jt=(0,r.K2)((function(...t){const e=t.filter((t=>!isNaN(t)));return Math.min(...e)}),"getMin"),Xt=(0,r.K2)((function(t){const e=t.split(/(,)/),n=[];for(let t=0;t0&&t+1Math.max(0,t.split(e).length-1)),"countOccurrence"),Qt=(0,r.K2)(((t,e)=>{const n=Zt(t,"~"),r=Zt(e,"~");return 1===n&&1===r}),"shouldCombineSets"),te=(0,r.K2)((t=>{const e=Zt(t,"~");let n=!1;if(e<=1)return t;e%2!=0&&t.startsWith("~")&&(t=t.substring(1),n=!0);const r=[...t];let l=r.indexOf("~"),i=r.lastIndexOf("~");for(;-1!==l&&-1!==i&&l!==i;)r[l]="<",r[i]=">",l=r.indexOf("~"),i=r.lastIndexOf("~");return n&&r.unshift("~"),r.join("")}),"processSet"),ee=(0,r.K2)((()=>void 0!==window.MathMLElement),"isMathMLSupported"),ne=/\$\$(.*)\$\$/g,re=(0,r.K2)((t=>(t.match(ne)?.length??0)>0),"hasKatex"),le=(0,r.K2)((async(t,e)=>{t=await ie(t,e);const n=document.createElement("div");n.innerHTML=t,n.id="katex-temp",n.style.visibility="hidden",n.style.position="absolute",n.style.top="0";const r=document.querySelector("body");r?.insertAdjacentElement("beforeend",n);const l={width:n.clientWidth,height:n.clientHeight};return n.remove(),l}),"calculateMathMLDimensions"),ie=(0,r.K2)((async(t,e)=>{if(!re(t))return t;if(!(ee()||e.legacyMathML||e.forceLegacyMathML))return t.replace(ne,"MathML is unsupported in this environment.");const{default:r}=await n.e(6449).then(n.bind(n,6449)),l=e.forceLegacyMathML||!ee()&&e.legacyMathML?"htmlAndMathml":"mathml";return t.split($t).map((t=>re(t)?`
${t}
`:`
${t}
`)).join("").replace(ne,((t,e)=>r.renderToString(e,{throwOnError:!0,displayMode:!0,output:l}).replace(/\n/g," ").replace(//g,"")))}),"renderKatex"),oe={getRows:It,sanitizeText:zt,sanitizeTextOrArray:qt,hasBreaks:Rt,splitBreaks:Wt,lineBreakRegex:$t,removeScript:Pt,getUrl:Yt,evaluate:Gt,getMax:Vt,getMin:Jt},ae=(0,r.K2)((function(t,e){for(let n of e)t.attr(n[0],n[1])}),"d3Attrs"),se=(0,r.K2)((function(t,e,n){let r=new Map;return n?(r.set("width","100%"),r.set("style",`max-width: ${e}px;`)):(r.set("height",t),r.set("width",e)),r}),"calculateSvgSizeAttrs"),ue=(0,r.K2)((function(t,e,n,r){const l=se(e,n,r);ae(t,l)}),"configureSvgSize"),ce=(0,r.K2)((function(t,e,n,r){const l=e.node().getBBox(),i=l.width,o=l.height;s.info(`SVG bounds: ${i}x${o}`,l);let a=0,u=0;s.info(`Graph bounds: ${a}x${u}`,t),a=i+2*n,u=o+2*n,s.info(`Calculated bounds: ${a}x${u}`),ue(e,u,a,r);const c=`${l.x-n} ${l.y-n} ${l.width+2*n} ${l.height+2*n}`;e.attr("viewBox",c)}),"setupGraphViewbox"),he={},de=(0,r.K2)(((t,e,n)=>{let r="";return t in he&&he[t]?r=he[t](n):s.warn(`No theme found for ${t}`),` & {\n font-family: ${n.fontFamily};\n font-size: ${n.fontSize};\n fill: ${n.textColor}\n }\n\n /* Classes common for multiple diagrams */\n\n & .error-icon {\n fill: ${n.errorBkgColor};\n }\n & .error-text {\n fill: ${n.errorTextColor};\n stroke: ${n.errorTextColor};\n }\n\n & .edge-thickness-normal {\n stroke-width: 2px;\n }\n & .edge-thickness-thick {\n stroke-width: 3.5px\n }\n & .edge-pattern-solid {\n stroke-dasharray: 0;\n }\n\n & .edge-pattern-dashed{\n stroke-dasharray: 3;\n }\n .edge-pattern-dotted {\n stroke-dasharray: 2;\n }\n\n & .marker {\n fill: ${n.lineColor};\n stroke: ${n.lineColor};\n }\n & .marker.cross {\n stroke: ${n.lineColor};\n }\n\n & svg {\n font-family: ${n.fontFamily};\n font-size: ${n.fontSize};\n }\n\n ${r}\n\n ${e}\n`}),"getStyles"),fe=(0,r.K2)(((t,e)=>{void 0!==e&&(he[t]=e)}),"addStylesForDiagram"),pe=de,ge={};(0,r.VA)(ge,{clear:()=>xe,getAccDescription:()=>ke,getAccTitle:()=>ve,getDiagramTitle:()=>Se,setAccDescription:()=>we,setAccTitle:()=>Ce,setDiagramTitle:()=>Te});var me="",ye="",be="",_e=(0,r.K2)((t=>zt(t,St())),"sanitizeText"),xe=(0,r.K2)((()=>{me="",be="",ye=""}),"clear"),Ce=(0,r.K2)((t=>{me=_e(t).replace(/^\s+/g,"")}),"setAccTitle"),ve=(0,r.K2)((()=>me),"getAccTitle"),we=(0,r.K2)((t=>{be=_e(t).replace(/\n\s+/g,"\n")}),"setAccDescription"),ke=(0,r.K2)((()=>be),"getAccDescription"),Te=(0,r.K2)((t=>{ye=_e(t)}),"setDiagramTitle"),Se=(0,r.K2)((()=>ye),"getDiagramTitle"),Ke=s,Ae=u,Be=St,Fe=Tt,Ee=mt,Le=(0,r.K2)((t=>zt(t,Be())),"sanitizeText"),Me=ce,Oe=(0,r.K2)((()=>ge),"getCommonDb"),$e={},Ie=(0,r.K2)(((t,e,n)=>{$e[t]&&Ke.warn(`Diagram with id ${t} already registered. Overwriting.`),$e[t]=e,n&&b(t,n),fe(t,e.styles),e.injectUtils?.(Ke,Ae,Be,Le,Me,Oe(),(()=>{}))}),"registerDiagram"),De=(0,r.K2)((t=>{if(t in $e)return $e[t];throw new Ne(t)}),"getDiagram"),Ne=class extends Error{static{(0,r.K2)(this,"DiagramNotFoundError")}constructor(t){super(`Diagram ${t} not found.`)}};function Pe(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n=e)&&(n=e);else{let r=-1;for(let l of t)null!=(l=e(l,++r,t))&&(n=l)&&(n=l)}return n}function je(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 r=-1;for(let l of t)null!=(l=e(l,++r,t))&&(n>l||void 0===n&&l>=l)&&(n=l)}return n}function ze(t,e){return null==t||null==e?NaN:te?1:t>=e?0:NaN}function qe(t,e){return null==t||null==e?NaN:et?1:e>=t?0:NaN}function Re(t){let e,n,l;function i(t,r,l=0,i=t.length){if(l>>1;n(t[e],r)<0?l=e+1:i=e}while(l>>1;n(t[e],r)<=0?l=e+1:i=e}while(ln&&l(t[o-1],e)>-l(t[o],e)?o-1:o}return 2!==t.length?(e=ze,n=(0,r.K2)(((e,n)=>ze(t(e),n)),"compare2"),l=(0,r.K2)(((e,n)=>t(e)-n),"delta")):(e=t===ze||t===qe?t:We,n=t,l=t),(0,r.K2)(i,"left"),(0,r.K2)(o,"right"),(0,r.K2)(a,"center"),{left:i,center:a,right:o}}function We(){return 0}function Ue(t){return null===t?NaN:+t}(0,r.K2)(Pe,"max"),(0,r.K2)(je,"min"),(0,r.K2)(ze,"ascending"),(0,r.K2)(qe,"descending"),(0,r.K2)(Re,"bisector"),(0,r.K2)(We,"zero"),(0,r.K2)(Ue,"number");var He=Re(ze),Ye=He.right,Ge=(He.left,Re(Ue).center,Ye),Ve=class extends Map{static{(0,r.K2)(this,"InternMap")}constructor(t,e=Qe){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(Je(this,t))}has(t){return super.has(Je(this,t))}set(t,e){return super.set(Xe(this,t),e)}delete(t){return super.delete(Ze(this,t))}};function Je({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function Xe({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function Ze({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}function Qe(t){return null!==t&&"object"==typeof t?t.valueOf():t}(0,r.K2)(Je,"intern_get"),(0,r.K2)(Xe,"intern_set"),(0,r.K2)(Ze,"intern_delete"),(0,r.K2)(Qe,"keyof");var tn=Math.sqrt(50),en=Math.sqrt(10),nn=Math.sqrt(2);function rn(t,e,n){const r=(e-t)/Math.max(0,n),l=Math.floor(Math.log10(r)),i=r/Math.pow(10,l),o=i>=tn?10:i>=en?5:i>=nn?2:1;let a,s,u;return l<0?(u=Math.pow(10,-l)/o,a=Math.round(t*u),s=Math.round(e*u),a/ue&&--s,u=-u):(u=Math.pow(10,l)*o,a=Math.round(t/u),s=Math.round(e/u),a*ue&&--s),s0))return[];if((t=+t)==(e=+e))return[t];const r=e=l))return[];const a=i-l+1,s=new Array(a);if(r)if(o<0)for(let t=0;t+t(e)}function bn(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function _n(){return!this.__axis}function xn(t,e){var n=[],l=null,i=null,o=6,a=6,s=3,u="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,c=t===cn||t===fn?-1:1,h=t===fn||t===hn?"x":"y",d=t===cn||t===dn?gn:mn;function f(r){var f=null==l?e.ticks?e.ticks.apply(e,n):e.domain():l,p=null==i?e.tickFormat?e.tickFormat.apply(e,n):un:i,g=Math.max(o,0)+s,m=e.range(),y=+m[0]+u,b=+m[m.length-1]+u,_=(e.bandwidth?bn:yn)(e.copy(),u),x=r.selection?r.selection():r,C=x.selectAll(".domain").data([null]),v=x.selectAll(".tick").data(f,e).order(),w=v.exit(),k=v.enter().append("g").attr("class","tick"),T=v.select("line"),S=v.select("text");C=C.merge(C.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),v=v.merge(k),T=T.merge(k.append("line").attr("stroke","currentColor").attr(h+"2",c*o)),S=S.merge(k.append("text").attr("fill","currentColor").attr(h,c*g).attr("dy",t===cn?"0em":t===dn?"0.71em":"0.32em")),r!==x&&(C=C.transition(r),v=v.transition(r),T=T.transition(r),S=S.transition(r),w=w.transition(r).attr("opacity",pn).attr("transform",(function(t){return isFinite(t=_(t))?d(t+u):this.getAttribute("transform")})),k.attr("opacity",pn).attr("transform",(function(t){var e=this.parentNode.__axis;return d((e&&isFinite(e=e(t))?e:_(t))+u)}))),w.remove(),C.attr("d",t===fn||t===hn?a?"M"+c*a+","+y+"H"+u+"V"+b+"H"+c*a:"M"+u+","+y+"V"+b:a?"M"+y+","+c*a+"V"+u+"H"+b+"V"+c*a:"M"+y+","+u+"H"+b),v.attr("opacity",1).attr("transform",(function(t){return d(_(t)+u)})),T.attr(h+"2",c*o),S.attr(h,c*g).text(p),x.filter(_n).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===hn?"start":t===fn?"end":"middle"),x.each((function(){this.__axis=_}))}return(0,r.K2)(f,"axis"),f.scale=function(t){return arguments.length?(e=t,f):e},f.ticks=function(){return n=Array.from(arguments),f},f.tickArguments=function(t){return arguments.length?(n=null==t?[]:Array.from(t),f):n.slice()},f.tickValues=function(t){return arguments.length?(l=null==t?null:Array.from(t),f):l&&l.slice()},f.tickFormat=function(t){return arguments.length?(i=t,f):i},f.tickSize=function(t){return arguments.length?(o=a=+t,f):o},f.tickSizeInner=function(t){return arguments.length?(o=+t,f):o},f.tickSizeOuter=function(t){return arguments.length?(a=+t,f):a},f.tickPadding=function(t){return arguments.length?(s=+t,f):s},f.offset=function(t){return arguments.length?(u=+t,f):u},f}function Cn(t){return xn(cn,t)}function vn(t){return xn(dn,t)}function wn(){}function kn(t){return null==t?wn:function(){return this.querySelector(t)}}function Tn(t){"function"!=typeof t&&(t=kn(t));for(var e=this._groups,n=e.length,r=new Array(n),l=0;l=x&&(x=_+1);!(b=m[x])&&++x=0;)(r=l[i])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this}function er(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=nr),(0,r.K2)(e,"compareNode");for(var n=this._groups,l=n.length,i=new Array(l),o=0;oe?1:t>=e?0:NaN}function rr(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function lr(){return Array.from(this)}function ir(){for(var t=this._groups,e=0,n=t.length;e=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),cr.hasOwnProperty(e)?{space:cr[e],local:t}:t}function dr(t){return function(){this.removeAttribute(t)}}function fr(t){return function(){this.removeAttributeNS(t.space,t.local)}}function pr(t,e){return function(){this.setAttribute(t,e)}}function gr(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function mr(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function yr(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function br(t,e){var n=hr(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?fr:dr:"function"==typeof e?n.local?yr:mr:n.local?gr:pr)(n,e))}function _r(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function xr(t){return function(){this.style.removeProperty(t)}}function Cr(t,e,n){return function(){this.style.setProperty(t,e,n)}}function vr(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function wr(t,e,n){return arguments.length>1?this.each((null==e?xr:"function"==typeof e?vr:Cr)(t,e,null==n?"":n)):kr(this.node(),t)}function kr(t,e){return t.style.getPropertyValue(e)||_r(t).getComputedStyle(t,null).getPropertyValue(e)}function Tr(t){return function(){delete this[t]}}function Sr(t,e){return function(){this[t]=e}}function Kr(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function Ar(t,e){return arguments.length>1?this.each((null==e?Tr:"function"==typeof e?Kr:Sr)(t,e)):this.node()[t]}function Br(t){return t.trim().split(/^|\s+/)}function Fr(t){return t.classList||new Er(t)}function Er(t){this._node=t,this._names=Br(t.getAttribute("class")||"")}function Lr(t,e){for(var n=Fr(t),r=-1,l=e.length;++r=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function cl(t){return function(){var e=this.__on;if(e){for(var n,r=0,l=-1,i=e.length;r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}},(0,r.K2)(Lr,"classedAdd"),(0,r.K2)(Mr,"classedRemove"),(0,r.K2)(Or,"classedTrue"),(0,r.K2)($r,"classedFalse"),(0,r.K2)(Ir,"classedFunction"),(0,r.K2)(Dr,"default"),(0,r.K2)(Nr,"textRemove"),(0,r.K2)(Pr,"textConstant"),(0,r.K2)(jr,"textFunction"),(0,r.K2)(zr,"default"),(0,r.K2)(qr,"htmlRemove"),(0,r.K2)(Rr,"htmlConstant"),(0,r.K2)(Wr,"htmlFunction"),(0,r.K2)(Ur,"default"),(0,r.K2)(Hr,"raise"),(0,r.K2)(Yr,"default"),(0,r.K2)(Gr,"lower"),(0,r.K2)(Vr,"default"),(0,r.K2)(Jr,"creatorInherit"),(0,r.K2)(Xr,"creatorFixed"),(0,r.K2)(Zr,"default"),(0,r.K2)(Qr,"default"),(0,r.K2)(tl,"constantNull"),(0,r.K2)(el,"default"),(0,r.K2)(nl,"remove"),(0,r.K2)(rl,"default"),(0,r.K2)(ll,"selection_cloneShallow"),(0,r.K2)(il,"selection_cloneDeep"),(0,r.K2)(ol,"default"),(0,r.K2)(al,"default"),(0,r.K2)(sl,"contextListener"),(0,r.K2)(ul,"parseTypenames"),(0,r.K2)(cl,"onRemove"),(0,r.K2)(hl,"onAdd"),(0,r.K2)(dl,"default"),(0,r.K2)(fl,"dispatchEvent"),(0,r.K2)(pl,"dispatchConstant"),(0,r.K2)(gl,"dispatchFunction"),(0,r.K2)(ml,"default"),(0,r.K2)(yl,"default");var bl=[null];function _l(t,e){this._groups=t,this._parents=e}function xl(){return new _l([[document.documentElement]],bl)}function Cl(){return this}(0,r.K2)(_l,"Selection"),(0,r.K2)(xl,"selection"),(0,r.K2)(Cl,"selection_selection"),_l.prototype=xl.prototype={constructor:_l,select:Tn,selectAll:Fn,selectChild:In,selectChildren:jn,filter:zn,data:Vn,enter:Rn,exit:Xn,join:Zn,merge:Qn,selection:Cl,order:tr,sort:er,call:rr,nodes:lr,node:ir,size:or,empty:ar,each:sr,attr:br,style:wr,property:Ar,classed:Dr,text:zr,html:Ur,raise:Yr,lower:Vr,append:Qr,insert:el,remove:rl,clone:ol,datum:al,on:dl,dispatch:ml,[Symbol.iterator]:yl};var vl=xl;function wl(t){return"string"==typeof t?new _l([[document.querySelector(t)]],[document.documentElement]):new _l([[t]],bl)}function kl(t){return"string"==typeof t?new _l([document.querySelectorAll(t)],[document.documentElement]):new _l([Sn(t)],bl)}function Tl(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Sl(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Kl(){}(0,r.K2)(wl,"default"),(0,r.K2)(kl,"default"),(0,r.K2)(Tl,"default"),(0,r.K2)(Sl,"extend"),(0,r.K2)(Kl,"Color");var Al=.7,Bl=1/Al,Fl="\\s*([+-]?\\d+)\\s*",El="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ll="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ml=/^#([0-9a-f]{3,8})$/,Ol=new RegExp(`^rgb\\(${Fl},${Fl},${Fl}\\)$`),$l=new RegExp(`^rgb\\(${Ll},${Ll},${Ll}\\)$`),Il=new RegExp(`^rgba\\(${Fl},${Fl},${Fl},${El}\\)$`),Dl=new RegExp(`^rgba\\(${Ll},${Ll},${Ll},${El}\\)$`),Nl=new RegExp(`^hsl\\(${El},${Ll},${Ll}\\)$`),Pl=new RegExp(`^hsla\\(${El},${Ll},${Ll},${El}\\)$`),jl={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function zl(){return this.rgb().formatHex()}function ql(){return this.rgb().formatHex8()}function Rl(){return li(this).formatHsl()}function Wl(){return this.rgb().formatRgb()}function Ul(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Ml.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Hl(e):3===n?new Jl(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Yl(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Yl(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Ol.exec(t))?new Jl(e[1],e[2],e[3],1):(e=$l.exec(t))?new Jl(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Il.exec(t))?Yl(e[1],e[2],e[3],e[4]):(e=Dl.exec(t))?Yl(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Nl.exec(t))?ri(e[1],e[2]/100,e[3]/100,1):(e=Pl.exec(t))?ri(e[1],e[2]/100,e[3]/100,e[4]):jl.hasOwnProperty(t)?Hl(jl[t]):"transparent"===t?new Jl(NaN,NaN,NaN,0):null}function Hl(t){return new Jl(t>>16&255,t>>8&255,255&t,1)}function Yl(t,e,n,r){return r<=0&&(t=e=n=NaN),new Jl(t,e,n,r)}function Gl(t){return t instanceof Kl||(t=Ul(t)),t?new Jl((t=t.rgb()).r,t.g,t.b,t.opacity):new Jl}function Vl(t,e,n,r){return 1===arguments.length?Gl(t):new Jl(t,e,n,null==r?1:r)}function Jl(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Xl(){return`#${ni(this.r)}${ni(this.g)}${ni(this.b)}`}function Zl(){return`#${ni(this.r)}${ni(this.g)}${ni(this.b)}${ni(255*(isNaN(this.opacity)?1:this.opacity))}`}function Ql(){const t=ti(this.opacity);return`${1===t?"rgb(":"rgba("}${ei(this.r)}, ${ei(this.g)}, ${ei(this.b)}${1===t?")":`, ${t})`}`}function ti(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function ei(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ni(t){return((t=ei(t))<16?"0":"")+t.toString(16)}function ri(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new oi(t,e,n,r)}function li(t){if(t instanceof oi)return new oi(t.h,t.s,t.l,t.opacity);if(t instanceof Kl||(t=Ul(t)),!t)return new oi;if(t instanceof oi)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,l=Math.min(e,n,r),i=Math.max(e,n,r),o=NaN,a=i-l,s=(i+l)/2;return a?(o=e===i?(n-r)/a+6*(n0&&s<1?0:o,new oi(o,a,s,t.opacity)}function ii(t,e,n,r){return 1===arguments.length?li(t):new oi(t,e,n,null==r?1:r)}function oi(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function ai(t){return(t=(t||0)%360)<0?t+360:t}function si(t){return Math.max(0,Math.min(1,t||0))}function ui(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}Tl(Kl,Ul,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:zl,formatHex:zl,formatHex8:ql,formatHsl:Rl,formatRgb:Wl,toString:Wl}),(0,r.K2)(zl,"color_formatHex"),(0,r.K2)(ql,"color_formatHex8"),(0,r.K2)(Rl,"color_formatHsl"),(0,r.K2)(Wl,"color_formatRgb"),(0,r.K2)(Ul,"color"),(0,r.K2)(Hl,"rgbn"),(0,r.K2)(Yl,"rgba"),(0,r.K2)(Gl,"rgbConvert"),(0,r.K2)(Vl,"rgb"),(0,r.K2)(Jl,"Rgb"),Tl(Jl,Vl,Sl(Kl,{brighter(t){return t=null==t?Bl:Math.pow(Bl,t),new Jl(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Al:Math.pow(Al,t),new Jl(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Jl(ei(this.r),ei(this.g),ei(this.b),ti(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Xl,formatHex:Xl,formatHex8:Zl,formatRgb:Ql,toString:Ql})),(0,r.K2)(Xl,"rgb_formatHex"),(0,r.K2)(Zl,"rgb_formatHex8"),(0,r.K2)(Ql,"rgb_formatRgb"),(0,r.K2)(ti,"clampa"),(0,r.K2)(ei,"clampi"),(0,r.K2)(ni,"hex"),(0,r.K2)(ri,"hsla"),(0,r.K2)(li,"hslConvert"),(0,r.K2)(ii,"hsl"),(0,r.K2)(oi,"Hsl"),Tl(oi,ii,Sl(Kl,{brighter(t){return t=null==t?Bl:Math.pow(Bl,t),new oi(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Al:Math.pow(Al,t),new oi(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,l=2*n-r;return new Jl(ui(t>=240?t-240:t+120,l,r),ui(t,l,r),ui(t<120?t+240:t-120,l,r),this.opacity)},clamp(){return new oi(ai(this.h),si(this.s),si(this.l),ti(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=ti(this.opacity);return`${1===t?"hsl(":"hsla("}${ai(this.h)}, ${100*si(this.s)}%, ${100*si(this.l)}%${1===t?")":`, ${t})`}`}})),(0,r.K2)(ai,"clamph"),(0,r.K2)(si,"clampt"),(0,r.K2)(ui,"hsl2rgb");var ci=Math.PI/180,hi=180/Math.PI,di=.96422,fi=1,pi=.82521,gi=4/29,mi=6/29,yi=3*mi*mi,bi=mi*mi*mi;function _i(t){if(t instanceof Ci)return new Ci(t.l,t.a,t.b,t.opacity);if(t instanceof Ai)return Bi(t);t instanceof Jl||(t=Gl(t));var e,n,r=Ti(t.r),l=Ti(t.g),i=Ti(t.b),o=vi((.2225045*r+.7168786*l+.0606169*i)/fi);return r===l&&l===i?e=n=o:(e=vi((.4360747*r+.3850649*l+.1430804*i)/di),n=vi((.0139322*r+.0971045*l+.7141733*i)/pi)),new Ci(116*o-16,500*(e-o),200*(o-n),t.opacity)}function xi(t,e,n,r){return 1===arguments.length?_i(t):new Ci(t,e,n,null==r?1:r)}function Ci(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function vi(t){return t>bi?Math.pow(t,1/3):t/yi+gi}function wi(t){return t>mi?t*t*t:yi*(t-gi)}function ki(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Ti(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Si(t){if(t instanceof Ai)return new Ai(t.h,t.c,t.l,t.opacity);if(t instanceof Ci||(t=_i(t)),0===t.a&&0===t.b)return new Ai(NaN,0()=>t),"default");function Ei(t,e){return function(n){return t+n*e}}function Li(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function Mi(t,e){var n=e-t;return n?Ei(t,n>180||n<-180?n-360*Math.round(n/360):n):Fi(isNaN(t)?e:t)}function Oi(t){return 1==(t=+t)?$i:function(e,n){return n-e?Li(e,n,t):Fi(isNaN(e)?n:e)}}function $i(t,e){var n=e-t;return n?Ei(t,n):Fi(isNaN(t)?e:t)}function Ii(t){return function(e,n){var r=t((e=Ki(e)).h,(n=Ki(n)).h),l=$i(e.c,n.c),i=$i(e.l,n.l),o=$i(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=l(t),e.l=i(t),e.opacity=o(t),e+""}}}(0,r.K2)(Ei,"linear"),(0,r.K2)(Li,"exponential"),(0,r.K2)(Mi,"hue"),(0,r.K2)(Oi,"gamma"),(0,r.K2)($i,"nogamma"),(0,r.K2)(Ii,"hcl");var Di=Ii(Mi);function Ni(t,e,n,r,l){var i=t*t,o=i*t;return((1-3*t+3*i-o)*e+(4-6*i+3*o)*n+(1+3*t+3*i-3*o)*r+o*l)/6}function Pi(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),l=t[r],i=t[r+1],o=r>0?t[r-1]:2*l-i,a=ri&&(l=e.slice(i,l),a[o]?a[o]+=l:a[++o]=l),(n=n[0])===(r=r[0])?a[o]?a[o]+=r:a[++o]=r:(a[++o]=null,s.push({i:o,x:Yi(n,r)})),i=Ji.lastIndex;return i180?e+=360:e-t>180&&(t+=360),r.push({i:n.push(i(n)+"rotate(",null,l)-2,x:Yi(t,e)})):e&&n.push(i(n)+"rotate("+e+l)}function s(t,e,n,r){t!==e?r.push({i:n.push(i(n)+"skewX(",null,l)-2,x:Yi(t,e)}):e&&n.push(i(n)+"skewX("+e+l)}function u(t,e,n,r,l,o){if(t!==n||e!==r){var a=l.push(i(l)+"scale(",null,",",null,")");o.push({i:a-4,x:Yi(t,n)},{i:a-2,x:Yi(e,r)})}else 1===n&&1===r||l.push(i(l)+"scale("+n+","+r+")")}return(0,r.K2)(i,"pop"),(0,r.K2)(o,"translate"),(0,r.K2)(a,"rotate"),(0,r.K2)(s,"skewX"),(0,r.K2)(u,"scale"),function(e,n){var r=[],l=[];return e=t(e),n=t(n),o(e.translateX,e.translateY,n.translateX,n.translateY,r,l),a(e.rotate,n.rotate,r,l),s(e.skewX,n.skewX,r,l),u(e.scaleX,e.scaleY,n.scaleX,n.scaleY,r,l),e=n=null,function(t){for(var e,n=-1,i=l.length;++ne&&(n=t,t=e,e=n),function(n){return Math.max(t,Math.min(e,n))}}function Co(t,e,n){var r=t[0],l=t[1],i=e[0],o=e[1];return l2?vo:Co,i=o=null,d}function d(e){return null==e||isNaN(e=+e)?n:(i||(i=l(a.map(t),s,u)))(t(c(e)))}return(0,r.K2)(h,"rescale"),(0,r.K2)(d,"scale"),d.invert=function(n){return c(e((o||(o=l(s,a.map(t),Yi)))(n)))},d.domain=function(t){return arguments.length?(a=Array.from(t,mo),h()):a.slice()},d.range=function(t){return arguments.length?(s=Array.from(t),h()):s.slice()},d.rangeRound=function(t){return s=Array.from(t),u=eo,h()},d.clamp=function(t){return arguments.length?(c=!!t||bo,h()):c!==bo},d.interpolate=function(t){return arguments.length?(u=t,h()):u},d.unknown=function(t){return arguments.length?(n=t,d):n},function(n,r){return t=n,e=r,h()}}function To(){return ko()(bo,bo)}function So(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Ko(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function Ao(t){return(t=Ko(Math.abs(t)))?t[1]:NaN}function Bo(t,e){return function(n,r){for(var l=n.length,i=[],o=0,a=t[0],s=0;l>0&&a>0&&(s+a+1>r&&(a=Math.max(1,r-s)),i.push(n.substring(l-=a,l+a)),!((s+=a+1)>r));)a=t[o=(o+1)%t.length];return i.reverse().join(e)}}function Fo(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(0,r.K2)(bo,"identity"),(0,r.K2)(_o,"normalize"),(0,r.K2)(xo,"clamper"),(0,r.K2)(Co,"bimap"),(0,r.K2)(vo,"polymap"),(0,r.K2)(wo,"copy"),(0,r.K2)(ko,"transformer"),(0,r.K2)(To,"continuous"),(0,r.K2)(So,"default"),(0,r.K2)(Ko,"formatDecimalParts"),(0,r.K2)(Ao,"default"),(0,r.K2)(Bo,"default"),(0,r.K2)(Fo,"default");var Eo,Lo=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Mo(t){if(!(e=Lo.exec(t)))throw new Error("invalid format: "+t);var e;return new Oo({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Oo(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function $o(t){t:for(var e,n=t.length,r=1,l=-1;r0&&(l=0)}return l>0?t.slice(0,l)+t.slice(e+1):t}function Io(t,e){var n=Ko(t,e);if(!n)return t+"";var r=n[0],l=n[1],i=l-(Eo=3*Math.max(-8,Math.min(8,Math.floor(l/3))))+1,o=r.length;return i===o?r:i>o?r+new Array(i-o+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Ko(t,Math.max(0,e+i-1))[0]}function Do(t,e){var n=Ko(t,e);if(!n)return t+"";var r=n[0],l=n[1];return l<0?"0."+new Array(-l).join("0")+r:r.length>l+1?r.slice(0,l+1)+"."+r.slice(l+1):r+new Array(l-r.length+2).join("0")}(0,r.K2)(Mo,"formatSpecifier"),Mo.prototype=Oo.prototype,(0,r.K2)(Oo,"FormatSpecifier"),Oo.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type},(0,r.K2)($o,"default"),(0,r.K2)(Io,"default"),(0,r.K2)(Do,"default");var No={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:So,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Do(100*t,e),r:Do,s:Io,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Po(t){return t}(0,r.K2)(Po,"default");var jo,zo,qo,Ro=Array.prototype.map,Wo=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Uo(t){var e=void 0===t.grouping||void 0===t.thousands?Po:Bo(Ro.call(t.grouping,Number),t.thousands+""),n=void 0===t.currency?"":t.currency[0]+"",l=void 0===t.currency?"":t.currency[1]+"",i=void 0===t.decimal?".":t.decimal+"",o=void 0===t.numerals?Po:Fo(Ro.call(t.numerals,String)),a=void 0===t.percent?"%":t.percent+"",s=void 0===t.minus?"−":t.minus+"",u=void 0===t.nan?"NaN":t.nan+"";function c(t){var c=(t=Mo(t)).fill,h=t.align,d=t.sign,f=t.symbol,p=t.zero,g=t.width,m=t.comma,y=t.precision,b=t.trim,_=t.type;"n"===_?(m=!0,_="g"):No[_]||(void 0===y&&(y=12),b=!0,_="g"),(p||"0"===c&&"="===h)&&(p=!0,c="0",h="=");var x="$"===f?n:"#"===f&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",C="$"===f?l:/[%p]/.test(_)?a:"",v=No[_],w=/[defgprs%]/.test(_);function k(t){var n,r,l,a=x,f=C;if("c"===_)f=v(t)+f,t="";else{var k=(t=+t)<0||1/t<0;if(t=isNaN(t)?u:v(Math.abs(t),y),b&&(t=$o(t)),k&&0==+t&&"+"!==d&&(k=!1),a=(k?"("===d?d:s:"-"===d||"("===d?"":d)+a,f=("s"===_?Wo[8+Eo/3]:"")+f+(k&&"("===d?")":""),w)for(n=-1,r=t.length;++n(l=t.charCodeAt(n))||l>57){f=(46===l?i+t.slice(n+1):t.slice(n))+f,t=t.slice(0,n);break}}m&&!p&&(t=e(t,1/0));var T=a.length+t.length+f.length,S=T>1)+a+t+f+S.slice(T);break;default:t=S+a+t+f}return o(t)}return y=void 0===y?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),(0,r.K2)(k,"format"),k.toString=function(){return t+""},k}function h(t,e){var n=c(((t=Mo(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Ao(e)/3))),l=Math.pow(10,-r),i=Wo[8+r/3];return function(t){return n(l*t)+i}}return(0,r.K2)(c,"newFormat"),(0,r.K2)(h,"formatPrefix"),{format:c,formatPrefix:h}}function Ho(t){return jo=Uo(t),zo=jo.format,qo=jo.formatPrefix,jo}function Yo(t){return Math.max(0,-Ao(Math.abs(t)))}function Go(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ao(e)/3)))-Ao(Math.abs(t)))}function Vo(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Ao(e)-Ao(t))+1}function Jo(t,e,n,r){var l,i=an(t,e,n);switch((r=Mo(null==r?",f":r)).type){case"s":var o=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(l=Go(i,o))||(r.precision=l),qo(r,o);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(l=Vo(i,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=l-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(l=Yo(i))||(r.precision=l-2*("%"===r.type))}return zo(r)}function Xo(t){var e=t.domain;return t.ticks=function(t){var n=e();return ln(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return Jo(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,l,i=e(),o=0,a=i.length-1,s=i[o],u=i[a],c=10;for(u0;){if((l=on(s,u,n))===r)return i[o]=s,i[a]=u,e(i);if(l>0)s=Math.floor(s/l)*l,u=Math.ceil(u/l)*l;else{if(!(l<0))break;s=Math.ceil(s*l)/l,u=Math.floor(u*l)/l}r=l}return t},t}function Zo(){var t=To();return t.copy=function(){return wo(t,Zo())},ho.apply(t,arguments),Xo(t)}(0,r.K2)(Uo,"default"),Ho({thousands:",",grouping:[3],currency:["$",""]}),(0,r.K2)(Ho,"defaultLocale"),(0,r.K2)(Yo,"default"),(0,r.K2)(Go,"default"),(0,r.K2)(Vo,"default"),(0,r.K2)(Jo,"tickFormat"),(0,r.K2)(Xo,"linearish"),(0,r.K2)(Zo,"linear");var Qo=new Date,ta=new Date;function ea(t,e,n,l){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return(0,r.K2)(i,"interval"),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=>{const e=i(t),n=i.ceil(t);return t-e(e(t=new Date(+t),null==n?1:Math.floor(n)),t),i.range=(n,r,l)=>{const o=[];if(n=i.ceil(n),l=null==l?1:Math.floor(l),!(n0))return o;let a;do{o.push(a=new Date(+n)),e(n,l),t(n)}while(aea((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(;--r>=0;)for(;e(t,1),!n(t););})),n&&(i.count=(e,r)=>(Qo.setTime(+e),ta.setTime(+r),t(Qo),t(ta),Math.floor(n(Qo,ta))),i.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(l?e=>l(e)%t==0:e=>i.count(0,e)%t==0):i:null)),i}(0,r.K2)(ea,"timeInterval");var na=ea((()=>{}),((t,e)=>{t.setTime(+t+e)}),((t,e)=>e-t));na.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?ea((e=>{e.setTime(Math.floor(e/t)*t)}),((e,n)=>{e.setTime(+e+n*t)}),((e,n)=>(n-e)/t)):na:null),na.range;var ra=1e3,la=6e4,ia=36e5,oa=864e5,aa=6048e5,sa=31536e6,ua=ea((t=>{t.setTime(t-t.getMilliseconds())}),((t,e)=>{t.setTime(+t+e*ra)}),((t,e)=>(e-t)/ra),(t=>t.getUTCSeconds())),ca=(ua.range,ea((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ra)}),((t,e)=>{t.setTime(+t+e*la)}),((t,e)=>(e-t)/la),(t=>t.getMinutes()))),ha=(ca.range,ea((t=>{t.setUTCSeconds(0,0)}),((t,e)=>{t.setTime(+t+e*la)}),((t,e)=>(e-t)/la),(t=>t.getUTCMinutes()))),da=(ha.range,ea((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ra-t.getMinutes()*la)}),((t,e)=>{t.setTime(+t+e*ia)}),((t,e)=>(e-t)/ia),(t=>t.getHours()))),fa=(da.range,ea((t=>{t.setUTCMinutes(0,0,0)}),((t,e)=>{t.setTime(+t+e*ia)}),((t,e)=>(e-t)/ia),(t=>t.getUTCHours()))),pa=(fa.range,ea((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*la)/oa),(t=>t.getDate()-1))),ga=(pa.range,ea((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/oa),(t=>t.getUTCDate()-1))),ma=(ga.range,ea((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/oa),(t=>Math.floor(t/oa))));function ya(t){return ea((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())*la)/aa))}ma.range,(0,r.K2)(ya,"timeWeekday");var ba=ya(0),_a=ya(1),xa=ya(2),Ca=ya(3),va=ya(4),wa=ya(5),ka=ya(6);function Ta(t){return ea((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)/aa))}ba.range,_a.range,xa.range,Ca.range,va.range,wa.range,ka.range,(0,r.K2)(Ta,"utcWeekday");var Sa=Ta(0),Ka=Ta(1),Aa=Ta(2),Ba=Ta(3),Fa=Ta(4),Ea=Ta(5),La=Ta(6),Ma=(Sa.range,Ka.range,Aa.range,Ba.range,Fa.range,Ea.range,La.range,ea((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()))),Oa=(Ma.range,ea((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()))),$a=(Oa.range,ea((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())));$a.every=t=>isFinite(t=Math.floor(t))&&t>0?ea((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,$a.range;var Ia=ea((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()));function Da(t,e,n,l,i,o){const a=[[ua,1,ra],[ua,5,5e3],[ua,15,15e3],[ua,30,3e4],[o,1,la],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,ia],[i,3,108e5],[i,6,216e5],[i,12,432e5],[l,1,oa],[l,2,1728e5],[n,1,aa],[e,1,2592e6],[e,3,7776e6],[t,1,sa]];function s(t,e,n){const r=et)).right(a,l);if(i===a.length)return t.every(an(e/sa,n/sa,r));if(0===i)return na.every(Math.max(an(e,n,r),1));const[o,s]=a[l/a[i-1][2]isFinite(t=Math.floor(t))&&t>0?ea((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,Ia.range,(0,r.K2)(Da,"ticker");var[Na,Pa]=Da(Ia,Oa,Sa,ma,fa,ha),[ja,za]=Da($a,Ma,ba,pa,da,ca);function qa(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Ra(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Wa(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Ua(t){var e=t.dateTime,n=t.date,l=t.time,i=t.periods,o=t.days,a=t.shortDays,s=t.months,u=t.shortMonths,c=ts(i),h=es(i),d=ts(o),f=es(o),p=ts(a),g=es(a),m=ts(s),y=es(s),b=ts(u),_=es(u),x={a:O,A:$,b:I,B:D,c:null,d:vs,e:vs,f:Ks,g:Ns,G:js,H:ws,I:ks,j:Ts,L:Ss,m:As,M:Bs,p:N,q:P,Q:uu,s:cu,S:Fs,u:Es,U:Ls,V:Os,w:$s,W:Is,x:null,X:null,y:Ds,Y:Ps,Z:zs,"%":su},C={a:j,A:z,b:q,B:R,c:null,d:qs,e:qs,f:Ys,g:lu,G:ou,H:Rs,I:Ws,j:Us,L:Hs,m:Gs,M:Vs,p:W,q:U,Q:uu,s:cu,S:Js,u:Xs,U:Zs,V:tu,w:eu,W:nu,x:null,X:null,y:ru,Y:iu,Z:au,"%":su},v={a:K,A,b:B,B:F,c:E,d:ds,e:ds,f:bs,g:ss,G:as,H:ps,I:ps,j:fs,L:ys,m:hs,M:gs,p:S,q:cs,Q:xs,s:Cs,S:ms,u:rs,U:ls,V:is,w:ns,W:os,x:L,X:M,y:ss,Y:as,Z:us,"%":_s};function w(t,e){return function(n){var r,l,i,o=[],a=-1,s=0,u=t.length;for(n instanceof Date||(n=new Date(+n));++a53)return null;"w"in i||(i.w=1),"Z"in i?(l=(r=Ra(Wa(i.y,0,1))).getUTCDay(),r=l>4||0===l?Ka.ceil(r):Ka(r),r=ga.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(l=(r=qa(Wa(i.y,0,1))).getDay(),r=l>4||0===l?_a.ceil(r):_a(r),r=pa.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),l="Z"in i?Ra(Wa(i.y,0,1)).getUTCDay():qa(Wa(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(l+5)%7:i.w+7*i.U-(l+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,Ra(i)):qa(i)}}function T(t,e,n,r){for(var l,i,o=0,a=e.length,s=n.length;o=s)return-1;if(37===(l=e.charCodeAt(o++))){if(l=e.charAt(o++),!(i=v[l in Ga?e.charAt(o++):l])||(r=i(t,n,r))<0)return-1}else if(l!=n.charCodeAt(r++))return-1}return r}function S(t,e,n){var r=c.exec(e.slice(n));return r?(t.p=h.get(r[0].toLowerCase()),n+r[0].length):-1}function K(t,e,n){var r=p.exec(e.slice(n));return r?(t.w=g.get(r[0].toLowerCase()),n+r[0].length):-1}function A(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=f.get(r[0].toLowerCase()),n+r[0].length):-1}function B(t,e,n){var r=b.exec(e.slice(n));return r?(t.m=_.get(r[0].toLowerCase()),n+r[0].length):-1}function F(t,e,n){var r=m.exec(e.slice(n));return r?(t.m=y.get(r[0].toLowerCase()),n+r[0].length):-1}function E(t,n,r){return T(t,e,n,r)}function L(t,e,r){return T(t,n,e,r)}function M(t,e,n){return T(t,l,e,n)}function O(t){return a[t.getDay()]}function $(t){return o[t.getDay()]}function I(t){return u[t.getMonth()]}function D(t){return s[t.getMonth()]}function N(t){return i[+(t.getHours()>=12)]}function P(t){return 1+~~(t.getMonth()/3)}function j(t){return a[t.getUTCDay()]}function z(t){return o[t.getUTCDay()]}function q(t){return u[t.getUTCMonth()]}function R(t){return s[t.getUTCMonth()]}function W(t){return i[+(t.getUTCHours()>=12)]}function U(t){return 1+~~(t.getUTCMonth()/3)}return x.x=w(n,x),x.X=w(l,x),x.c=w(e,x),C.x=w(n,C),C.X=w(l,C),C.c=w(e,C),(0,r.K2)(w,"newFormat"),(0,r.K2)(k,"newParse"),(0,r.K2)(T,"parseSpecifier"),(0,r.K2)(S,"parsePeriod"),(0,r.K2)(K,"parseShortWeekday"),(0,r.K2)(A,"parseWeekday"),(0,r.K2)(B,"parseShortMonth"),(0,r.K2)(F,"parseMonth"),(0,r.K2)(E,"parseLocaleDateTime"),(0,r.K2)(L,"parseLocaleDate"),(0,r.K2)(M,"parseLocaleTime"),(0,r.K2)(O,"formatShortWeekday"),(0,r.K2)($,"formatWeekday"),(0,r.K2)(I,"formatShortMonth"),(0,r.K2)(D,"formatMonth"),(0,r.K2)(N,"formatPeriod"),(0,r.K2)(P,"formatQuarter"),(0,r.K2)(j,"formatUTCShortWeekday"),(0,r.K2)(z,"formatUTCWeekday"),(0,r.K2)(q,"formatUTCShortMonth"),(0,r.K2)(R,"formatUTCMonth"),(0,r.K2)(W,"formatUTCPeriod"),(0,r.K2)(U,"formatUTCQuarter"),{format:function(t){var e=w(t+="",x);return e.toString=function(){return t},e},parse:function(t){var e=k(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+="",C);return e.toString=function(){return t},e},utcParse:function(t){var e=k(t+="",!0);return e.toString=function(){return t},e}}}(0,r.K2)(qa,"localDate"),(0,r.K2)(Ra,"utcDate"),(0,r.K2)(Wa,"newDate"),(0,r.K2)(Ua,"formatLocale");var Ha,Ya,Ga={"-":"",_:" ",0:"0"},Va=/^\s*\d+/,Ja=/^%/,Xa=/[\\^$*+?|[\]().{}]/g;function Za(t,e,n){var r=t<0?"-":"",l=(r?-t:t)+"",i=l.length;return r+(i[t.toLowerCase(),e])))}function ns(t,e,n){var r=Va.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function rs(t,e,n){var r=Va.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function ls(t,e,n){var r=Va.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function is(t,e,n){var r=Va.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function os(t,e,n){var r=Va.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function as(t,e,n){var r=Va.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function ss(t,e,n){var r=Va.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function us(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function cs(t,e,n){var r=Va.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function hs(t,e,n){var r=Va.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function ds(t,e,n){var r=Va.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function fs(t,e,n){var r=Va.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function ps(t,e,n){var r=Va.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function gs(t,e,n){var r=Va.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function ms(t,e,n){var r=Va.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function ys(t,e,n){var r=Va.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function bs(t,e,n){var r=Va.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function _s(t,e,n){var r=Ja.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function xs(t,e,n){var r=Va.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Cs(t,e,n){var r=Va.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function vs(t,e){return Za(t.getDate(),e,2)}function ws(t,e){return Za(t.getHours(),e,2)}function ks(t,e){return Za(t.getHours()%12||12,e,2)}function Ts(t,e){return Za(1+pa.count($a(t),t),e,3)}function Ss(t,e){return Za(t.getMilliseconds(),e,3)}function Ks(t,e){return Ss(t,e)+"000"}function As(t,e){return Za(t.getMonth()+1,e,2)}function Bs(t,e){return Za(t.getMinutes(),e,2)}function Fs(t,e){return Za(t.getSeconds(),e,2)}function Es(t){var e=t.getDay();return 0===e?7:e}function Ls(t,e){return Za(ba.count($a(t)-1,t),e,2)}function Ms(t){var e=t.getDay();return e>=4||0===e?va(t):va.ceil(t)}function Os(t,e){return t=Ms(t),Za(va.count($a(t),t)+(4===$a(t).getDay()),e,2)}function $s(t){return t.getDay()}function Is(t,e){return Za(_a.count($a(t)-1,t),e,2)}function Ds(t,e){return Za(t.getFullYear()%100,e,2)}function Ns(t,e){return Za((t=Ms(t)).getFullYear()%100,e,2)}function Ps(t,e){return Za(t.getFullYear()%1e4,e,4)}function js(t,e){var n=t.getDay();return Za((t=n>=4||0===n?va(t):va.ceil(t)).getFullYear()%1e4,e,4)}function zs(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Za(e/60|0,"0",2)+Za(e%60,"0",2)}function qs(t,e){return Za(t.getUTCDate(),e,2)}function Rs(t,e){return Za(t.getUTCHours(),e,2)}function Ws(t,e){return Za(t.getUTCHours()%12||12,e,2)}function Us(t,e){return Za(1+ga.count(Ia(t),t),e,3)}function Hs(t,e){return Za(t.getUTCMilliseconds(),e,3)}function Ys(t,e){return Hs(t,e)+"000"}function Gs(t,e){return Za(t.getUTCMonth()+1,e,2)}function Vs(t,e){return Za(t.getUTCMinutes(),e,2)}function Js(t,e){return Za(t.getUTCSeconds(),e,2)}function Xs(t){var e=t.getUTCDay();return 0===e?7:e}function Zs(t,e){return Za(Sa.count(Ia(t)-1,t),e,2)}function Qs(t){var e=t.getUTCDay();return e>=4||0===e?Fa(t):Fa.ceil(t)}function tu(t,e){return t=Qs(t),Za(Fa.count(Ia(t),t)+(4===Ia(t).getUTCDay()),e,2)}function eu(t){return t.getUTCDay()}function nu(t,e){return Za(Ka.count(Ia(t)-1,t),e,2)}function ru(t,e){return Za(t.getUTCFullYear()%100,e,2)}function lu(t,e){return Za((t=Qs(t)).getUTCFullYear()%100,e,2)}function iu(t,e){return Za(t.getUTCFullYear()%1e4,e,4)}function ou(t,e){var n=t.getUTCDay();return Za((t=n>=4||0===n?Fa(t):Fa.ceil(t)).getUTCFullYear()%1e4,e,4)}function au(){return"+0000"}function su(){return"%"}function uu(t){return+t}function cu(t){return Math.floor(+t/1e3)}function hu(t){return Ha=Ua(t),Ya=Ha.format,Ha.parse,Ha.utcFormat,Ha.utcParse,Ha}function du(t,e){var n,r=0,l=(t=t.slice()).length-1,i=t[r],o=t[l];return o1?0:t<-1?Bu:Math.acos(t)}function Mu(t){return t>=1?Fu:t<=-1?-Fu:Math.asin(t)}(0,r.K2)(Lu,"acos"),(0,r.K2)(Mu,"asin");var Ou=Math.PI,$u=2*Ou,Iu=1e-6,Du=$u-Iu;function Nu(t){this._+=t[0];for(let e=1,n=t.length;e=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Nu;const n=10**e;return function(t){this._+=t[0];for(let e=1,r=t.length;eIu)if(Math.abs(c*a-s*u)>Iu&&l){let d=n-i,f=r-o,p=a*a+s*s,g=d*d+f*f,m=Math.sqrt(p),y=Math.sqrt(h),b=l*Math.tan((Ou-Math.acos((p+h-g)/(2*m*y)))/2),_=b/y,x=b/m;Math.abs(_-1)>Iu&&this._append`L${t+_*u},${e+_*c}`,this._append`A${l},${l},0,0,${+(c*d>u*f)},${this._x1=t+x*a},${this._y1=e+x*s}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,n,r,l,i){if(t=+t,e=+e,i=!!i,(n=+n)<0)throw new Error(`negative radius: ${n}`);let o=n*Math.cos(r),a=n*Math.sin(r),s=t+o,u=e+a,c=1^i,h=i?r-l:l-r;null===this._x1?this._append`M${s},${u}`:(Math.abs(this._x1-s)>Iu||Math.abs(this._y1-u)>Iu)&&this._append`L${s},${u}`,n&&(h<0&&(h=h%$u+$u),h>Du?this._append`A${n},${n},0,1,${c},${t-o},${e-a}A${n},${n},0,1,${c},${this._x1=s},${this._y1=u}`:h>Iu&&this._append`A${n},${n},0,${+(h>=Ou)},${c},${this._x1=t+n*Math.cos(l)},${this._y1=e+n*Math.sin(l)}`)}rect(t,e,n,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};function zu(){return new ju}function qu(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(null==n)e=null;else{const t=Math.floor(n);if(!(t>=0))throw new RangeError(`invalid digits: ${n}`);e=t}return t},()=>new ju(e)}function Ru(t){return t.innerRadius}function Wu(t){return t.outerRadius}function Uu(t){return t.startAngle}function Hu(t){return t.endAngle}function Yu(t){return t&&t.padAngle}function Gu(t,e,n,r,l,i,o,a){var s=n-t,u=r-e,c=o-l,h=a-i,d=h*s-c*u;if(!(d*dF*F+E*E&&(k=S,T=K),{cx:k,cy:T,x01:-c,y01:-h,x11:k*(l/C-1),y11:T*(l/C-1)}}function Ju(){var t=Ru,e=Wu,n=xu(0),l=null,i=Uu,o=Hu,a=Yu,s=null,u=qu(c);function c(){var r,c,h=+t.apply(this,arguments),d=+e.apply(this,arguments),f=i.apply(this,arguments)-Fu,p=o.apply(this,arguments)-Fu,g=Cu(p-f),m=p>f;if(s||(s=r=u()),dAu)if(g>Eu-Au)s.moveTo(d*wu(f),d*Su(f)),s.arc(0,0,d,f,p,!m),h>Au&&(s.moveTo(h*wu(p),h*Su(p)),s.arc(0,0,h,p,f,m));else{var y,b,_=f,x=p,C=f,v=p,w=g,k=g,T=a.apply(this,arguments)/2,S=T>Au&&(l?+l.apply(this,arguments):Ku(h*h+d*d)),K=Tu(Cu(d-h)/2,+n.apply(this,arguments)),A=K,B=K;if(S>Au){var F=Mu(S/h*Su(T)),E=Mu(S/d*Su(T));(w-=2*F)>Au?(C+=F*=m?1:-1,v-=F):(w=0,C=v=(f+p)/2),(k-=2*E)>Au?(_+=E*=m?1:-1,x-=E):(k=0,_=x=(f+p)/2)}var L=d*wu(_),M=d*Su(_),O=h*wu(v),$=h*Su(v);if(K>Au){var I,D=d*wu(x),N=d*Su(x),P=h*wu(C),j=h*Su(C);if(gAu?B>Au?(y=Vu(P,j,L,M,d,B,m),b=Vu(D,N,O,$,d,B,m),s.moveTo(y.cx+y.x01,y.cy+y.y01),BAu&&w>Au?A>Au?(y=Vu(O,$,D,N,h,-A,m),b=Vu(L,M,P,j,h,-A,m),s.lineTo(y.cx+y.x01,y.cy+y.y01),At?1:e>=t?0:NaN}function lc(t){return t}function ic(){var t=lc,e=rc,n=null,l=xu(0),i=xu(Eu),o=xu(0);function a(r){var a,s,u,c,h,d=(r=Qu(r)).length,f=0,p=new Array(d),g=new Array(d),m=+l.apply(this,arguments),y=Math.min(Eu,Math.max(-Eu,i.apply(this,arguments)-m)),b=Math.min(Math.abs(y)/d,o.apply(this,arguments)),_=b*(y<0?-1:1);for(a=0;a0&&(f+=h);for(null!=e?p.sort((function(t,n){return e(g[t],g[n])})):null!=n&&p.sort((function(t,e){return n(r[t],r[e])})),a=0,u=f?(y-d*_)/f:0;a0?h*u:0)+_,g[s]={data:r[s],index:a,value:h,startAngle:m,endAngle:c,padAngle:b};return g}return(0,r.K2)(a,"pie"),a.value=function(e){return arguments.length?(t="function"==typeof e?e:xu(+e),a):t},a.sortValues=function(t){return arguments.length?(e=t,n=null,a):e},a.sort=function(t){return arguments.length?(n=t,e=null,a):n},a.startAngle=function(t){return arguments.length?(l="function"==typeof t?t:xu(+t),a):l},a.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:xu(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:xu(+t),a):o},a}(0,r.K2)(zu,"path"),zu.prototype=ju.prototype,(0,r.K2)(qu,"withPath"),(0,r.K2)(Ru,"arcInnerRadius"),(0,r.K2)(Wu,"arcOuterRadius"),(0,r.K2)(Uu,"arcStartAngle"),(0,r.K2)(Hu,"arcEndAngle"),(0,r.K2)(Yu,"arcPadAngle"),(0,r.K2)(Gu,"intersect"),(0,r.K2)(Vu,"cornerTangents"),(0,r.K2)(Ju,"default"),(0,r.K2)(Xu,"Linear"),Xu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},(0,r.K2)(Zu,"default"),Array.prototype.slice,(0,r.K2)(Qu,"default"),(0,r.K2)(tc,"x"),(0,r.K2)(ec,"y"),(0,r.K2)(nc,"default"),(0,r.K2)(rc,"default"),(0,r.K2)(lc,"default"),(0,r.K2)(ic,"default");var oc=class{static{(0,r.K2)(this,"Bump")}constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}};function ac(t){return new oc(t,!0)}function sc(t){return new oc(t,!1)}function uc(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function cc(t){this._context=t}function hc(t){return new cc(t)}function dc(){}function fc(t){this._context=t}function pc(t){return new fc(t)}function gc(t){this._context=t}function mc(t){return new gc(t)}function yc(t,e){this._basis=new cc(t),this._beta=e}(0,r.K2)(ac,"bumpX"),(0,r.K2)(sc,"bumpY"),(0,r.K2)(uc,"point"),(0,r.K2)(cc,"Basis"),cc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:uc(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:uc(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},(0,r.K2)(hc,"default"),(0,r.K2)(dc,"default"),(0,r.K2)(fc,"BasisClosed"),fc.prototype={areaStart:dc,areaEnd:dc,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:uc(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},(0,r.K2)(pc,"default"),(0,r.K2)(gc,"BasisOpen"),gc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:uc(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},(0,r.K2)(mc,"default"),(0,r.K2)(yc,"Bundle"),yc.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,l=t[0],i=e[0],o=t[n]-l,a=e[n]-i,s=-1;++s<=n;)r=s/n,this._basis.point(this._beta*t[s]+(1-this._beta)*(l+r*o),this._beta*e[s]+(1-this._beta)*(i+r*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var bc=(0,r.K2)((function t(e){function n(t){return 1===e?new cc(t):new yc(t,e)}return(0,r.K2)(n,"bundle"),n.beta=function(e){return t(+e)},n}),"custom")(.85);function _c(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function xc(t,e){this._context=t,this._k=(1-e)/6}(0,r.K2)(_c,"point"),(0,r.K2)(xc,"Cardinal"),xc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:_c(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:_c(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Cc=(0,r.K2)((function t(e){function n(t){return new xc(t,e)}return(0,r.K2)(n,"cardinal"),n.tension=function(e){return t(+e)},n}),"custom")(0);function vc(t,e){this._context=t,this._k=(1-e)/6}(0,r.K2)(vc,"CardinalClosed"),vc.prototype={areaStart:dc,areaEnd:dc,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:_c(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var wc=(0,r.K2)((function t(e){function n(t){return new vc(t,e)}return(0,r.K2)(n,"cardinal"),n.tension=function(e){return t(+e)},n}),"custom")(0);function kc(t,e){this._context=t,this._k=(1-e)/6}(0,r.K2)(kc,"CardinalOpen"),kc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:_c(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Tc=(0,r.K2)((function t(e){function n(t){return new kc(t,e)}return(0,r.K2)(n,"cardinal"),n.tension=function(e){return t(+e)},n}),"custom")(0);function Sc(t,e,n){var r=t._x1,l=t._y1,i=t._x2,o=t._y2;if(t._l01_a>Au){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,s=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/s,l=(l*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/s}if(t._l23_a>Au){var u=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,c=3*t._l23_a*(t._l23_a+t._l12_a);i=(i*u+t._x1*t._l23_2a-e*t._l12_2a)/c,o=(o*u+t._y1*t._l23_2a-n*t._l12_2a)/c}t._context.bezierCurveTo(r,l,i,o,t._x2,t._y2)}function Kc(t,e){this._context=t,this._alpha=e}(0,r.K2)(Sc,"point"),(0,r.K2)(Kc,"CatmullRom"),Kc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Sc(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Ac=(0,r.K2)((function t(e){function n(t){return e?new Kc(t,e):new xc(t,0)}return(0,r.K2)(n,"catmullRom"),n.alpha=function(e){return t(+e)},n}),"custom")(.5);function Bc(t,e){this._context=t,this._alpha=e}(0,r.K2)(Bc,"CatmullRomClosed"),Bc.prototype={areaStart:dc,areaEnd:dc,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Sc(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Fc=(0,r.K2)((function t(e){function n(t){return e?new Bc(t,e):new vc(t,0)}return(0,r.K2)(n,"catmullRom"),n.alpha=function(e){return t(+e)},n}),"custom")(.5);function Ec(t,e){this._context=t,this._alpha=e}(0,r.K2)(Ec,"CatmullRomOpen"),Ec.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Sc(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Lc=(0,r.K2)((function t(e){function n(t){return e?new Ec(t,e):new kc(t,0)}return(0,r.K2)(n,"catmullRom"),n.alpha=function(e){return t(+e)},n}),"custom")(.5);function Mc(t){this._context=t}function Oc(t){return new Mc(t)}function $c(t){return t<0?-1:1}function Ic(t,e,n){var r=t._x1-t._x0,l=e-t._x1,i=(t._y1-t._y0)/(r||l<0&&-0),o=(n-t._y1)/(l||r<0&&-0),a=(i*l+o*r)/(r+l);return($c(i)+$c(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(a))||0}function Dc(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Nc(t,e,n){var r=t._x0,l=t._y0,i=t._x1,o=t._y1,a=(i-r)/3;t._context.bezierCurveTo(r+a,l+a*e,i-a,o-a*n,i,o)}function Pc(t){this._context=t}function jc(t){this._context=new zc(t)}function zc(t){this._context=t}function qc(t){return new Pc(t)}function Rc(t){return new jc(t)}function Wc(t){this._context=t}function Uc(t){var e,n,r=t.length-1,l=new Array(r),i=new Array(r),o=new Array(r);for(l[0]=0,i[0]=2,o[0]=t[0]+2*t[1],e=1;e=0;--e)l[e]=(o[e]-l[e+1])/i[e];for(i[r-1]=(t[r]+l[r-1])/2,e=0;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}},(0,r.K2)(Gc,"default"),(0,r.K2)(Vc,"stepBefore"),(0,r.K2)(Jc,"stepAfter");var Xc={value:()=>{}};function Zc(){for(var t,e=0,n=arguments.length,r={};e=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function eh(t,e){for(var n,r=0,l=t.length;r0)for(var n,r,l=new Array(n),i=0;i=0&&e._call.call(void 0,t),e=e._next;--oh}function xh(){hh=(ch=fh.now())+dh,oh=ah=0;try{_h()}finally{oh=0,vh(),hh=0}}function Ch(){var t=fh.now(),e=t-ch;e>uh&&(dh-=e,ch=t)}function vh(){for(var t,e,n=rh,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:rh=e);lh=t,wh(r)}function wh(t){oh||(ah&&(ah=clearTimeout(ah)),t-hh>24?(t<1/0&&(ah=setTimeout(xh,t-fh.now()-dh)),sh&&(sh=clearInterval(sh))):(sh||(ch=fh.now(),sh=setInterval(Ch,uh)),oh=1,ph(xh)))}function kh(t,e,n){var r=new yh;return e=null==e?0:+e,r.restart((n=>{r.stop(),t(n+e)}),e,n),r}(0,r.K2)(gh,"now"),(0,r.K2)(mh,"clearNow"),(0,r.K2)(yh,"Timer"),yh.prototype=bh.prototype={constructor:yh,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?gh():+n)+(null==e?0:+e),this._next||lh===this||(lh?lh._next=this:rh=this,lh=this),this._call=t,this._time=n,wh()},stop:function(){this._call&&(this._call=null,this._time=1/0,wh())}},(0,r.K2)(bh,"timer"),(0,r.K2)(_h,"timerFlush"),(0,r.K2)(xh,"wake"),(0,r.K2)(Ch,"poke"),(0,r.K2)(vh,"nap"),(0,r.K2)(wh,"sleep"),(0,r.K2)(kh,"default");var Th=ih("start","end","cancel","interrupt"),Sh=[],Kh=0,Ah=1,Bh=2,Fh=3,Eh=4,Lh=5,Mh=6;function Oh(t,e,n,r,l,i){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};Nh(t,n,{name:e,index:r,group:l,on:Th,tween:Sh,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:Kh})}function $h(t,e){var n=Dh(t,e);if(n.state>Kh)throw new Error("too late; already scheduled");return n}function Ih(t,e){var n=Dh(t,e);if(n.state>Fh)throw new Error("too late; already running");return n}function Dh(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Nh(t,e,n){var l,i=t.__transition;function o(t){n.state=Ah,n.timer.restart(a,n.delay,n.time),n.delay<=t&&a(t-n.delay)}function a(r){var o,c,h,d;if(n.state!==Ah)return u();for(o in i)if((d=i[o]).name===n.name){if(d.state===Fh)return kh(a);d.state===Eh?(d.state=Mh,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete i[o]):+oBh&&n.state=0&&(t=t.slice(0,e)),!t||"start"===t}))}function yd(t,e,n){var r,l,i=md(e)?$h:Ih;return function(){var o=i(this,t),a=o.on;a!==r&&(l=(r=a).copy()).on(e,n),o.on=l}}function bd(t,e){var n=this._id;return arguments.length<2?Dh(this.node(),n).on.on(t):this.each(yd(n,t,e))}function _d(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function xd(){return this.on("end.remove",_d(this._id))}function Cd(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=kn(t));for(var r=this._groups,l=r.length,i=new Array(l),o=0;orf(e,n).then((e=>(new DOMParser).parseFromString(e,t)))}(0,r.K2)(tf,"number1"),(0,r.K2)((function(t){return[tf(t[0]),tf(t[1])]}),"number2"),["w","e"].map(ef),["n","s"].map(ef),["n","w","e","s","nw","ne","sw","se"].map(ef),(0,r.K2)(ef,"type"),(0,r.K2)(nf,"responseText"),(0,r.K2)(rf,"default"),(0,r.K2)(lf,"parser"),lf("application/xml"),lf("text/html");var of=lf("image/svg+xml");function af(t,e,n){this.k=t,this.x=e,this.y=n}(0,r.K2)(af,"Transform"),af.prototype={constructor:af,scale:function(t){return 1===t?this:new af(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new af(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var sf=new af(1,0,0);function uf(t){for(;!t.__zoom;)if(!(t=t.parentNode))return sf;return t.__zoom}uf.prototype=af.prototype,(0,r.K2)(uf,"transform")},5070:(t,e,n)=>{"use strict";n.d(e,{F:()=>i});var r=n(6009),l=(0,r.P$)({"../../node_modules/.pnpm/@braintree+sanitize-url@7.0.1/node_modules/@braintree/sanitize-url/dist/constants.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.BLANK_URL=t.relativeFirstCharacters=t.urlSchemeRegex=t.ctrlCharactersRegex=t.htmlCtrlEntityRegex=t.htmlEntitiesRegex=t.invalidProtocolRegex=void 0,t.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,t.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,t.htmlCtrlEntityRegex=/&(newline|tab);/gi,t.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,t.urlSchemeRegex=/^.+(:|:)/gim,t.relativeFirstCharacters=[".","/"],t.BLANK_URL="about:blank"}}),i=(0,r.P$)({"../../node_modules/.pnpm/@braintree+sanitize-url@7.0.1/node_modules/@braintree/sanitize-url/dist/index.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.sanitizeUrl=void 0;var e=l();function n(t){return e.relativeFirstCharacters.indexOf(t[0])>-1}function i(t){return t.replace(e.ctrlCharactersRegex,"").replace(e.htmlEntitiesRegex,(function(t,e){return String.fromCharCode(e)}))}function o(t){if(!t)return e.BLANK_URL;var r,l=t;do{r=(l=i(l).replace(e.htmlCtrlEntityRegex,"").replace(e.ctrlCharactersRegex,"").trim()).match(e.ctrlCharactersRegex)||l.match(e.htmlEntitiesRegex)||l.match(e.htmlCtrlEntityRegex)}while(r&&r.length>0);var o=l;if(!o)return e.BLANK_URL;if(n(o))return o;var a=o.match(e.urlSchemeRegex);if(!a)return o;var s=a[0];return e.invalidProtocolRegex.test(s)?e.BLANK_URL:o}(0,r.K2)(n,"isRelativeUrlWithoutProtocol"),(0,r.K2)(i,"decodeHtmlCharacters"),(0,r.K2)(o,"sanitizeUrl"),t.sanitizeUrl=o}})},6009:(t,e,n)=>{"use strict";n.d(e,{K2:()=>u,P$:()=>c,VA:()=>h,f1:()=>p,ie:()=>f});var r=Object.create,l=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,u=(t,e)=>l(t,"name",{value:e,configurable:!0}),c=(t,e)=>function(){return e||(0,t[o(t)[0]])((e={exports:{}}).exports,e),e.exports},h=(t,e)=>{for(var n in e)l(t,n,{get:e[n],enumerable:!0})},d=(t,e,n,r)=>{if(e&&"object"==typeof e||"function"==typeof e)for(let a of o(e))s.call(t,a)||a===n||l(t,a,{get:()=>e[a],enumerable:!(r=i(e,a))||r.enumerable});return t},f=(t,e,n)=>(d(t,e,"default"),n&&d(n,e,"default")),p=(t,e,n)=>(n=null!=t?r(a(t)):{},d(!e&&t&&t.__esModule?n:l(n,"default",{value:t,enumerable:!0}),t))},57:(t,e,n)=>{"use strict";n.d(e,{$C:()=>K,$t:()=>R,C4:()=>U,I5:()=>q,Ib:()=>g,Sm:()=>H,Un:()=>$,_K:()=>W,bH:()=>L,dq:()=>j,pe:()=>s,rY:()=>Y,ru:()=>O,sM:()=>T,vU:()=>f,yT:()=>B});var r=n(5070),l=n(772),i=n(8605),o=n(6009),a=(0,o.f1)((0,r.F)(),1),s="​",u={curveBasis:l.J1,curveBasisClosed:l.h$,curveBasisOpen:l.Bp,curveBumpX:l.dJ,curveBumpY:l.kl,curveBundle:l.D6,curveCardinalClosed:l.jU,curveCardinalOpen:l.Jj,curveCardinal:l.Jp,curveCatmullRomClosed:l.J9,curveCatmullRomOpen:l.Jl,curveCatmullRom:l.NN,curveLinear:l.AS,curveLinearClosed:l.yF,curveMonotoneX:l.Gh,curveMonotoneY:l.Nk,curveNatural:l.Y7,curveStep:l.z1,curveStepAfter:l.Ps,curveStepBefore:l.Ko},c=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,h=(0,o.K2)((function(t,e){const n=d(t,/(?:init\b)|(?:initialize\b)/);let r={};if(Array.isArray(n)){const t=n.map((t=>t.args));(0,l.$i)(t),r=(0,l.hH)(r,[...t])}else r=n.args;if(!r)return;let i=(0,l.Ch)(t,e);const o="config";return void 0!==r[o]&&("flowchart-v2"===i&&(i="flowchart"),r[i]=r[o],delete r[o]),r}),"detectInit"),d=(0,o.K2)((function(t,e=null){try{const n=new RegExp(`[%]{2}(?![{]${c.source})(?=[}][%]{2}).*\n`,"ig");let r;t=t.trim().replace(n,"").replace(/'/gm,'"'),l.Rm.debug(`Detecting diagram directive${null!==e?" type:"+e:""} based on the text:${t}`);const i=[];for(;null!==(r=l.DB.exec(t));)if(r.index===l.DB.lastIndex&&l.DB.lastIndex++,r&&!e||e&&r[1]&&r[1].match(e)||e&&r[2]&&r[2].match(e)){const t=r[1]?r[1]:r[2],e=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;i.push({type:t,args:e})}return 0===i.length?{type:t,args:null}:1===i.length?i[0]:i}catch(n){return l.Rm.error(`ERROR: ${n.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}}),"detectDirective"),f=(0,o.K2)((function(t){return t.replace(l.DB,"")}),"removeDirectives"),p=(0,o.K2)((function(t,e){for(const[n,r]of e.entries())if(r.match(t))return n;return-1}),"isSubstringInArray");function g(t,e){if(!t)return e;const n=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return u[n]??e}function m(t,e){const n=t.trim();if(n)return"loose"!==e.securityLevel?(0,a.sanitizeUrl)(n):n}(0,o.K2)(g,"interpolateToCurve"),(0,o.K2)(m,"formatUrl");var y=(0,o.K2)(((t,...e)=>{const n=t.split("."),r=n.length-1,i=n[r];let o=window;for(let e=0;e{n+=b(t,e),e=t})),v(t,n/2)}function x(t){return 1===t.length?t[0]:_(t)}(0,o.K2)(b,"distance"),(0,o.K2)(_,"traverseEdge"),(0,o.K2)(x,"calcLabelPosition");var C=(0,o.K2)(((t,e=2)=>{const n=Math.pow(10,e);return Math.round(t*n)/n}),"roundNumber"),v=(0,o.K2)(((t,e)=>{let n,r=e;for(const e of t){if(n){const t=b(e,n);if(t=1)return{x:e.x,y:e.y};if(l>0&&l<1)return{x:C((1-l)*n.x+l*e.x,5),y:C((1-l)*n.y+l*e.y,5)}}}n=e}throw new Error("Could not find a suitable point for the given distance")}),"calculatePoint"),w=(0,o.K2)(((t,e,n)=>{l.Rm.info(`our points ${JSON.stringify(e)}`),e[0]!==n&&(e=e.reverse());const r=v(e,25),i=t?10:5,o=Math.atan2(e[0].y-r.y,e[0].x-r.x),a={x:0,y:0};return a.x=Math.sin(o)*i+(e[0].x+r.x)/2,a.y=-Math.cos(o)*i+(e[0].y+r.y)/2,a}),"calcCardinalityPosition");function k(t,e,n){const r=structuredClone(n);l.Rm.info("our points",r),"start_left"!==e&&"start_right"!==e&&r.reverse();const i=v(r,25+t),o=10+.5*t,a=Math.atan2(r[0].y-i.y,r[0].x-i.x),s={x:0,y:0};return"start_left"===e?(s.x=Math.sin(a+Math.PI)*o+(r[0].x+i.x)/2,s.y=-Math.cos(a+Math.PI)*o+(r[0].y+i.y)/2):"end_right"===e?(s.x=Math.sin(a-Math.PI)*o+(r[0].x+i.x)/2-5,s.y=-Math.cos(a-Math.PI)*o+(r[0].y+i.y)/2-5):"end_left"===e?(s.x=Math.sin(a)*o+(r[0].x+i.x)/2-5,s.y=-Math.cos(a)*o+(r[0].y+i.y)/2-5):(s.x=Math.sin(a)*o+(r[0].x+i.x)/2,s.y=-Math.cos(a)*o+(r[0].y+i.y)/2),s}function T(t){let e="",n="";for(const r of t)void 0!==r&&(r.startsWith("color:")||r.startsWith("text-align:")?n=n+r+";":e=e+r+";");return{style:e,labelStyle:n}}(0,o.K2)(k,"calcTerminalLabelPosition"),(0,o.K2)(T,"getStylesFromArray");var S=0,K=(0,o.K2)((()=>(S++,"id-"+Math.random().toString(36).substr(2,12)+"-"+S)),"generateId");function A(t){let e="";for(let n=0;nA(t.length)),"random"),F=(0,o.K2)((function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}}),"getTextObj"),E=(0,o.K2)((function(t,e){const n=e.text.replace(l.Y2.lineBreakRegex," "),[,r]=q(e.fontSize),i=t.append("text");i.attr("x",e.x),i.attr("y",e.y),i.style("text-anchor",e.anchor),i.style("font-family",e.fontFamily),i.style("font-size",r),i.style("font-weight",e.fontWeight),i.attr("fill",e.fill),void 0!==e.class&&i.attr("class",e.class);const o=i.append("tspan");return o.attr("x",e.x+2*e.textMargin),o.attr("fill",e.fill),o.text(n),i}),"drawSimpleText"),L=(0,i.Dr)(((t,e,n)=>{if(!t)return t;if(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
"},n),l.Y2.lineBreakRegex.test(t))return t;const r=t.split(" "),i=[];let o="";return r.forEach(((t,l)=>{const a=$(`${t} `,n),s=$(o,n);if(a>e){const{hyphenatedStrings:r,remainingWord:l}=M(t,e,"-",n);i.push(o,...r),o=l}else s+a>=e?(i.push(o),o=t):o=[o,t].filter(Boolean).join(" ");l+1===r.length&&i.push(o)})),i.filter((t=>""!==t)).join(n.joinWith)}),((t,e,n)=>`${t}${e}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`)),M=(0,i.Dr)(((t,e,n="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const l=[...t],i=[];let o="";return l.forEach(((t,a)=>{const s=`${o}${t}`;if($(s,r)>=e){const t=a+1,e=l.length===t,r=`${s}${n}`;i.push(e?s:r),o=""}else o=s})),{hyphenatedStrings:i,remainingWord:o}}),((t,e,n="-",r)=>`${t}${e}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`));function O(t,e){return D(t,e).height}function $(t,e){return D(t,e).width}(0,o.K2)(O,"calculateTextHeight"),(0,o.K2)($,"calculateTextWidth");var I,D=(0,i.Dr)(((t,e)=>{const{fontSize:n=12,fontFamily:r="Arial",fontWeight:i=400}=e;if(!t)return{width:0,height:0};const[,o]=q(n),a=["sans-serif",r],u=t.split(l.Y2.lineBreakRegex),c=[],h=(0,l.df)("body");if(!h.remove)return{width:0,height:0,lineHeight:0};const d=h.append("svg");for(const t of a){let e=0;const n={width:0,height:0,lineHeight:0};for(const r of u){const l=F();l.text=r||s;const a=E(d,l).style("font-size",o).style("font-weight",i).style("font-family",t),u=(a._groups||a)[0][0].getBBox();if(0===u.width&&0===u.height)throw new Error("svg element not in render tree");n.width=Math.round(Math.max(n.width,u.width)),e=Math.round(u.height),n.height+=e,n.lineHeight=Math.round(Math.max(n.lineHeight,e))}c.push(n)}return d.remove(),c[isNaN(c[1].height)||isNaN(c[1].width)||isNaN(c[1].lineHeight)||c[0].height>c[1].height&&c[0].width>c[1].width&&c[0].lineHeight>c[1].lineHeight?0:1]}),((t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`)),N=class{constructor(t=!1,e){this.count=0,this.count=e?e.length:0,this.next=t?()=>this.count++:()=>Date.now()}static{(0,o.K2)(this,"InitIDGenerator")}},P=(0,o.K2)((function(t){return I=I||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),I.innerHTML=t,unescape(I.textContent)}),"entityDecode");function j(t){return"str"in t}(0,o.K2)(j,"isDetailedError");var z=(0,o.K2)(((t,e,n,r)=>{if(!r)return;const l=t.node()?.getBBox();l&&t.append("text").text(r).attr("x",l.x+l.width/2).attr("y",-n).attr("class",e)}),"insertTitle"),q=(0,o.K2)((t=>{if("number"==typeof t)return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]}),"parseFontSize");function R(t,e){return(0,i.ds)({},t,e)}(0,o.K2)(R,"cleanAndMerge");var W={assignWithDepth:l.hH,wrapLabel:L,calculateTextHeight:O,calculateTextWidth:$,calculateTextDimensions:D,cleanAndMerge:R,detectInit:h,detectDirective:d,isSubstringInArray:p,interpolateToCurve:g,calcLabelPosition:x,calcCardinalityPosition:w,calcTerminalLabelPosition:k,formatUrl:m,getStylesFromArray:T,generateId:K,random:B,runFunc:y,entityDecode:P,insertTitle:z,parseFontSize:q,InitIDGenerator:N},U=(0,o.K2)((function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,(function(t){return t.substring(0,t.length-1)})),e=e.replace(/classDef.*:\S*#.*;/g,(function(t){return t.substring(0,t.length-1)})),e=e.replace(/#\w+;/g,(function(t){const e=t.substring(1,t.length-1);return/^\+?\d+$/.test(e)?"fl°°"+e+"¶ß":"fl°"+e+"¶ß"})),e}),"encodeEntities"),H=(0,o.K2)((function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")}),"decodeEntities"),Y=(0,o.K2)(((t,e,{counter:n=0,prefix:r,suffix:l})=>`${r?`${r}_`:""}${t}_${e}_${n}${l?`_${l}`:""}`),"getEdgeId")},8605:(t,e,n)=>{"use strict";n.d(e,{$q:()=>E,A$:()=>ee,A6:()=>nn,Bx:()=>Fe,DA:()=>o,Dr:()=>jt,EE:()=>de,FX:()=>Vn,GT:()=>_,HI:()=>Se,JH:()=>_n,KO:()=>rr,M$:()=>Re,NJ:()=>Bn,NY:()=>Ve,Nc:()=>we,Ni:()=>Ae,On:()=>R,T1:()=>me,Th:()=>Ie,To:()=>ve,Wg:()=>In,Yi:()=>ir,_$:()=>he,_i:()=>De,aB:()=>pn,bT:()=>sn,bt:()=>Wn,dZ:()=>dn,ds:()=>sr,ii:()=>C,jL:()=>er,jk:()=>a,l1:()=>Pe,l7:()=>pe,lI:()=>Zt,lr:()=>ze,nD:()=>ar,nJ:()=>ie,nO:()=>be,pI:()=>st,pP:()=>Nt,pp:()=>Xn,uQ:()=>Sn,vX:()=>Cn,zI:()=>vt,zw:()=>k});var r=n(6009),l="object"==typeof global&&global&&global.Object===Object&&global,i="object"==typeof self&&self&&self.Object===Object&&self,o=l||i||Function("return this")(),a=o.Symbol,s=Object.prototype,u=s.hasOwnProperty,c=s.toString,h=a?a.toStringTag:void 0;function d(t){var e=u.call(t,h),n=t[h];try{t[h]=void 0;var r=!0}catch(t){}var l=c.call(t);return r&&(e?t[h]=n:delete t[h]),l}(0,r.K2)(d,"getRawTag");var f=d,p=Object.prototype.toString;function g(t){return p.call(t)}(0,r.K2)(g,"objectToString");var m=g,y=a?a.toStringTag:void 0;function b(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":y&&y in Object(t)?f(t):m(t)}(0,r.K2)(b,"baseGetTag");var _=b;function x(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}(0,r.K2)(x,"isObject");var C=x;function v(t){if(!C(t))return!1;var e=_(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}(0,r.K2)(v,"isFunction");var w,k=v,T=o["__core-js_shared__"],S=(w=/[^.]+$/.exec(T&&T.keys&&T.keys.IE_PROTO||""))?"Symbol(src)_1."+w:"";function K(t){return!!S&&S in t}(0,r.K2)(K,"isMasked");var A=K,B=Function.prototype.toString;function F(t){if(null!=t){try{return B.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(0,r.K2)(F,"toSource");var E=F,L=/^\[object .+?Constructor\]$/,M=Function.prototype,O=Object.prototype,$=M.toString,I=O.hasOwnProperty,D=RegExp("^"+$.call(I).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function N(t){return!(!C(t)||A(t))&&(k(t)?D:L).test(E(t))}(0,r.K2)(N,"baseIsNative");var P=N;function j(t,e){return null==t?void 0:t[e]}(0,r.K2)(j,"getValue");var z=j;function q(t,e){var n=z(t,e);return P(n)?n:void 0}(0,r.K2)(q,"getNative");var R=q,W=R(Object,"create");function U(){this.__data__=W?W(null):{},this.size=0}(0,r.K2)(U,"hashClear");var H=U;function Y(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}(0,r.K2)(Y,"hashDelete");var G=Y,V=Object.prototype.hasOwnProperty;function J(t){var e=this.__data__;if(W){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return V.call(e,t)?e[t]:void 0}(0,r.K2)(J,"hashGet");var X=J,Z=Object.prototype.hasOwnProperty;function Q(t){var e=this.__data__;return W?void 0!==e[t]:Z.call(e,t)}(0,r.K2)(Q,"hashHas");var tt=Q;function et(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=W&&void 0===e?"__lodash_hash_undefined__":e,this}(0,r.K2)(et,"hashSet");var nt=et;function rt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1}(0,r.K2)(mt,"listCacheHas");var yt=mt;function bt(t,e){var n=this.__data__,r=ct(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}(0,r.K2)(bt,"listCacheSet");var _t=bt;function xt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1&&t%1==0&&t<=9007199254740991}(0,r.K2)(Ne,"isLength");var Pe=Ne;function je(t){return null!=t&&Pe(t.length)&&!k(t)}(0,r.K2)(je,"isArrayLike");var ze=je;function qe(t){return Fe(t)&&ze(t)}(0,r.K2)(qe,"isArrayLikeObject");var Re=qe;function We(){return!1}(0,r.K2)(We,"stubFalse");var Ue=We,He="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ye=He&&"object"==typeof module&&module&&!module.nodeType&&module,Ge=Ye&&Ye.exports===He?o.Buffer:void 0,Ve=(Ge?Ge.isBuffer:void 0)||Ue,Je=Function.prototype,Xe=Object.prototype,Ze=Je.toString,Qe=Xe.hasOwnProperty,tn=Ze.call(Object);function en(t){if(!Fe(t)||"[object Object]"!=_(t))return!1;var e=we(t);if(null===e)return!0;var n=Qe.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Ze.call(n)==tn}(0,r.K2)(en,"isPlainObject");var nn=en,rn={};function ln(t){return Fe(t)&&Pe(t.length)&&!!rn[_(t)]}rn["[object Float32Array]"]=rn["[object Float64Array]"]=rn["[object Int8Array]"]=rn["[object Int16Array]"]=rn["[object Int32Array]"]=rn["[object Uint8Array]"]=rn["[object Uint8ClampedArray]"]=rn["[object Uint16Array]"]=rn["[object Uint32Array]"]=!0,rn["[object Arguments]"]=rn["[object Array]"]=rn["[object ArrayBuffer]"]=rn["[object Boolean]"]=rn["[object DataView]"]=rn["[object Date]"]=rn["[object Error]"]=rn["[object Function]"]=rn["[object Map]"]=rn["[object Number]"]=rn["[object Object]"]=rn["[object RegExp]"]=rn["[object Set]"]=rn["[object String]"]=rn["[object WeakMap]"]=!1,(0,r.K2)(ln,"baseIsTypedArray");var on=ln;function an(t){return function(e){return t(e)}}(0,r.K2)(an,"baseUnary");var sn=an,un="object"==typeof exports&&exports&&!exports.nodeType&&exports,cn=un&&"object"==typeof module&&module&&!module.nodeType&&module,hn=cn&&cn.exports===un&&l.process,dn=function(){try{return cn&&cn.require&&cn.require("util").types||hn&&hn.binding&&hn.binding("util")}catch(t){}}(),fn=dn&&dn.isTypedArray,pn=fn?sn(fn):on;function gn(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}(0,r.K2)(gn,"safeGet");var mn=gn,yn=Object.prototype.hasOwnProperty;function bn(t,e,n){var r=t[e];yn.call(t,e)&&st(r,n)&&(void 0!==n||e in t)||ee(t,e,n)}(0,r.K2)(bn,"assignValue");var _n=bn;function xn(t,e,n,r){var l=!n;n||(n={});for(var i=-1,o=e.length;++i-1&&t%1==0&&t0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(0,r.K2)(tr,"shortOut");var er=tr(Zn);function nr(t,e){return er(Vn(t,e,Wn),t+"")}(0,r.K2)(nr,"baseRest");var rr=nr;function lr(t,e,n){if(!C(n))return!1;var r=typeof e;return!!("number"==r?ze(n)&&Sn(e,n.length):"string"==r&&e in n)&&st(n[e],t)}(0,r.K2)(lr,"isIterateeCall");var ir=lr;function or(t){return rr((function(e,n){var r=-1,l=n.length,i=l>1?n[l-1]:void 0,o=l>2?n[2]:void 0;for(i=t.length>3&&"function"==typeof i?(l--,i):void 0,o&&ir(n[0],n[1],o)&&(i=l<3?void 0:i,l=1),e=Object(e);++r{"use strict";n.d(e,{r:()=>r});var r="11.0.0-alpha.7"},7484:(t,e,n)=>{"use strict";n.d(e,{n:()=>i});var r=n(1098),l=n(3026);function i(t){const e=new r.Parser(r.Grammar.fromCompiled(l));return e.feed(t),e.results[0]}}},t=>{t.O(0,[3771],(()=>t(t.s=6897))),t.O()}]); \ No newline at end of file +(self.webpackChunkonsenui_v2_react_minimum=self.webpackChunkonsenui_v2_react_minimum||[]).push([[3524],{3895:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";function findLastDrawCoveringIndex(t,e){var n=t.draw,r=null;if(!n)return console.log("draw command is null!"),null;for(var l=0;l=i.start&&e<=i.end&&(r=n[l])}return r}function evaluateExpression(string1,string2,number){var replacedString=string1.replace(new RegExp(string2,"g"),number);return eval(replacedString)}function findComponentIdxByName(t,e){for(var n=t.data,r=0;revaluateExpression,el:()=>findComponentIdxByName,rO:()=>findLastDrawCoveringIndex})},6897:(t,e,n)=>{"use strict";var r=n(758),l=n(9576),i=n(9673),o=n(1393),a=n(972),s={palette:{mode:"dark",primary:{main:"#90caf9"},secondary:{main:"#f48fb1"}},components:{MuiAccordion:{defaultProps:{square:!0,TransitionProps:{unmountOnExit:!0}},styleOverrides:{root:{border:"1px solid rgba(255, 255, 255, .125)",boxShadow:"none",transition:(0,a.A)().transitions.create("margin-left"),"&:not(:last-child)":{borderBottom:0},"&:before":{display:"none"},"&.Mui-expanded":{margin:"auto"},"&.Mui-disabled":{marginLeft:32}}}},MuiAccordionSummary:{styleOverrides:{root:{borderBottom:"1px solid rgba(255, 255, 255, .125)",minHeight:56,"&.Mui-expanded":{minHeight:56}},content:{alignItems:"center",justifyContent:"space-between","&.Mui-expanded":{margin:"12px 0"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:"#212121"}}},MuiDrawer:{styleOverrides:{docked:{"& .MuiPaper-root":{position:"static"}},paper:{}}},MuiPopover:{styleOverrides:{paper:{backgroundColor:"#121212"}}},MuiListItemButton:{styleOverrides:{root:{"&.Mui-selected":{borderLeft:"2px solid #3399ff",color:"#66b3ff",backgroundColor:"#1d2126"}}}}},typography:{fontSize:14}};const u=(0,a.A)(s);var c=n(5686),h=n(1191),d=n(3989),f=n(7749),p=n(4805),m=n(1891),g=n(3325),y=n(7230),b=n(7366);function _(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,l,i,o,a=[],s=!0,u=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(a.push(r.value),a.length!==e);s=!0);}catch(t){u=!0,l=t}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw l}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return x(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n0?n.map((function(t,e){return r.createElement(p.A,{key:t.timestamp,selected:o===e,onClick:function(){l(t),a(e)}},r.createElement(m.A,{sx:{pl:2}},new Date(t.timestamp).toLocaleString()))})):r.createElement(m.A,{sx:{pl:2}},"No saved diagrams")))))};var v=n(1275);function w(t){t.languages.register({id:"customLang"});var e=new RegExp("\\b(".concat(["page","show","visslides","data","draw"].join("|"),")\\b")),n=[":",":=","=","*",",","@","&","(",")","[","]","{","}"].map((function(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")})),r=new RegExp("(".concat(n.join("|"),")"),"g"),l=new RegExp("\\b(".concat(["array","matrix","linkedlist","stack","tree","graph","text"].join("|"),")\\b")),i=new RegExp("\\b(".concat(["id","value","color","arrow","hidden","structure"].join("|"),")\\b"));t.languages.setMonarchTokensProvider("customLang",{tokenizer:{root:[[/\[error\].*/,"custom-error"],[/\[warning\].*/,"custom-warning"],[/\[info\].*/,"custom-info"],[/\[debug\].*/,"custom-debug"],[/\b(digit|number)\b/,"custom-number"],[/\/\/.*$/,"comment"],[/$[ \t]*.*/,"inlinecomment"],[e,"keyword"],[l,"component"],[i,"attribute"],[/\b[a-zA-Z_][a-zA-Z0-9_]*\b/,"variable"],[/\b\d+(\.\d+)?\b/,"number"],[r,"symbol"]]}}),t.editor.defineTheme("customTheme",{base:"vs-dark",inherit:!0,rules:[{token:"custom-error",foreground:"ff0000",fontStyle:"bold"},{token:"custom-warning",foreground:"FFA500",fontStyle:"italic"},{token:"custom-info",foreground:"0000ff"},{token:"custom-debug",foreground:"008800"},{token:"custom-number",foreground:"800080"},{token:"comment",foreground:"6a9955"},{token:"inlinecomment",foreground:"6a9955"},{token:"variable",foreground:"dcdcaa"},{token:"number",foreground:"b5cea8"},{token:"keyword",foreground:"569cd6"},{token:"symbol",foreground:"ffcc00"},{token:"component",foreground:"4ec9b0"},{token:"attribute",foreground:"d19a66"}],colors:{"editor.background":"#1E1E1E","editor.foreground":"#FFFFFF","editorCursor.foreground":"#A7A7A7","editor.lineHighlightBackground":"#333333","editorLineNumber.foreground":"#858585","editor.selectionBackground":"#264F78","editor.inactiveSelectionBackground":"#3A3D41"}})}const k=function(t){var e=t.value,n=void 0===e?"":e,l=t.onChange,i=void 0===l?function(){}:l;return v.wG.init().then((function(t){w(t)})),r.createElement(v.Ay,{height:"100%",language:"customLang",value:n,onChange:function(t){return i(t)},theme:"customTheme",options:{automaticLayout:!0,fontFamily:"Consolas",fontSize:15,lineNumbers:"on",minimap:{enabled:!1}}})},T=function(t){var e=t.value,n=void 0===e?"":e,l=t.onChange,i=void 0===l?function(){}:l;return v.wG.init().then((function(t){w(t)})),r.createElement(v.Ay,{height:"100%",language:"customLang",value:n,onChange:function(t){return i(t)},theme:"customTheme",options:{automaticLayout:!0,fontFamily:"Consolas",fontSize:14,lineNumbers:"on",minimap:{enabled:!1}}})};var S=n(6220),K=n(7463),A=n(235),B=n(9967),F=n(6607),E=n(9007);const L=function(t){var e=t.code1,n=t.mermaidCode,l=t.editor1Height,i=t.leftWidth,o=t.handleEditor1Change,a=t.setEditor1Height,s=t.setMermaidCode,u=t.dslEditorEditable,c=t.setDslEditorEditable;return r.createElement("div",{className:"CodeEditorsContent",style:{width:i,display:"flex",flexDirection:"column",overflow:"hidden",position:"relative"}},r.createElement(h.A,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",px:2}},r.createElement(K.A,{variant:"overline"},"Code Editor"),r.createElement(A.A,{title:u?"Lock Editor":"Unlock Editor"},r.createElement(B.A,{onClick:function(){c((function(t){return!t}))},size:"small"},u?r.createElement(E.A,{sx:{fontSize:18}}):r.createElement(F.A,{sx:{fontSize:18}})))),r.createElement(S.ResizableBox,{height:l,width:1/0,resizeHandles:["s"],onResizeStop:function(t,e){return a(e.size.height)},minConstraints:[1/0,100],maxConstraints:[1/0,window.innerHeight-100],handle:r.createElement("span",{style:{width:"100%",height:"4px",borderTop:"1px solid #444",cursor:"row-resize",position:"absolute",bottom:0,left:0}})},r.createElement("div",{style:{height:"100%",margin:0,padding:0}},r.createElement(k,{value:e,onChange:o}))),r.createElement("div",{style:{height:"calc(100% - ".concat(l,"px)"),overflow:"hidden"}},r.createElement(K.A,{variant:"overline",sx:{pl:2}},"Mermaid Editor"),r.createElement(T,{value:n,onChange:s})))};var M=n(9700),O=n(389),$=n(6404),I=n(3615),D=n(57),N=(n(5070),n(772)),P=(n(8605),n(6009)),j="comm",z="rule",q="decl",R=Math.abs,W=String.fromCharCode;function U(t){return t.trim()}function H(t,e,n){return t.replace(e,n)}function Y(t,e,n){return t.indexOf(e,n)}function G(t,e){return 0|t.charCodeAt(e)}function V(t,e,n){return t.slice(e,n)}function J(t){return t.length}function X(t){return t.length}function Z(t,e){return e.push(t),t}(0,P.K2)(U,"trim"),(0,P.K2)(H,"replace"),(0,P.K2)(Y,"indexof"),(0,P.K2)(G,"charat"),(0,P.K2)(V,"substr"),(0,P.K2)(J,"strlen"),(0,P.K2)(X,"sizeof"),(0,P.K2)(Z,"append");var Q=1,tt=1,et=0,nt=0,rt=0,lt="";function it(t,e,n,r,l,i,o,a){return{value:t,root:e,parent:n,type:r,props:l,children:i,line:Q,column:tt,length:o,return:"",siblings:a}}function ot(){return rt}function at(){return rt=nt>0?G(lt,--nt):0,tt--,10===rt&&(tt=1,Q--),rt}function st(){return rt=nt2||dt(rt)>3?"":" "}function yt(t,e){for(;--e&&st()&&!(rt<48||rt>102||rt>57&&rt<65||rt>70&&rt<97););return ht(t,ct()+(e<6&&32==ut()&&32==st()))}function bt(t){for(;st();)switch(rt){case t:return nt;case 34:case 39:34!==t&&39!==t&&bt(rt);break;case 40:41===t&&bt(t);break;case 92:st()}return nt}function _t(t,e){for(;st()&&t+rt!==57&&(t+rt!==84||47!==ut()););return"/*"+ht(e,nt-1)+"*"+W(47===t?t:st())}function xt(t){for(;!dt(ut());)st();return ht(t,nt)}function Ct(t){return pt(vt("",null,null,null,[""],t=ft(t),0,[0],t))}function vt(t,e,n,r,l,i,o,a,s){for(var u=0,c=0,h=o,d=0,f=0,p=0,m=1,g=1,y=1,b=0,_="",x=l,C=i,v=r,w=_;g;)switch(p=b,b=st()){case 40:if(108!=p&&58==G(w,h-1)){-1!=Y(w+=H(mt(b),"&","&\f"),"&\f",R(u?a[u-1]:0))&&(y=-1);break}case 34:case 39:case 91:w+=mt(b);break;case 9:case 10:case 13:case 32:w+=gt(p);break;case 92:w+=yt(ct()-1,7);continue;case 47:switch(ut()){case 42:case 47:Z(kt(_t(st(),ct()),e,n,s),s);break;default:w+="/"}break;case 123*m:a[u++]=J(w)*y;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+c:-1==y&&(w=H(w,/\f/g,"")),f>0&&J(w)-h&&Z(f>32?Tt(w+";",r,n,h-1,s):Tt(H(w," ","")+";",r,n,h-2,s),s);break;case 59:w+=";";default:if(Z(v=wt(w,e,n,u,c,l,a,_,x=[],C=[],h,i),i),123===b)if(0===c)vt(w,e,v,v,x,i,h,a,C);else switch(99===d&&110===G(w,3)?100:d){case 100:case 108:case 109:case 115:vt(t,v,v,r&&Z(wt(t,v,v,0,0,l,a,_,l,x=[],h,C),C),l,C,h,a,r?x:C);break;default:vt(w,v,v,v,[""],C,0,a,C)}}u=c=f=0,m=y=1,_=w="",h=o;break;case 58:h=1+J(w),f=p;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==at())continue;switch(w+=W(b),b*m){case 38:y=c>0?1:(w+="\f",-1);break;case 44:a[u++]=(J(w)-1)*y,y=1;break;case 64:45===ut()&&(w+=mt(st())),d=ut(),c=h=J(_=w+=xt(ct())),b++;break;case 45:45===p&&2==J(w)&&(m=0)}}return i}function wt(t,e,n,r,l,i,o,a,s,u,c,h){for(var d=l-1,f=0===l?i:[""],p=X(f),m=0,g=0,y=0;m0?f[b]+" "+_:H(_,/&\f/g,f[b])))&&(s[y++]=x);return it(t,e,n,0===l?z:a,s,u,c,h)}function kt(t,e,n,r){return it(t,e,n,j,W(ot()),V(t,2,-2),0,r)}function Tt(t,e,n,r,l){return it(t,e,n,q,V(t,0,r),V(t,r+1,-1),r,l)}function St(t,e){for(var n="",r=0;r/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await n.e(8544).then(n.bind(n,8544));return{id:"c4",diagram:t}}),"loader")},Bt="flowchart",Ft={id:Bt,detector:(0,P.K2)(((t,e)=>"dagre-wrapper"!==e?.flowchart?.defaultRenderer&&"elk"!==e?.flowchart?.defaultRenderer&&/^\s*graph/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(1265),n.e(3723),n.e(2725),n.e(8396),n.e(3706),n.e(9199),n.e(4822)]).then(n.bind(n,4822));return{id:Bt,diagram:t}}),"loader")},Et="flowchart-v2",Lt={id:Et,detector:(0,P.K2)(((t,e)=>"dagre-d3"!==e?.flowchart?.defaultRenderer&&"elk"!==e?.flowchart?.defaultRenderer&&(!(!/^\s*graph/.test(t)||"dagre-wrapper"!==e?.flowchart?.defaultRenderer)||/^\s*flowchart/.test(t))),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(1265),n.e(3723),n.e(2725),n.e(8396),n.e(3706),n.e(9199),n.e(3478)]).then(n.bind(n,3478));return{id:Et,diagram:t}}),"loader")},Mt={id:"er",detector:(0,P.K2)((t=>/^\s*erDiagram/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(1265),n.e(3723),n.e(1381)]).then(n.bind(n,3762));return{id:"er",diagram:t}}),"loader")},Ot="gitGraph",$t={id:Ot,detector:(0,P.K2)((t=>/^\s*gitGraph/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await n.e(9872).then(n.bind(n,9872));return{id:Ot,diagram:t}}),"loader")},It="gantt",Dt={id:It,detector:(0,P.K2)((t=>/^\s*gantt/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await n.e(3640).then(n.bind(n,3640));return{id:It,diagram:t}}),"loader")},Nt="info",Pt={id:Nt,detector:(0,P.K2)((t=>/^\s*info/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(1265),n.e(4549),n.e(7581)]).then(n.bind(n,7581));return{id:Nt,diagram:t}}),"loader")},jt={id:"pie",detector:(0,P.K2)((t=>/^\s*pie/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(1265),n.e(4549),n.e(9158)]).then(n.bind(n,9158));return{id:"pie",diagram:t}}),"loader")},zt="quadrantChart",qt={id:zt,detector:(0,P.K2)((t=>/^\s*quadrantChart/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await n.e(7194).then(n.bind(n,7194));return{id:zt,diagram:t}}),"loader")},Rt="xychart",Wt={id:Rt,detector:(0,P.K2)((t=>/^\s*xychart-beta/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(2725),n.e(3474)]).then(n.bind(n,3474));return{id:Rt,diagram:t}}),"loader")},Ut="requirement",Ht={id:Ut,detector:(0,P.K2)((t=>/^\s*requirement(Diagram)?/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(1265),n.e(3723),n.e(9856)]).then(n.bind(n,9856));return{id:Ut,diagram:t}}),"loader")},Yt="sequence",Gt={id:Yt,detector:(0,P.K2)((t=>/^\s*sequenceDiagram/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await n.e(5171).then(n.bind(n,5171));return{id:Yt,diagram:t}}),"loader")},Vt="class",Jt={id:Vt,detector:(0,P.K2)(((t,e)=>"dagre-wrapper"!==e?.class?.defaultRenderer&&/^\s*classDiagram/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(1265),n.e(3723),n.e(5877),n.e(7606)]).then(n.bind(n,7606));return{id:Vt,diagram:t}}),"loader")},Xt="classDiagram",Zt={id:Xt,detector:(0,P.K2)(((t,e)=>!(!/^\s*classDiagram/.test(t)||"dagre-wrapper"!==e?.class?.defaultRenderer)||/^\s*classDiagram-v2/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(1265),n.e(3723),n.e(2725),n.e(8396),n.e(3706),n.e(5877),n.e(6803)]).then(n.bind(n,6803));return{id:Xt,diagram:t}}),"loader")},Qt="state",te={id:Qt,detector:(0,P.K2)(((t,e)=>"dagre-wrapper"!==e?.state?.defaultRenderer&&/^\s*stateDiagram/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(1265),n.e(3723),n.e(1269),n.e(2807)]).then(n.bind(n,2807));return{id:Qt,diagram:t}}),"loader")},ee="stateDiagram",ne={id:ee,detector:(0,P.K2)(((t,e)=>!!/^\s*stateDiagram-v2/.test(t)||!(!/^\s*stateDiagram/.test(t)||"dagre-wrapper"!==e?.state?.defaultRenderer)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(1265),n.e(3723),n.e(2725),n.e(8396),n.e(3706),n.e(1269),n.e(8953)]).then(n.bind(n,8953));return{id:ee,diagram:t}}),"loader")},re="journey",le={id:re,detector:(0,P.K2)((t=>/^\s*journey/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await n.e(3456).then(n.bind(n,3456));return{id:re,diagram:t}}),"loader")},ie={draw:(0,P.K2)(((t,e,n)=>{N.Rm.debug("rendering svg for syntax error\n");const r=(0,O.D)(e),l=r.append("g");r.attr("viewBox","0 0 2412 512"),(0,N.a$)(r,100,512,!0),l.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),l.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),l.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),l.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),l.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),l.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),l.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),l.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${n}`)}),"draw")},oe=ie,ae={db:{},renderer:ie,parser:{parse:()=>{}}},se="flowchart-elk",ue={id:se,detector:(0,P.K2)(((t,e)=>!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&"elk"===e?.flowchart?.defaultRenderer)&&(setTimeout((()=>N.Rm.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](link) for more details. This diagram will be rendered using `dagre` layout as a fallback.")),500),!0)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(1265),n.e(3723),n.e(2725),n.e(8396),n.e(3706),n.e(9199),n.e(3478)]).then(n.bind(n,3478));return{id:se,diagram:t}}),"loader")},ce="timeline",he={id:ce,detector:(0,P.K2)((t=>/^\s*timeline/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await n.e(3796).then(n.bind(n,3796));return{id:ce,diagram:t}}),"loader")},de="mindmap",fe={id:de,detector:(0,P.K2)((t=>/^\s*mindmap/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(2725),n.e(1450)]).then(n.bind(n,1450));return{id:de,diagram:t}}),"loader")},pe="sankey",me={id:pe,detector:(0,P.K2)((t=>/^\s*sankey-beta/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await n.e(9156).then(n.bind(n,9156));return{id:pe,diagram:t}}),"loader")},ge="packet",ye={id:ge,detector:(0,P.K2)((t=>/^\s*packet-beta/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(1265),n.e(4549),n.e(2842)]).then(n.bind(n,2842));return{id:ge,diagram:t}}),"loader")},be="array",_e={id:be,detector:(0,P.K2)((t=>/^\s*array/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(1265),n.e(4549),n.e(2763)]).then(n.bind(n,2763));return{id:be,diagram:t}}),"loader")},xe="matrix",Ce={id:xe,detector:(0,P.K2)((t=>/^\s*matrix/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(1265),n.e(4549),n.e(3438)]).then(n.bind(n,3438));return{id:xe,diagram:t}}),"loader")},ve="testslides",we={id:ve,detector:(0,P.K2)((t=>/^\s*testslides/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(1265),n.e(4549),n.e(6756)]).then(n.bind(n,6756));return{id:ve,diagram:t}}),"loader")},ke="visslides",Te={id:ke,detector:(0,P.K2)((t=>/^\s*visslides/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(1265),n.e(4549),n.e(5932)]).then(n.bind(n,5932));return{id:ke,diagram:t}}),"loader")},Se="visual",Ke={id:Se,detector:(0,P.K2)((t=>/^\s*visual/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(1265),n.e(4549),n.e(5433)]).then(n.bind(n,5433));return{id:Se,diagram:t}}),"loader")},Ae="block",Be={id:Ae,detector:(0,P.K2)((t=>/^\s*block-beta/.test(t)),"detector"),loader:(0,P.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(1265),n.e(2725),n.e(8396),n.e(373)]).then(n.bind(n,373));return{id:Ae,diagram:t}}),"loader")},Fe=!1,Ee=(0,P.K2)((()=>{Fe||(Fe=!0,(0,N.Js)("error",ae,(t=>"error"===t.toLowerCase().trim())),(0,N.Js)("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},(t=>t.toLowerCase().trimStart().startsWith("---"))),(0,N.Xd)(At,Zt,Jt,Mt,Dt,Pt,jt,Ht,Gt,ue,Lt,Ft,fe,he,$t,ne,te,le,qt,me,ye,Wt,Be,_e,Ce,we,Te,Ke))}),"addDiagrams"),Le=class t{constructor(t,e,n,r,l){this.type=t,this.text=e,this.db=n,this.parser=r,this.renderer=l}static{(0,P.K2)(this,"Diagram")}static async fromText(e,n={}){const r=(0,N.zj)(),l=(0,N.Ch)(e,r);e=(0,D.C4)(e)+"\n";try{(0,N.Gs)(l)}catch(t){const e=(0,N.J$)(l);if(!e)throw new N.C0(`Diagram ${l} not found.`);const{id:n,diagram:r}=await e();(0,N.Js)(n,r)}const{db:i,parser:o,renderer:a,init:s}=(0,N.Gs)(l);return o.parser&&(o.parser.yy=i),i.clear?.(),s?.(r),n.title&&i.setDiagramTitle?.(n.title),await o.parse(e),new t(l,e,i,o,a)}async render(t,e){await this.renderer.draw(this.text,t,e,this)}getParser(){return this.parser}getType(){return this.type}},Me=[],Oe=(0,P.K2)((()=>{Me.forEach((t=>{t()})),Me=[]}),"attachFunctions"),$e=(0,P.f1)((0,N.gK)(),1),Ie="graphics-document document";function De(t,e){t.attr("role",Ie),""!==e&&t.attr("aria-roledescription",e)}function Ne(t,e,n,r){if(void 0!==t.insert){if(n){const e=`chart-desc-${r}`;t.attr("aria-describedby",e),t.insert("desc",":first-child").attr("id",e).text(n)}if(e){const n=`chart-title-${r}`;t.attr("aria-labelledby",n),t.insert("title",":first-child").attr("id",n).text(e)}}}(0,P.K2)(De,"setA11yDiagramInfo"),(0,P.K2)(Ne,"addSVGa11yTitleDescription");var Pe=(0,P.K2)((t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart()),"cleanupComments");function je(t){return null==t}function ze(t){return"object"==typeof t&&null!==t}function qe(t){return Array.isArray(t)?t:je(t)?[]:[t]}function Re(t,e){var n,r,l,i;if(e)for(n=0,r=(i=Object.keys(e)).length;na&&(e=r-a+(i=" ... ").length),n-r>a&&(n=r+a-(o=" ...").length),{str:i+t.slice(e,n).replace(/\t/g,"→")+o,pos:r-e+i.length}}function Xe(t,e){return He.repeat(" ",e-t.length)+t}function Ze(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),"number"!=typeof e.indent&&(e.indent=1),"number"!=typeof e.linesBefore&&(e.linesBefore=3),"number"!=typeof e.linesAfter&&(e.linesAfter=2);for(var n,r=/\r?\n|\r|\0/g,l=[0],i=[],o=-1;n=r.exec(t.buffer);)i.push(n.index),l.push(n.index+n[0].length),t.position<=n.index&&o<0&&(o=l.length-2);o<0&&(o=l.length-1);var a,s,u="",c=Math.min(t.line+e.linesAfter,i.length).toString().length,h=e.maxLength-(e.indent+c+3);for(a=1;a<=e.linesBefore&&!(o-a<0);a++)s=Je(t.buffer,l[o-a],i[o-a],t.position-(l[o]-l[o-a]),h),u=He.repeat(" ",e.indent)+Xe((t.line-a+1).toString(),c)+" | "+s.str+"\n"+u;for(s=Je(t.buffer,l[o],i[o],t.position,h),u+=He.repeat(" ",e.indent)+Xe((t.line+1).toString(),c)+" | "+s.str+"\n",u+=He.repeat("-",e.indent+c+3+s.pos)+"^\n",a=1;a<=e.linesAfter&&!(o+a>=i.length);a++)s=Je(t.buffer,l[o+a],i[o+a],t.position-(l[o]-l[o+a]),h),u+=He.repeat(" ",e.indent)+Xe((t.line+a+1).toString(),c)+" | "+s.str+"\n";return u.replace(/\n$/,"")}(0,P.K2)(Je,"getLine"),(0,P.K2)(Xe,"padStart"),(0,P.K2)(Ze,"makeSnippet");var Qe=Ze,tn=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],en=["scalar","sequence","mapping"];function nn(t){var e={};return null!==t&&Object.keys(t).forEach((function(n){t[n].forEach((function(t){e[String(t)]=n}))})),e}function rn(t,e){if(e=e||{},Object.keys(e).forEach((function(e){if(-1===tn.indexOf(e))throw new Ve('Unknown option "'+e+'" is met in definition of "'+t+'" YAML type.')})),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(t){return t},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=nn(e.styleAliases||null),-1===en.indexOf(this.kind))throw new Ve('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}(0,P.K2)(nn,"compileStyleAliases"),(0,P.K2)(rn,"Type$1");var ln=rn;function on(t,e){var n=[];return t[e].forEach((function(t){var e=n.length;n.forEach((function(n,r){n.tag===t.tag&&n.kind===t.kind&&n.multi===t.multi&&(e=r)})),n[e]=t})),n}function an(){var t,e,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function r(t){t.multi?(n.multi[t.kind].push(t),n.multi.fallback.push(t)):n[t.kind][t.tag]=n.fallback[t.tag]=t}for((0,P.K2)(r,"collectType"),t=0,e=arguments.length;t=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Tn=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Sn(t){return null!==t&&!(!Tn.test(t)||"_"===t[t.length-1])}function Kn(t){var e,n;return n="-"===(e=t.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),".inf"===e?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===e?NaN:n*parseFloat(e,10)}(0,P.K2)(Sn,"resolveYamlFloat"),(0,P.K2)(Kn,"constructYamlFloat");var An=/^[-+]?[0-9]+e/;function Bn(t,e){var n;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(He.isNegativeZero(t))return"-0.0";return n=t.toString(10),An.test(n)?n.replace("e",".e"):n}function Fn(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||He.isNegativeZero(t))}(0,P.K2)(Bn,"representYamlFloat"),(0,P.K2)(Fn,"isFloat");var En=new ln("tag:yaml.org,2002:float",{kind:"scalar",resolve:Sn,construct:Kn,predicate:Fn,represent:Bn,defaultStyle:"lowercase"}),Ln=un.extend({implicit:[fn,yn,kn,En]}),Mn=Ln,On=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),$n=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function In(t){return null!==t&&(null!==On.exec(t)||null!==$n.exec(t))}function Dn(t){var e,n,r,l,i,o,a,s,u=0,c=null;if(null===(e=On.exec(t))&&(e=$n.exec(t)),null===e)throw new Error("Date resolve error");if(n=+e[1],r=+e[2]-1,l=+e[3],!e[4])return new Date(Date.UTC(n,r,l));if(i=+e[4],o=+e[5],a=+e[6],e[7]){for(u=e[7].slice(0,3);u.length<3;)u+="0";u=+u}return e[9]&&(c=6e4*(60*+e[10]+ +(e[11]||0)),"-"===e[9]&&(c=-c)),s=new Date(Date.UTC(n,r,l,i,o,a,u)),c&&s.setTime(s.getTime()-c),s}function Nn(t){return t.toISOString()}(0,P.K2)(In,"resolveYamlTimestamp"),(0,P.K2)(Dn,"constructYamlTimestamp"),(0,P.K2)(Nn,"representYamlTimestamp");var Pn=new ln("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:In,construct:Dn,instanceOf:Date,represent:Nn});function jn(t){return"<<"===t||null===t}(0,P.K2)(jn,"resolveYamlMerge");var zn=new ln("tag:yaml.org,2002:merge",{kind:"scalar",resolve:jn}),qn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function Rn(t){if(null===t)return!1;var e,n,r=0,l=t.length,i=qn;for(n=0;n64)){if(e<0)return!1;r+=6}return r%8==0}function Wn(t){var e,n,r=t.replace(/[\r\n=]/g,""),l=r.length,i=qn,o=0,a=[];for(e=0;e>16&255),a.push(o>>8&255),a.push(255&o)),o=o<<6|i.indexOf(r.charAt(e));return 0==(n=l%4*6)?(a.push(o>>16&255),a.push(o>>8&255),a.push(255&o)):18===n?(a.push(o>>10&255),a.push(o>>2&255)):12===n&&a.push(o>>4&255),new Uint8Array(a)}function Un(t){var e,n,r="",l=0,i=t.length,o=qn;for(e=0;e>18&63],r+=o[l>>12&63],r+=o[l>>6&63],r+=o[63&l]),l=(l<<8)+t[e];return 0==(n=i%3)?(r+=o[l>>18&63],r+=o[l>>12&63],r+=o[l>>6&63],r+=o[63&l]):2===n?(r+=o[l>>10&63],r+=o[l>>4&63],r+=o[l<<2&63],r+=o[64]):1===n&&(r+=o[l>>2&63],r+=o[l<<4&63],r+=o[64],r+=o[64]),r}function Hn(t){return"[object Uint8Array]"===Object.prototype.toString.call(t)}(0,P.K2)(Rn,"resolveYamlBinary"),(0,P.K2)(Wn,"constructYamlBinary"),(0,P.K2)(Un,"representYamlBinary"),(0,P.K2)(Hn,"isBinary");var Yn=new ln("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Rn,construct:Wn,predicate:Hn,represent:Un}),Gn=Object.prototype.hasOwnProperty,Vn=Object.prototype.toString;function Jn(t){if(null===t)return!0;var e,n,r,l,i,o=[],a=t;for(e=0,n=a.length;e>10),56320+(t-65536&1023))}(0,P.K2)(Cr,"_class"),(0,P.K2)(vr,"is_EOL"),(0,P.K2)(wr,"is_WHITE_SPACE"),(0,P.K2)(kr,"is_WS_OR_EOL"),(0,P.K2)(Tr,"is_FLOW_INDICATOR"),(0,P.K2)(Sr,"fromHexCode"),(0,P.K2)(Kr,"escapedHexLen"),(0,P.K2)(Ar,"fromDecimalCode"),(0,P.K2)(Br,"simpleEscapeSequence"),(0,P.K2)(Fr,"charFromCodepoint");var Er,Lr=new Array(256),Mr=new Array(256);for(Er=0;Er<256;Er++)Lr[Er]=Br(Er)?1:0,Mr[Er]=Br(Er);function Or(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||ar,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function $r(t,e){var n={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return n.snippet=Qe(n),new Ve(e,n)}function Ir(t,e){throw $r(t,e)}function Dr(t,e){t.onWarning&&t.onWarning.call(null,$r(t,e))}(0,P.K2)(Or,"State$1"),(0,P.K2)($r,"generateError"),(0,P.K2)(Ir,"throwError"),(0,P.K2)(Dr,"throwWarning");var Nr={YAML:(0,P.K2)((function(t,e,n){var r,l,i;null!==t.version&&Ir(t,"duplication of %YAML directive"),1!==n.length&&Ir(t,"YAML directive accepts exactly one argument"),null===(r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&Ir(t,"ill-formed argument of the YAML directive"),l=parseInt(r[1],10),i=parseInt(r[2],10),1!==l&&Ir(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=i<2,1!==i&&2!==i&&Dr(t,"unsupported YAML version of the document")}),"handleYamlDirective"),TAG:(0,P.K2)((function(t,e,n){var r,l;2!==n.length&&Ir(t,"TAG directive accepts exactly two arguments"),r=n[0],l=n[1],_r.test(r)||Ir(t,"ill-formed tag handle (first argument) of the TAG directive"),sr.call(t.tagMap,r)&&Ir(t,'there is a previously declared suffix for "'+r+'" tag handle'),xr.test(l)||Ir(t,"ill-formed tag prefix (second argument) of the TAG directive");try{l=decodeURIComponent(l)}catch(e){Ir(t,"tag prefix is malformed: "+l)}t.tagMap[r]=l}),"handleTagDirective")};function Pr(t,e,n,r){var l,i,o,a;if(e1&&(t.result+=He.repeat("\n",e-1))}function Hr(t,e,n){var r,l,i,o,a,s,u,c,h=t.kind,d=t.result;if(kr(c=t.input.charCodeAt(t.position))||Tr(c)||35===c||38===c||42===c||33===c||124===c||62===c||39===c||34===c||37===c||64===c||96===c)return!1;if((63===c||45===c)&&(kr(r=t.input.charCodeAt(t.position+1))||n&&Tr(r)))return!1;for(t.kind="scalar",t.result="",l=i=t.position,o=!1;0!==c;){if(58===c){if(kr(r=t.input.charCodeAt(t.position+1))||n&&Tr(r))break}else if(35===c){if(kr(t.input.charCodeAt(t.position-1)))break}else{if(t.position===t.lineStart&&Wr(t)||n&&Tr(c))break;if(vr(c)){if(a=t.line,s=t.lineStart,u=t.lineIndent,Rr(t,!1,-1),t.lineIndent>=e){o=!0,c=t.input.charCodeAt(t.position);continue}t.position=i,t.line=a,t.lineStart=s,t.lineIndent=u;break}}o&&(Pr(t,l,i,!1),Ur(t,t.line-a),l=i=t.position,o=!1),wr(c)||(i=t.position+1),c=t.input.charCodeAt(++t.position)}return Pr(t,l,i,!1),!!t.result||(t.kind=h,t.result=d,!1)}function Yr(t,e){var n,r,l;if(39!==(n=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,r=l=t.position;0!==(n=t.input.charCodeAt(t.position));)if(39===n){if(Pr(t,r,t.position,!0),39!==(n=t.input.charCodeAt(++t.position)))return!0;r=t.position,t.position++,l=t.position}else vr(n)?(Pr(t,r,l,!0),Ur(t,Rr(t,!1,e)),r=l=t.position):t.position===t.lineStart&&Wr(t)?Ir(t,"unexpected end of the document within a single quoted scalar"):(t.position++,l=t.position);Ir(t,"unexpected end of the stream within a single quoted scalar")}function Gr(t,e){var n,r,l,i,o,a;if(34!==(a=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,n=r=t.position;0!==(a=t.input.charCodeAt(t.position));){if(34===a)return Pr(t,n,t.position,!0),t.position++,!0;if(92===a){if(Pr(t,n,t.position,!0),vr(a=t.input.charCodeAt(++t.position)))Rr(t,!1,e);else if(a<256&&Lr[a])t.result+=Mr[a],t.position++;else if((o=Kr(a))>0){for(l=o,i=0;l>0;l--)(o=Sr(a=t.input.charCodeAt(++t.position)))>=0?i=(i<<4)+o:Ir(t,"expected hexadecimal character");t.result+=Fr(i),t.position++}else Ir(t,"unknown escape sequence");n=r=t.position}else vr(a)?(Pr(t,n,r,!0),Ur(t,Rr(t,!1,e)),n=r=t.position):t.position===t.lineStart&&Wr(t)?Ir(t,"unexpected end of the document within a double quoted scalar"):(t.position++,r=t.position)}Ir(t,"unexpected end of the stream within a double quoted scalar")}function Vr(t,e){var n,r,l,i,o,a,s,u,c,h,d,f,p=!0,m=t.tag,g=t.anchor,y=Object.create(null);if(91===(f=t.input.charCodeAt(t.position)))o=93,u=!1,i=[];else{if(123!==f)return!1;o=125,u=!0,i={}}for(null!==t.anchor&&(t.anchorMap[t.anchor]=i),f=t.input.charCodeAt(++t.position);0!==f;){if(Rr(t,!0,e),(f=t.input.charCodeAt(t.position))===o)return t.position++,t.tag=m,t.anchor=g,t.kind=u?"mapping":"sequence",t.result=i,!0;p?44===f&&Ir(t,"expected the node content, but found ','"):Ir(t,"missed comma between flow collection entries"),d=null,a=s=!1,63===f&&kr(t.input.charCodeAt(t.position+1))&&(a=s=!0,t.position++,Rr(t,!0,e)),n=t.line,r=t.lineStart,l=t.position,nl(t,e,ur,!1,!0),h=t.tag,c=t.result,Rr(t,!0,e),f=t.input.charCodeAt(t.position),!s&&t.line!==n||58!==f||(a=!0,f=t.input.charCodeAt(++t.position),Rr(t,!0,e),nl(t,e,ur,!1,!0),d=t.result),u?zr(t,i,y,h,c,d,n,r,l):a?i.push(zr(t,null,y,h,c,d,n,r,l)):i.push(c),Rr(t,!0,e),44===(f=t.input.charCodeAt(t.position))?(p=!0,f=t.input.charCodeAt(++t.position)):p=!1}Ir(t,"unexpected end of the stream within a flow collection")}function Jr(t,e){var n,r,l,i,o=fr,a=!1,s=!1,u=e,c=0,h=!1;if(124===(i=t.input.charCodeAt(t.position)))r=!1;else{if(62!==i)return!1;r=!0}for(t.kind="scalar",t.result="";0!==i;)if(43===(i=t.input.charCodeAt(++t.position))||45===i)fr===o?o=43===i?mr:pr:Ir(t,"repeat of a chomping mode identifier");else{if(!((l=Ar(i))>=0))break;0===l?Ir(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?Ir(t,"repeat of an indentation width identifier"):(u=e+l-1,s=!0)}if(wr(i)){do{i=t.input.charCodeAt(++t.position)}while(wr(i));if(35===i)do{i=t.input.charCodeAt(++t.position)}while(!vr(i)&&0!==i)}for(;0!==i;){for(qr(t),t.lineIndent=0,i=t.input.charCodeAt(t.position);(!s||t.lineIndentu&&(u=t.lineIndent),vr(i))c++;else{if(t.lineIndente)&&0!==r)Ir(t,"bad indentation of a sequence entry");else if(t.lineIndente)&&(y&&(o=t.line,a=t.lineStart,s=t.position),nl(t,e,dr,!0,l)&&(y?m=t.result:g=t.result),y||(zr(t,d,f,p,m,g,o,a,s),p=m=g=null),Rr(t,!0,-1),u=t.input.charCodeAt(t.position)),(t.line===i||t.lineIndent>e)&&0!==u)Ir(t,"bad indentation of a mapping entry");else if(t.lineIndente?p=1:t.lineIndent===e?p=0:t.lineIndente?p=1:t.lineIndent===e?p=0:t.lineIndent tag; it should be "scalar", not "'+t.kind+'"'),s=0,u=t.implicitTypes.length;s"),null!==t.result&&h.kind!==t.kind&&Ir(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+h.kind+'", not "'+t.kind+'"'),h.resolve(t.result,t.tag)?(t.result=h.construct(t.result,t.tag),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):Ir(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return null!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||g}function rl(t){var e,n,r,l,i=t.position,o=!1;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);0!==(l=t.input.charCodeAt(t.position))&&(Rr(t,!0,-1),l=t.input.charCodeAt(t.position),!(t.lineIndent>0||37!==l));){for(o=!0,l=t.input.charCodeAt(++t.position),e=t.position;0!==l&&!kr(l);)l=t.input.charCodeAt(++t.position);for(r=[],(n=t.input.slice(e,t.position)).length<1&&Ir(t,"directive name must not be less than one character in length");0!==l;){for(;wr(l);)l=t.input.charCodeAt(++t.position);if(35===l){do{l=t.input.charCodeAt(++t.position)}while(0!==l&&!vr(l));break}if(vr(l))break;for(e=t.position;0!==l&&!kr(l);)l=t.input.charCodeAt(++t.position);r.push(t.input.slice(e,t.position))}0!==l&&qr(t),sr.call(Nr,n)?Nr[n](t,n,r):Dr(t,'unknown document directive "'+n+'"')}Rr(t,!0,-1),0===t.lineIndent&&45===t.input.charCodeAt(t.position)&&45===t.input.charCodeAt(t.position+1)&&45===t.input.charCodeAt(t.position+2)?(t.position+=3,Rr(t,!0,-1)):o&&Ir(t,"directives end mark is expected"),nl(t,t.lineIndent-1,dr,!1,!0),Rr(t,!0,-1),t.checkLineBreaks&&yr.test(t.input.slice(i,t.position))&&Dr(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&Wr(t)?46===t.input.charCodeAt(t.position)&&(t.position+=3,Rr(t,!0,-1)):t.position=55296&&r<=56319&&e+1=56320&&n<=57343?1024*(r-55296)+n-56320+65536:r}function Ql(t){return/^\n* /.test(t)}(0,P.K2)(ql,"State"),(0,P.K2)(Rl,"indentString"),(0,P.K2)(Wl,"generateNextLine"),(0,P.K2)(Ul,"testImplicitResolving"),(0,P.K2)(Hl,"isWhitespace"),(0,P.K2)(Yl,"isPrintable"),(0,P.K2)(Gl,"isNsCharOrWhitespace"),(0,P.K2)(Vl,"isPlainSafe"),(0,P.K2)(Jl,"isPlainSafeFirst"),(0,P.K2)(Xl,"isPlainSafeLast"),(0,P.K2)(Zl,"codePointAt"),(0,P.K2)(Ql,"needIndentIndicator");var ti=1,ei=2,ni=3,ri=4,li=5;function ii(t,e,n,r,l,i,o,a){var s,u=0,c=null,h=!1,d=!1,f=-1!==r,p=-1,m=Jl(Zl(t,0))&&Xl(Zl(t,t.length-1));if(e||o)for(s=0;s=65536?s+=2:s++){if(!Yl(u=Zl(t,s)))return li;m=m&&Vl(u,c,a),c=u}else{for(s=0;s=65536?s+=2:s++){if((u=Zl(t,s))===dl)h=!0,f&&(d=d||s-p-1>r&&" "!==t[p+1],p=s);else if(!Yl(u))return li;m=m&&Vl(u,c,a),c=u}d=d||f&&s-p-1>r&&" "!==t[p+1]}return h||d?n>9&&Ql(t)?li:o?i===zl?li:ei:d?ri:ni:!m||o||l(t)?i===zl?li:ei:ti}function oi(t,e,n,r,l){t.dump=function(){if(0===e.length)return t.quotingType===zl?'""':"''";if(!t.noCompatMode&&(-1!==Il.indexOf(e)||Dl.test(e)))return t.quotingType===zl?'"'+e+'"':"'"+e+"'";var i=t.indent*Math.max(1,n),o=-1===t.lineWidth?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-i),a=r||t.flowLevel>-1&&n>=t.flowLevel;function s(e){return Ul(t,e)}switch((0,P.K2)(s,"testAmbiguity"),ii(e,a,t.indent,o,s,t.quotingType,t.forceQuotes&&!r,l)){case ti:return e;case ei:return"'"+e.replace(/'/g,"''")+"'";case ni:return"|"+ai(e,t.indent)+si(Rl(e,i));case ri:return">"+ai(e,t.indent)+si(Rl(ui(e,o),i));case li:return'"'+hi(e)+'"';default:throw new Ve("impossible error: invalid scalar style")}}()}function ai(t,e){var n=Ql(t)?String(e):"",r="\n"===t[t.length-1];return n+(!r||"\n"!==t[t.length-2]&&"\n"!==t?r?"":"-":"+")+"\n"}function si(t){return"\n"===t[t.length-1]?t.slice(0,-1):t}function ui(t,e){for(var n,r,l,i=/(\n+)([^\n]*)/g,o=(n=-1!==(n=t.indexOf("\n"))?n:t.length,i.lastIndex=n,ci(t.slice(0,n),e)),a="\n"===t[0]||" "===t[0];l=i.exec(t);){var s=l[1],u=l[2];r=" "===u[0],o+=s+(a||r||""===u?"":"\n")+ci(u,e),a=r}return o}function ci(t,e){if(""===t||" "===t[0])return t;for(var n,r,l=/ [^ ]/g,i=0,o=0,a=0,s="";n=l.exec(t);)(a=n.index)-i>e&&(r=o>i?o:a,s+="\n"+t.slice(i,r),i=r+1),o=a;return s+="\n",t.length-i>e&&o>i?s+=t.slice(i,o)+"\n"+t.slice(o+1):s+=t.slice(i),s.slice(1)}function hi(t){for(var e,n="",r=0,l=0;l=65536?l+=2:l++)r=Zl(t,l),!(e=$l[r])&&Yl(r)?(n+=t[l],r>=65536&&(n+=t[l+1])):n+=e||Pl(r);return n}function di(t,e,n){var r,l,i,o="",a=t.tag;for(r=0,l=n.length;r1024&&(a+="? "),a+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),yi(t,e,o,!1,!1)&&(s+=a+=t.dump));t.tag=u,t.dump="{"+s+"}"}function mi(t,e,n,r){var l,i,o,a,s,u,c="",h=t.tag,d=Object.keys(n);if(!0===t.sortKeys)d.sort();else if("function"==typeof t.sortKeys)d.sort(t.sortKeys);else if(t.sortKeys)throw new Ve("sortKeys must be a boolean or a function");for(l=0,i=d.length;l1024)&&(t.dump&&dl===t.dump.charCodeAt(0)?u+="?":u+="? "),u+=t.dump,s&&(u+=Wl(t,e)),yi(t,e+1,a,!0,s)&&(t.dump&&dl===t.dump.charCodeAt(0)?u+=":":u+=": ",c+=u+=t.dump));t.tag=h,t.dump=c||"{}"}function gi(t,e,n){var r,l,i,o,a,s;for(i=0,o=(l=n?t.explicitTypes:t.implicitTypes).length;i tag resolver accepts not "'+s+'" style');r=a.represent[s](e,s)}t.dump=r}return!0}return!1}function yi(t,e,n,r,l,i,o){t.tag=null,t.dump=n,gi(t,n,!1)||gi(t,n,!0);var a,s=sl.call(t.dump),u=r;r&&(r=t.flowLevel<0||t.flowLevel>e);var c,h,d="[object Object]"===s||"[object Array]"===s;if(d&&(h=-1!==(c=t.duplicates.indexOf(n))),(null!==t.tag&&"?"!==t.tag||h||2!==t.indent&&e>0)&&(l=!1),h&&t.usedDuplicates[c])t.dump="*ref_"+c;else{if(d&&h&&!t.usedDuplicates[c]&&(t.usedDuplicates[c]=!0),"[object Object]"===s)r&&0!==Object.keys(t.dump).length?(mi(t,e,t.dump,l),h&&(t.dump="&ref_"+c+t.dump)):(pi(t,e,t.dump),h&&(t.dump="&ref_"+c+" "+t.dump));else if("[object Array]"===s)r&&0!==t.dump.length?(t.noArrayIndent&&!o&&e>0?fi(t,e-1,t.dump,l):fi(t,e,t.dump,l),h&&(t.dump="&ref_"+c+t.dump)):(di(t,e,t.dump),h&&(t.dump="&ref_"+c+" "+t.dump));else{if("[object String]"!==s){if("[object Undefined]"===s)return!1;if(t.skipInvalid)return!1;throw new Ve("unacceptable kind of an object to dump "+s)}"?"!==t.tag&&oi(t,t.dump,e,i,u)}null!==t.tag&&"?"!==t.tag&&(a=encodeURI("!"===t.tag[0]?t.tag.slice(1):t.tag).replace(/!/g,"%21"),a="!"===t.tag[0]?"!"+a:"tag:yaml.org,2002:"===a.slice(0,18)?"!!"+a.slice(18):"!<"+a+">",t.dump=a+" "+t.dump)}return!0}function bi(t,e){var n,r,l=[],i=[];for(_i(t,l,i),n=0,r=i.length;nt.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,((t,e,n)=>"<"+e+n.replace(/="([^"]*)"/g,"='$1'")+">"))),"cleanupText"),Ti=(0,P.K2)((t=>{const{text:e,metadata:n}=wi(t),{displayMode:r,title:l,config:i={}}=n;return r&&(i.gantt||(i.gantt={}),i.gantt.displayMode=r),{title:l,config:i,text:e}}),"processFrontmatter"),Si=(0,P.K2)((t=>{const e=D._K.detectInit(t)??{},n=D._K.detectDirective(t,"wrap");return Array.isArray(n)?e.wrap=n.some((({type:t})=>{})):"wrap"===n?.type&&(e.wrap=!0),{text:(0,D.vU)(t),directive:e}}),"processDirectives");function Ki(t){const e=ki(t),n=Ti(e),r=Si(n.text),l=(0,D.$t)(n.config,r.directive);return{code:t=Pe(r.text),title:n.title,config:l}}(0,P.K2)(Ki,"preprocessDiagram");var Ai=["foreignobject"],Bi=["dominant-baseline"];function Fi(t){const e=Ki(t);return(0,N.cL)(),(0,N.xA)(e.config??{}),e}async function Ei(t,e){Ee();try{const{code:e}=Fi(t);return{diagramType:(await qi(e)).type}}catch(t){if(e?.suppressErrors)return!1;throw t}}(0,P.K2)(Fi,"processAndSetConfigs"),(0,P.K2)(Ei,"parse");var Li=(0,P.K2)(((t,e,n=[])=>`\n.${t} ${e} { ${n.join(" !important; ")} !important; }`),"cssImportantStyles"),Mi=(0,P.K2)(((t,e=new Map)=>{let n="";if(void 0!==t.themeCSS&&(n+=`\n${t.themeCSS}`),void 0!==t.fontFamily&&(n+=`\n:root { --mermaid-font-family: ${t.fontFamily}}`),void 0!==t.altFontFamily&&(n+=`\n:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),e instanceof Map){const r=t.htmlLabels||t.flowchart?.htmlLabels?["> *","span"]:["rect","polygon","ellipse","circle","path"];e.forEach((t=>{(0,I._S)(t.styles)||r.forEach((e=>{n+=Li(t.id,e,t.styles)})),(0,I._S)(t.textStyles)||(n+=Li(t.id,"tspan",t.textStyles))}))}return n}),"createCssStyles"),Oi=(0,P.K2)(((t,e,n,r)=>{const l=Mi(t,n);return St(Ct(`${r}{${(0,N.tM)(e,l,t.themeVariables)}}`),Kt)}),"createUserStyles"),$i=(0,P.K2)(((t="",e,n)=>{let r=t;return n||e||(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),r=(0,D.Sm)(r),r=r.replace(/
/g,"
"),r}),"cleanUpSvgCode"),Ii=(0,P.K2)(((t="",e)=>``),"putIntoIFrame"),Di=(0,P.K2)(((t,e,n,r,l)=>{const i=t.append("div");i.attr("id",n),r&&i.attr("style",r);const o=i.append("svg").attr("id",e).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return l&&o.attr("xmlns:xlink",l),o.append("g"),t}),"appendDivSvgG");function Ni(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}(0,P.K2)(Ni,"sandboxedIframe");var Pi=(0,P.K2)(((t,e,n,r)=>{t.getElementById(e)?.remove(),t.getElementById(n)?.remove(),t.getElementById(r)?.remove()}),"removeExistingElements"),ji=(0,P.K2)((async function(t,e,n){Ee();const r=Fi(e);e=r.code;const l=(0,N.zj)();N.Rm.debug(l),e.length>(l?.maxTextSize??5e4)&&(e="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");const i="#"+t,o="i"+t,a="#"+o,s="d"+t,u="#"+s,c=(0,P.K2)((()=>{const t=d?a:u,e=(0,N.df)(t).node();e&&"remove"in e&&e.remove()}),"removeTempElements");let h=(0,N.df)("body");const d="sandbox"===l.securityLevel,f="loose"===l.securityLevel,p=l.fontFamily;if(void 0!==n){if(n&&(n.innerHTML=""),d){const t=Ni((0,N.df)(n),o);h=(0,N.df)(t.nodes()[0].contentDocument.body),h.node().style.margin=0}else h=(0,N.df)(n);Di(h,t,s,`font-family: ${p}`,"http://www.w3.org/1999/xlink")}else{if(Pi(document,t,s,o),d){const t=Ni((0,N.df)("body"),o);h=(0,N.df)(t.nodes()[0].contentDocument.body),h.node().style.margin=0}else h=(0,N.df)("body");Di(h,t,s)}let m,g;try{m=await Le.fromText(e,{title:r.title})}catch(t){if(l.suppressErrorRendering)throw c(),t;m=await Le.fromText("error"),g=t}const y=h.select(u).node(),b=m.type,_=y.firstChild,x=_.firstChild,C=m.renderer.getClasses?.(e,m),v=Oi(l,b,C,i),w=document.createElement("style");w.innerHTML=v,_.insertBefore(w,x);try{await m.renderer.draw(e,t,M.r,m)}catch(n){throw l.suppressErrorRendering?c():oe.draw(e,t,M.r),n}const k=h.select(`${u} svg`),T=m.db.getAccTitle?.(),S=m.db.getAccDescription?.();Ri(b,k,T,S),h.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let K=h.select(u).node().innerHTML;if(N.Rm.debug("config.arrowMarkerAbsolute",l.arrowMarkerAbsolute),K=$i(K,d,(0,N._3)(l.arrowMarkerAbsolute)),d){const t=h.select(u+" svg").node();K=Ii(K,t)}else f||(K=$e.default.sanitize(K,{ADD_TAGS:Ai,ADD_ATTR:Bi}));if(Oe(),g)throw g;return c(),{diagramType:b,svg:K,bindFunctions:m.db.bindFunctions}}),"render");function zi(t={}){t?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),(0,N.wZ)(t),t?.theme&&t.theme in N.H$?t.themeVariables=N.H$[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=N.H$.default.getThemeVariables(t.themeVariables));const e="object"==typeof t?(0,N.UU)(t):(0,N.Q2)();(0,N.He)(e.logLevel),Ee()}(0,P.K2)(zi,"initialize");var qi=(0,P.K2)(((t,e={})=>{const{code:n}=Ki(t);return Le.fromText(n,e)}),"getDiagramFromText");function Ri(t,e,n,r){De(e,t),Ne(e,n,r,e.attr("id"))}(0,P.K2)(Ri,"addA11yInfo");var Wi=Object.freeze({render:ji,parse:Ei,getDiagramFromText:qi,initialize:zi,getConfig:N.zj,setConfig:N.eI,getSiteConfig:N.Q2,updateSiteConfig:N.B6,reset:()=>{(0,N.cL)()},globalReset:()=>{(0,N.cL)(N.sb)},defaultConfig:N.sb});(0,N.He)((0,N.zj)().logLevel),(0,N.cL)((0,N.zj)());var Ui=(0,P.K2)((async()=>{N.Rm.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(N.mW).map((async([t,{detector:e,loader:n}])=>{if(n)try{(0,N.Gs)(t)}catch(r){try{const{diagram:t,id:r}=await n();(0,N.Js)(r,t,e)}catch(e){throw N.Rm.error(`Failed to load external diagram with key ${t}. Removing from detectors.`),delete N.mW[t],e}}})))).filter((t=>"rejected"===t.status));if(t.length>0){N.Rm.error(`Failed to load ${t.length} external diagrams`);for(const e of t)N.Rm.error(e);throw new Error(`Failed to load ${t.length} external diagrams`)}}),"loadRegisteredDiagrams"),Hi=(0,P.K2)(((t,e,n)=>{N.Rm.warn(t),(0,D.dq)(t)?(n&&n(t.str,t.hash),e.push({...t,message:t.str,error:t})):(n&&n(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))}),"handleError"),Yi=(0,P.K2)((async function(t={querySelector:".mermaid"}){try{await Gi(t)}catch(e){if((0,D.dq)(e)&&N.Rm.error(e.str),io.parseError&&io.parseError(e),!t.suppressErrors)throw N.Rm.error("Use the suppressErrors option to suppress these errors"),e}}),"run"),Gi=(0,P.K2)((async function({postRenderCallback:t,querySelector:e,nodes:n}={querySelector:".mermaid"}){const r=Wi.getConfig();let l;if(N.Rm.debug((t?"":"No ")+"Callback function found"),n)l=n;else{if(!e)throw new Error("Nodes and querySelector are both undefined");l=document.querySelectorAll(e)}N.Rm.debug(`Found ${l.length} diagrams`),void 0!==r?.startOnLoad&&(N.Rm.debug("Start On Load: "+r?.startOnLoad),Wi.updateSiteConfig({startOnLoad:r?.startOnLoad}));const i=new D._K.InitIDGenerator(r.deterministicIds,r.deterministicIDSeed);let o;const a=[];for(const e of Array.from(l)){if(N.Rm.info("Rendering diagram: "+e.id),e.getAttribute("data-processed"))continue;e.setAttribute("data-processed","true");const n=`mermaid-${i.next()}`;o=e.innerHTML,o=(0,$.T)(D._K.entityDecode(o)).trim().replace(//gi,"
");const r=D._K.detectInit(o);r&&N.Rm.debug("Detected early reinit: ",r);try{const{svg:r,bindFunctions:l}=await lo(n,o,e);e.innerHTML=r,t&&await t(n),l&&l(e)}catch(t){Hi(t,a,io.parseError)}}if(a.length>0)throw a[0]}),"runThrowsErrors"),Vi=(0,P.K2)((function(t){Wi.initialize(t)}),"initialize"),Ji=(0,P.K2)((async function(t,e,n){N.Rm.warn("mermaid.init is deprecated. Please use run instead."),t&&Vi(t);const r={postRenderCallback:n,querySelector:".mermaid"};"string"==typeof e?r.querySelector=e:e&&(e instanceof HTMLElement?r.nodes=[e]:r.nodes=e),await Yi(r)}),"init"),Xi=(0,P.K2)((async(t,{lazyLoad:e=!0}={})=>{Ee(),(0,N.Xd)(...t),!1===e&&await Ui()}),"registerExternalDiagrams"),Zi=(0,P.K2)((function(){if(io.startOnLoad){const{startOnLoad:t}=Wi.getConfig();t&&io.run().catch((t=>N.Rm.error("Mermaid failed to initialize",t)))}}),"contentLoaded");"undefined"!=typeof document&&window.addEventListener("load",Zi,!1);var Qi=(0,P.K2)((function(t){io.parseError=t}),"setParseErrorHandler"),to=[],eo=!1,no=(0,P.K2)((async()=>{if(!eo){for(eo=!0;to.length>0;){const t=to.shift();if(t)try{await t()}catch(t){N.Rm.error("Error executing queue",t)}}eo=!1}}),"executeQueue"),ro=(0,P.K2)((async(t,e)=>new Promise(((n,r)=>{const l=(0,P.K2)((()=>new Promise(((l,i)=>{Wi.parse(t,e).then((t=>{l(t),n(t)}),(t=>{N.Rm.error("Error parsing",t),io.parseError?.(t),i(t),r(t)}))}))),"performCall");to.push(l),no().catch(r)}))),"parse"),lo=(0,P.K2)(((t,e,n)=>new Promise(((r,l)=>{const i=(0,P.K2)((()=>new Promise(((i,o)=>{Wi.render(t,e,n).then((t=>{i(t),r(t)}),(t=>{N.Rm.error("Error parsing",t),io.parseError?.(t),o(t),l(t)}))}))),"performCall");to.push(i),no().catch(l)}))),"render"),io={startOnLoad:!0,mermaidAPI:Wi,parse:ro,render:lo,init:Ji,run:Yi,registerExternalDiagrams:Xi,initialize:Vi,parseError:void 0,contentLoaded:Zi,setParseErrorHandler:Qi,detectType:N.Ch},oo=io,ao=function(t){var e=t.svgElement,n=t.updateInspector;(0,r.useEffect)((function(){l()}),[e]);var l=function(){e&&e.addEventListener("click",i)},i=function(t){for(var e=t.target;e&&!e.classList.contains("unit");)e=e.parentElement;for(var r=e?e.id:null;e&&!e.classList.contains("component");)e=e.parentElement;for(var l=e?e.id:null;e&&!e.classList.contains("page");)e=e.parentElement;var i=e?e.id:null;n(r,l,i)};return r.createElement("div",null)};function so(t){return so="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},so(t)}function uo(){uo=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,l=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var i=e&&e.prototype instanceof y?e:y,o=Object.create(i.prototype),a=new F(r||[]);return l(o,"_invoke",{value:S(t,n,a)}),o}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=c;var d="suspendedStart",f="suspendedYield",p="executing",m="completed",g={};function y(){}function b(){}function _(){}var x={};u(x,o,(function(){return this}));var C=Object.getPrototypeOf,v=C&&C(C(E([])));v&&v!==n&&r.call(v,o)&&(x=v);var w=_.prototype=y.prototype=Object.create(x);function k(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function n(l,i,o,a){var s=h(t[l],t,i);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"==so(c)&&r.call(c,"__await")?e.resolve(c.__await).then((function(t){n("next",t,o,a)}),(function(t){n("throw",t,o,a)})):e.resolve(c).then((function(t){u.value=t,o(u)}),(function(t){return n("throw",t,o,a)}))}a(s.arg)}var i;l(this,"_invoke",{value:function(t,r){function l(){return new e((function(e,l){n(t,r,e,l)}))}return i=i?i.then(l,l):l()}})}function S(e,n,r){var l=d;return function(i,o){if(l===p)throw Error("Generator is already running");if(l===m){if("throw"===i)throw o;return{value:t,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=K(a,r);if(s){if(s===g)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(l===d)throw l=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);l=p;var u=h(e,n,r);if("normal"===u.type){if(l=r.done?m:f,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(l=m,r.method="throw",r.arg=u.arg)}}}function K(e,n){var r=n.method,l=e.iterator[r];if(l===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,K(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=h(l,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function B(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function E(e){if(e||""===e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var l=-1,i=function n(){for(;++l=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return l("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(s&&u){if(this.prev=0;--n){var l=this.tryEntries[n];if(l.tryLoc<=this.prev&&r.call(l,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),B(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var l=r.arg;B(n)}return l}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:E(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function co(t,e,n,r,l,i,o){try{var a=t[i](o),s=a.value}catch(t){return void n(t)}a.done?e(s):Promise.resolve(s).then(r,l)}const ho=function(t){var e=t.text,n=t.update,l=t.exampleSvg,i=(t.setTotalPages,t.setSvgContent),o=(0,r.useRef)(null);return(0,r.useEffect)((function(){oo.initialize({startOnLoad:!0,securityLevel:"loose",theme:"forest",logLevel:5});var t=function(){var t,r=(t=uo().mark((function t(){var r,a;return uo().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!o.current||""===e){t.next=19;break}if(t.prev=1,!l){t.next=7;break}o.current.innerHTML=l,n(o.current),t.next=14;break;case 7:return t.next=9,oo.mermaidAPI.render("preview",e);case 9:r=t.sent,a=r.svg,i(a),o.current.innerHTML=a,n(o.current);case 14:t.next=19;break;case 16:t.prev=16,t.t0=t.catch(1),console.error("Mermaid render error:",t.t0);case 19:case"end":return t.stop()}}),t,null,[[1,16]])})),function(){var e=this,n=arguments;return new Promise((function(r,l){var i=t.apply(e,n);function o(t){co(i,r,l,o,a,"next",t)}function a(t){co(i,r,l,o,a,"throw",t)}o(void 0)}))});return function(){return r.apply(this,arguments)}}();return t(),function(){o.current&&(o.current.innerHTML="")}}),[e,l]),r.createElement("div",{ref:o,className:"mermaid-container"})};var fo=n(3340),po=n(7235),mo=n(3044),go=n(6879),yo=n(6466),bo=n(3360),_o=n(5800),xo=n(7187),Co=n(1045),vo=n(7477);function wo(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,l,i,o,a=[],s=!0,u=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(a.push(r.value),a.length!==e);s=!0);}catch(t){u=!0,l=t}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw l}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return ko(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ko(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ko(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=1?d-1:1)},variant:"contained",style:{fontSize:"12px",marginRight:"15px",maxWidth:"80px",maxHeight:"25px",minWidth:"40px",minHeight:"25px"}},"Prev"),r.createElement(fo.A,{variant:"contained",style:{fontSize:"12px",marginRight:"15px",maxWidth:"60px",maxHeight:"25px",minWidth:"40px",minHeight:"25px"}},"Play"),r.createElement(fo.A,{onClick:function(){p(d+1<=s?d+1:s)},variant:"contained",style:{fontSize:"12px",marginRight:"15px",maxWidth:"80px",maxHeight:"25px",minWidth:"40px",minHeight:"25px"}},"Next"),d,"/",s)))))};var So=n(1003),Ko=n.n(So),Ao=n(1381),Bo=n(8847),Fo=[{id:"badExample",title:"Bad example",tags:[],svg:"",userCode:'// common error\n// 1.page index exceeds data structure, i.e no array[9] but there are only 5 element in array\n// 2.invalid input format\n// 3.arrow field with ""\n// 4.can\'t find component name\n// 5.page index is invalid, like -1\n data:\n\tarray arr = {\n\t\tstructure: [[unit1],[unit1,unit2],[unit1,unit2,unit3], *] # unit_id, required\n\t}\n\tlinkedlist li = {\n\t\tstructure: [[unit1],[unit1,unit2],[unit1,unit2,unit3], *] # unit_id, required\n\t}\n\ttree tr = {\n\t\tstructure: [[node1],[node1,node2],[node1,node2,node3], *, *, *]\n\t}\n\ndraw:\n\tpage p := [0,2] {\n\t\tshow arr[p]\n\t\tshow li[p-1]\n\t}\n\tpage p := [3,3] {\n\t\tshow li[3]\n\t}\n\tpage i := [4,8] {\n\t\tshow li[8-i]\n\t\tshow tr[i]\n\t}'},{id:"goodExample",title:"Good example",tags:[],svg:"",userCode:"data:\n\tarray arr = {\n\t\tstructure: [[unit1],[unit1,unit2],[unit1,unit2,unit3], *]\n\t}\n\tlinkedlist li = {\n\t\tstructure: [[unit1],[unit1,unit2],[unit1,unit2,unit3], *] \n\t}\n\ttree tr = {\n\t\tstructure: [[node1],[node1,node2],[node1,node2,node3], *, *, *]\n\t}\n\ndraw:\n\tpage p := [0,2] {\n\t\tshow arr[p]\n\t\tshow li[p]\n\t}\n\tpage p := [3,3] {\n\t\tshow li[3]\n\t}",renderCode:""},{id:"goodExample2",title:"Good example 2",tags:[],svg:"",userCode:"data:\ngraph gh = {\n id:[[n1],[n1,n2],[n1,n2,n3],[n1,n2,n3,n4],[n1,n2,n3,n4,n5]]\n edge:[[(n1,n1)],[(n1,n2),(n1,n1)]]\n value:[[n1,n1],[n1,n2,n1,n2],[n1,n2,n3,n1,n2,n3],[n1,n2,n3,n4,n1,n2,n3,n4],[n1,n2,n3,n4,n5,n1,n2,n3,n4,n5]]\n color:[[blue],[null,blue],[null,null,blue],[null,null,null,null],[null,null,null,null,null]]\n arrow:[[null],[null,null],[null,null,null],[null,null,null,null],[null,null,null,null,null]]\n hidden:[[false],[false,null],[null,null,null],[null,null,null,null],[null,null,null,null,null]]\n}\narray arr = {\n structure:[[n1],[n1,n2],[n1,n2,n3],[n1,n2,n3,n4],[n1,n2,n3,n4,n5]]\n value:[[n1,n1],[n1,n2,n1,n2],[n1,n2,n3,n1,n2,n3],[n1,n2,n3,n4,n1,n2,n3,n4],[n1,n2,n3,n4,n5,n1,n2,n3,n4,n5]]\n color:[[blue],[null,blue],[null,null,blue],[null,null,null,null],[null,null,null,null,null]]\n arrow:[[null],[null,null],[null,null,null],[null,null,null,null],[null,null,null,null,null]]\n hidden:[[false],[false,false],[false,false,false],[false,false,false,false],[false,false,false,false,false]]\n}\ntree tr = {\n structure:[[n1],[n1,n2],[n1,n2,n3],[n1,n2,n3,n4],[n1,n2,n3,n4,n5]]\n value:[[n1,n1],[n1,n2,n1,n2],[n1,n2,n3,n1,n2,n3],[n1,n2,n3,n4,n1,n2,n3,n4],[n1,n2,n3,n4,n5,n1,n2,n3,n4,n5]]\n color:[[null],[null,null],[null,null,null],[null,null,null,null],[null,null,null,null,null]]\n arrow:[[null],[null,null],[null,null,null],[null,null,null,null],[null,null,null,null,null]]\n hidden:[[false],[false,false],[false,false,false],[false,false,false,false],[false,false,false,false,false]]\n}\nlinkedlist li = {\n structure:[[n1],[n1,n2],[n1,n2,n3],[n1,n2,n3,n4],[n1,n2,n3,n4,n5]]\n value:[[n1,n1],[n1,n2,n1,n2],[n1,n2,n3,n1,n2,n3],[n1,n2,n3,n4,n1,n2,n3,n4],[n1,n2,n3,n4,n5,n1,n2,n3,n4,n5]]\n color:[[blue],[null,blue],[null,null,blue],[null,null,null,null],[null,null,null,null,null]]\n arrow:[[null],[null,null],[null,null,null],[null,null,null,null],[null,null,null,null,null]]\n hidden:[[false],[false,false],[false,false,false],[false,false,false,false],[false,false,false,false,false]]\n}\nstack sk = {\n structure:[[n1],[n1,n2],[n1,n2,n3],[n1,n2,n3,n4],[n1,n2,n3,n4,n5]]\n value:[[n1,n1],[n1,n2,n1,n2],[n1,n2,n3,n1,n2,n3],[n1,n2,n3,n4,n1,n2,n3,n4],[n1,n2,n3,n4,n5,n1,n2,n3,n4,n5]]\n color:[[null],[null,null],[null,null,null],[null,null,null,null],[null,null,null,null,null]]\n arrow:[[null],[null,null],[null,null,null],[null,null,null,null],[null,null,null,null,null]]\n hidden:[[false],[false,false],[false,false,false],[false,false,false,false],[false,false,false,false,false]]\n}\nmatrix mr = {\n structure:[[[1]],[[1],[1,2]],[[1],[1,2],[1,2,3]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]]]\n value:[[[1]],[[1],[1,2]],[[1],[1,2],[1,2,3]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]]]\n color:[[[1]],[[1],[1,2]],[[1],[1,2],[1,2,3]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]],[[1],[1,2],[1,2,3],[1,2,3,4]]]\n arrow:[[[null]],[[yes],[null,yes]],[[null],[null,null],[null,yes,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]]]\n hidden:[[[null]],[[null],[null,null]],[[null],[null,null],[null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]],[[null],[null,null],[null,null,null],[null,null,null,null]]]\n}\ndraw:\npage p:=[0,2] {\nshow mr[p]\n}\npage p:=[3,4] {\nshow tr[p-3]\n}\npage p:=[5,6] {\nshow li[p-5]\nshow arr[p-5]\n}\npage i:=[7,8] {\nshow sk[i-7]\n}\npage jk:=[9,13] {\nshow gh[jk-9]\n}",renderCode:""},{id:"graphTest",title:"graph Test",userCode:"data:\ngraph gh = {\nid:[[n1],[n1,n2],[n1,n2,n3]]\nvalue:[[1],[1,2],[1,2,3]]\nedge:[[(node1,node1)]]\n}\ndraw:\npage p := [0,2] {\nshow gh[p]\n}"},{id:"arrayTest",title:"array Test",userCode:"data:\narray arr1 = {\nstructure:[[n1],[n1,n2],[n1,n2,n3]]\n}\narray arr2 = {\nstructure:[[n1],[n1,n2],[n1,n2,n3]]\n}\ndraw:\npage p := [0,1] {\nshow arr1[p]\n}\npage p := [2,2] {\nshow arr1[p]\nshow arr2[p-1]\n}"},{id:"Fibonacci",title:"Fibonacci",userCode:"data:\narray arr1 = {\n structure:[[1],[1,1],[1,1,2],[1,1,2,3],[1,1,2,3,5],[1,1,2,3,5,8]]\n value:[[1],[1,1],[1,1,2],[1,1,2,3],[1,1,2,3]]\n color:[[null],[null,null],[null,null,null],[null,null,null,null],[null,null,null,null]]\n arrow:[[null],[null,null],[null,null,null],[null,null,null,null],[null,null,null,null]]\n hidden:[[false],[false,false],[false,false,false],[false,false,false,false],[false,false,false,false]]\n}\ndraw:\npage p:=[0,5] {\nshow arr1[p]\n}"},{id:"dfsExample",title:"Depth-First Search",userCode:"data:\ngraph dfs = {\n id:[[n1,n2,n3,n4,n5,n6,n7,n8],[n1,n2,n3,n4,n5,n6,n7,n8],[n1,n2,n3,n4,n5,n6,n7,n8],[n1,n2,n3,n4,n5,n6,n7,n8]]\n edge:[[(n1,n2),(n1,n6),(n1,n7),(n2,n3),(n3,n7),(n3,n5),(n4,n5),(n4,n6),(n4,n8)],[(n1,n2),(n1,n6),(n1,n7),(n2,n3),(n3,n7),(n3,n5),(n4,n5),(n4,n6),(n4,n8)],[(n1,n2),(n1,n6),(n1,n7),(n2,n3),(n3,n7),(n3,n5),(n4,n5),(n4,n6),(n4,n8)],[(n1,n2),(n1,n6),(n1,n7),(n2,n3),(n3,n7),(n3,n5),(n4,n5),(n4,n6),(n4,n8)]]\n value:[[n1,n2,n3,n4,n5,n6,n7,n8],[n1,n2,n3,n4,n5,n6,n7,n8],[n1,n2,n3,n4,n5,n6,n7,n8],[n1,n2,n3,n4,n5,n6,n7,n8]]\n color:[[red,null,null,null,null,null,null,null],[blue,red,null,null,null,null,null,null],[blue,blue,red,null,null,null,null,null],[blue,blue,blue,null,red,null,null,null]]\n arrow:[[start,null,null,null,null,null,null,null],[null,cur,null,null,null,null,null,null],[null,null,cur,null,null,null,null,null],[null,null,null,null,cur,null,null,null]]\n hidden:[[null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null]]\n}\ndraw:\npage p:=[0,3] {\nshow dfs[p]\n}"}],Eo=n(8675),Lo=n(6836),Mo=n(6746),Oo=n(1789),$o=n(4590),Io=n(7853),Do=n(9755);function No(t){var e=t.data,n=t.draw;return e.forEach((function(t){switch(t.type){case"array":case"tree":case"linkedlist":case"stack":var e=t.attributes.structure.length;t.attributes.value=t.attributes.value?t.attributes.value:[];for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=Array(e);nr.length||r.splice(i+1,0,r[i].slice())})),console.log("idx: ",n,"\nname: ",l,"\ncomponent_idx_dsl: ",i,"\ncomponent_id_dsl",a,"\nto copy: ",t.data[a],"\nafter copy: ",t.data)})),e.range.end+=1;var a=Po(t);n(a),s(!1)},sx:{mr:1},size:"small"},r.createElement(Io.A,{sx:{fontSize:20}}))),r.createElement(A.A,{title:"Remove last Page"},r.createElement(B.A,{disabled:!(i===o)||o<=1,onClick:function(){console.log("remove current page: ",i-1);var t=No(l);a((function(t){return t-1}));var e=(0,Uo.rO)(t,i-1),r=e.page_index,o=i-1;e.show.forEach((function(e){var n=e.component_index,l=e.component_name,i=(0,Uo.O4)(n,r,o),a=(0,Uo.el)(t,l),s=t.data[a].attributes;Object.entries(s).forEach((function(t){var e=Jo(t,2),n=e[0],r=e[1];"edge"===n&&i-1<0||r.splice(i,1)}))})),e.range.end-=1;var u=Po(t);n(u),s(!1)},sx:{mr:1},size:"small"},r.createElement(Do.A,{sx:{fontSize:20}}))))),e&&r.createElement(h.A,{component:"form",sx:{"& .MuiTextField-root":{m:1,width:"25ch"},p:"5px 15px"},noValidate:!0,autoComplete:"off"},r.createElement("div",null,r.createElement(h.A,{display:"flex",flexGrow:1,alignItems:"center",sx:{"& > *":{mr:1}}},r.createElement(K.A,{variant:"overline"},"Current Selection:"),r.createElement(Lo.A,{label:e.unitID,size:"small"}),r.createElement(Lo.A,{label:e.componentID,size:"small"}),r.createElement(Lo.A,{label:e.pageID,size:"small"}))),r.createElement("div",null,r.createElement("div",null,r.createElement(Mo.A,{control:r.createElement(Oo.A,{checked:d.isIndex,onChange:function(t){f(Go(Go({},d),{},{isIndex:t.target.checked}))}}),label:"IsIndex"}),r.createElement(fo.A,{variant:"contained",size:"small",onClick:function(){console.log("query index:",e),console.log("new data:",d);var t=Go({},l),r=(0,Uo.rO)(t,parseInt(e.pageID.slice(4))),i=r.page_index,o=parseInt(e.pageID.slice(4)),a=r.show[parseInt(e.componentID.slice(10))].component_index,u=r.show[parseInt(e.componentID.slice(10))].component_name,c=(0,Uo.O4)(a,i,o),h=(0,Uo.el)(t,u),f=e.unitID.slice(5),p=t.data[h],m=t.data[h].type,g=p.attributes;switch(m){case"array":case"stack":g.structure[c][parseInt(f)]=""!=d.value?d.value:"null",g.value[c][parseInt(f)]=""!=d.value?d.value:"null",g.color[c][parseInt(f)]=""!=d.color?d.color:"null",g.arrow[c][parseInt(f)]=""!=d.arrow?d.arrow:"null",g.hidden[c][parseInt(f)]=""!=d.hidden?d.hidden:"false";break;case"tree":case"linkedlist":case"graph":g.value[c][parseInt(f)]=""!=d.value?d.value:"null",g.color[c][parseInt(f)]=""!=d.color?d.color:"null",g.arrow[c][parseInt(f)]=""!=d.arrow?d.arrow:"null",g.hidden[c][parseInt(f)]=""!=d.hidden?d.hidden:"false",console.log("debug findSelectedComponentData\n",g);break;case"matrix":var y=parseInt(f.slice(1,-1).split(",")[0]),b=parseInt(f.slice(1,-1).split(",")[1]);g.value[c][y][b]=""!=d.value?d.value:"null",g.color[c][y][b]=""!=d.color?d.color:"null",g.arrow[c][y][b]=""!=d.arrow?d.arrow:"null",g.hidden[c][y][b]=""!=d.hidden?d.hidden:"false";break;default:console.log("GUI EDITOR - findUnitData, no matching component type!")}var _=Po(t);n(_),s(!1)}},"Update")),r.createElement("div",null,("graph"==m||"tree"==m||"linkedlist"==m)&&r.createElement($o.A,{label:"Id",disabled:"true",id:"outlined-size-small",helperText:"The unit id is unchangeable",value:d.id,size:"small",onChange:function(t){f(Go(Go({},d),{},{value:t.target.value}))}}),r.createElement($o.A,{label:"Value",id:"outlined-size-small",value:d.value,size:"small",onChange:function(t){f(Go(Go({},d),{},{value:t.target.value}))}}),r.createElement($o.A,{label:"Unit Color",id:"outlined-size-small",value:d.color,size:"small",onChange:function(t){f(Go(Go({},d),{},{color:t.target.value}))}}),r.createElement($o.A,{label:"Arrow Label",id:"outlined-size-small",value:d.arrow,size:"small",onChange:function(t){f(Go(Go({},d),{},{arrow:t.target.value}))}}),"graph"==m&&r.createElement($o.A,{label:"Hidden",id:"outlined-size-small",value:d.hidden,size:"small",onChange:function(t){f(Go(Go({},d),{},{hidden:t.target.value}))}})))))};var Qo=n(9794),ta=n(1826),ea=n(421),na=n(8803);const ra=function(){return r.createElement(Qo.A,{position:"static",sx:{justifyContent:"space-between",flexDirection:"row",padding:"2px 15px",borderBottom:"1px solid #444",backgroundColor:"#000"}},r.createElement(h.A,{display:"flex",flexGrow:1,alignItems:"center"},r.createElement(K.A,{sx:{fontWeight:"bold",textTransform:"uppercase"}},"Intuition Vis")),r.createElement(h.A,{display:"flex"},r.createElement(ta.A,{disableGutters:!0},r.createElement(ea.Ay,{container:!0,justifyContent:"space-between",alignItems:"center"},r.createElement(B.A,{href:"https://github.com/ETH-PEACH-Lab/intuition-vis-test",target:"_blank",rel:"noreferrer",size:"large"},r.createElement(na.A,null)),r.createElement(fo.A,{variant:"text",color:"inherit"},"Docs"),r.createElement(fo.A,{variant:"text",color:"inherit"},"Tutorial"),r.createElement(fo.A,{variant:"text",color:"inherit",href:"https://eth-peach-lab.github.io/intuition-visualisation/",target:"_blank"},"Intuition Viewer")))))};function la(t){return la="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},la(t)}function ia(){ia=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,l=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var i=e&&e.prototype instanceof y?e:y,o=Object.create(i.prototype),a=new F(r||[]);return l(o,"_invoke",{value:S(t,n,a)}),o}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=c;var d="suspendedStart",f="suspendedYield",p="executing",m="completed",g={};function y(){}function b(){}function _(){}var x={};u(x,o,(function(){return this}));var C=Object.getPrototypeOf,v=C&&C(C(E([])));v&&v!==n&&r.call(v,o)&&(x=v);var w=_.prototype=y.prototype=Object.create(x);function k(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function n(l,i,o,a){var s=h(t[l],t,i);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"==la(c)&&r.call(c,"__await")?e.resolve(c.__await).then((function(t){n("next",t,o,a)}),(function(t){n("throw",t,o,a)})):e.resolve(c).then((function(t){u.value=t,o(u)}),(function(t){return n("throw",t,o,a)}))}a(s.arg)}var i;l(this,"_invoke",{value:function(t,r){function l(){return new e((function(e,l){n(t,r,e,l)}))}return i=i?i.then(l,l):l()}})}function S(e,n,r){var l=d;return function(i,o){if(l===p)throw Error("Generator is already running");if(l===m){if("throw"===i)throw o;return{value:t,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=K(a,r);if(s){if(s===g)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(l===d)throw l=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);l=p;var u=h(e,n,r);if("normal"===u.type){if(l=r.done?m:f,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(l=m,r.method="throw",r.arg=u.arg)}}}function K(e,n){var r=n.method,l=e.iterator[r];if(l===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,K(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=h(l,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function B(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function E(e){if(e||""===e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var l=-1,i=function n(){for(;++l=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return l("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(s&&u){if(this.prev=0;--n){var l=this.tryEntries[n];if(l.tryLoc<=this.prev&&r.call(l,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),B(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var l=r.arg;B(n)}return l}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:E(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function oa(t,e,n,r,l,i,o){try{var a=t[i](o),s=a.value}catch(t){return void n(t)}a.done?e(s):Promise.resolve(s).then(r,l)}function aa(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,l,i,o,a=[],s=!0,u=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(a.push(r.value),a.length!==e);s=!0);}catch(t){u=!0,l=t}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw l}}return a}}(t,e)||sa(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sa(t,e){if(t){if("string"==typeof t)return ua(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ua(t,e):void 0}}function ua(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n0&&n.forEach((function(t){t&&t.style&&(t.style.display="none")})),n&&n.length>0&&n[t].style&&(n[t].style.display="inline")}};(0,r.useEffect)((function(){H()}),[]),(0,r.useEffect)((function(){var t=document.getElementById("preview"),e=0;try{e=t.querySelectorAll("g.page").length}catch(t){console.log("got error when fetching total pages: error")}O(e),R(B-1)}),[I]),(0,r.useEffect)((function(){var t=document.getElementById("preview");if(t&&B<=M){var e=t.querySelectorAll("g.page");e&&e.length>0&&e.forEach((function(t){t&&t.style&&(t.style.display="none")})),e&&e.length>0&&e[B-1].style&&(e[B-1].style.display="inline")}}),[B]),(0,r.useEffect)((function(){try{var t=Wo(s);f(t);var e=(0,Eo.G)(t);g(e),R(B-1)}catch(t){g("DSL grammar is incorrect!"),console.log("update mermaid error:\n",t)}}),[s]),(0,r.useEffect)((function(){var t=function(){F(window.currentPage)};return window.addEventListener("pageChange",t),function(){window.removeEventListener("pageChange",t)}}),[]);var W=function(t){var e=t.clientX,n=i,r=function(t){var r=n+t.clientX-e;r>100&&r20){var l=r.shift();document.cookie="".concat(l.timestamp,"=; max-age=0; path=/")}return r.sort((function(t,e){return new Date(e.timestamp)-new Date(t.timestamp)})),r})),alert("Diagram saved successfully!")},mermaidRef:z,updateInspector:Y,totalPages:M,setTotalPages:O,setSvgContent:D,currentPage:B,setCurrentPage:F}),r.createElement(Zo,{inspectorIndex:S,setCode1:u,parsedCode1:d,setParsedCode1:f,code1:s,currentPage:B,totalPages:M,setCurrentPage:F,setTotalPages:O,dslEditorEditable:P,setDslEditorEditable:j})))))))))};var ha=document.getElementById("app");(0,l.H)(ha).render(r.createElement(r.StrictMode,null,r.createElement(i.A,{theme:u},r.createElement(o.Ay,null),r.createElement(ca,null))))},3026:t=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function n(t,n,r){return(n=function(t){var n=function(t,n){if("object"!=e(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var l=r.call(t,"string");if("object"!=e(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==e(n)?n:n+""}(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}function r(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n0&&e.push(r(e[e.length-1])):e.push(t[n][0]);return e}function i(t){var e={id:null,value:null,color:null,arrow:null,hidden:null};return t.forEach((function(t){var n=Object.keys(t)[0],r=t[n];e[n]=r})),e}var o={Lexer:void 0,ParserRules:[{name:"main$string$1",symbols:[{literal:"d"},{literal:"a"},{literal:"t"},{literal:"a"},{literal:":"}],postprocess:function(t){return t.join("")}},{name:"main$string$2",symbols:[{literal:"d"},{literal:"r"},{literal:"a"},{literal:"w"},{literal:":"}],postprocess:function(t){return t.join("")}},{name:"main",symbols:["_","main$string$1","_","data_entries","_","main$string$2","draw_section","_"],postprocess:function(t){var e={data:t[3]};return e.draw=t[6],e}},{name:"draw_section$ebnf$1",symbols:["draw_entry"]},{name:"draw_section$ebnf$1",symbols:["draw_section$ebnf$1","draw_entry"],postprocess:function(t){return t[0].concat([t[1]])}},{name:"draw_section",symbols:["draw_section$ebnf$1"],postprocess:function(t){return t[0]}},{name:"draw_entry",symbols:["page_entry"],postprocess:function(t){return t[0]}},{name:"page_entry$string$1",symbols:[{literal:"p"},{literal:"a"},{literal:"g"},{literal:"e"}],postprocess:function(t){return t.join("")}},{name:"page_entry$string$2",symbols:[{literal:":"},{literal:"="}],postprocess:function(t){return t.join("")}},{name:"page_entry$ebnf$1$subexpression$1",symbols:["_","show_entry"]},{name:"page_entry$ebnf$1",symbols:["page_entry$ebnf$1$subexpression$1"]},{name:"page_entry$ebnf$1$subexpression$2",symbols:["_","show_entry"]},{name:"page_entry$ebnf$1",symbols:["page_entry$ebnf$1","page_entry$ebnf$1$subexpression$2"],postprocess:function(t){return t[0].concat([t[1]])}},{name:"page_entry",symbols:["_","page_entry$string$1","_","page_index","_","page_entry$string$2","_","range_entry","_",{literal:"{"},"page_entry$ebnf$1","_",{literal:"}"}],postprocess:function(t){var e={};return e.page_index=t[3][0],e.range=t[7],e.show=t[10].map((function(t){return t[1]})),e}},{name:"range_entry",symbols:[{literal:"["},"number",{literal:","},"number",{literal:"]"}],postprocess:function(t){return{start:t[1],end:t[3]}}},{name:"page_index",symbols:["alphanum"]},{name:"show_entry$string$1",symbols:[{literal:"s"},{literal:"h"},{literal:"o"},{literal:"w"}],postprocess:function(t){return t.join("")}},{name:"show_entry",symbols:["show_entry$string$1","_","component_name",{literal:"["},"component_index",{literal:"]"}],postprocess:function(t){return{component_name:t[2][0],component_index:t[4]}}},{name:"component_index$ebnf$1",symbols:[/[A-Za-z0-9\-\+\*/]/]},{name:"component_index$ebnf$1",symbols:["component_index$ebnf$1",/[A-Za-z0-9\-\+\*/]/],postprocess:function(t){return t[0].concat([t[1]])}},{name:"component_index",symbols:["component_index$ebnf$1"],postprocess:function(t){return t[0].join("")}},{name:"component_name",symbols:["alphanum"]},{name:"data_entries$ebnf$1$subexpression$1",symbols:["_","data_entry"]},{name:"data_entries$ebnf$1",symbols:["data_entries$ebnf$1$subexpression$1"]},{name:"data_entries$ebnf$1$subexpression$2",symbols:["_","data_entry"]},{name:"data_entries$ebnf$1",symbols:["data_entries$ebnf$1","data_entries$ebnf$1$subexpression$2"],postprocess:function(t){return t[0].concat([t[1]])}},{name:"data_entries",symbols:["data_entries$ebnf$1"],postprocess:function(t){return t[0].map((function(t){return t[1]}))}},{name:"data_entry$ebnf$1",symbols:["all_type_description"]},{name:"data_entry$ebnf$1",symbols:["data_entry$ebnf$1","all_type_description"],postprocess:function(t){return t[0].concat([t[1]])}},{name:"data_entry",symbols:["data_type","_","var_name","_",{literal:"="},"_",{literal:"{"},"data_entry$ebnf$1","_",{literal:"}"}],postprocess:function(t){switch(t[0][0]){case"array":var e={type:t[0][0],name:t[2]};return e.attributes=i(t[7].map((function(t){return t[0]}))),e;case"stack":var n={type:t[0][0],name:t[2]};return n.attributes=i(t[7].map((function(t){return t[0]}))),n;case"tree":var r={type:t[0][0],name:t[2]};return r.attributes=i(t[7].map((function(t){return t[0]}))),r;case"linkedlist":var l={type:t[0][0],name:t[2]};return l.attributes=i(t[7].map((function(t){return t[0]}))),l;case"matrix":var o={type:t[0][0],name:t[2],processed_data:t[7].map((function(t){return t[0]}))};return o.attributes=i(o.processed_data),o;case"graph":var a={type:t[0][0],name:t[2]};return a.attributes=i(t[7].map((function(t){return t[0]}))),a;default:return}}},{name:"all_type_description",symbols:["data_description"]},{name:"all_type_description",symbols:["matrix_description"],postprocess:function(t){return e=t,(n=[]).concat.apply(n,r(e));var e,n}},{name:"matrix_description",symbols:["_","attribute_name","_",{literal:":"},"_",{literal:"["},"_","matrix_components","_",{literal:"]"}],postprocess:function(t){return n({},t[1][0],l(t[7]))}},{name:"matrix_components$ebnf$1",symbols:[]},{name:"matrix_components$ebnf$1$subexpression$1",symbols:["_",{literal:","},"_","matrix_component_or_star"]},{name:"matrix_components$ebnf$1",symbols:["matrix_components$ebnf$1","matrix_components$ebnf$1$subexpression$1"],postprocess:function(t){return t[0].concat([t[1]])}},{name:"matrix_components",symbols:["matrix_component_or_star","matrix_components$ebnf$1"],postprocess:function(t){return[t[0]].concat(t[1].map((function(t){return t[3]})))}},{name:"matrix_component_or_star",symbols:["matrix_component"]},{name:"matrix_component_or_star",symbols:[{literal:"*"}],postprocess:function(t){return"*"===t[0]?"*":t[0]}},{name:"matrix_component",symbols:[{literal:"["},"matrix_rows",{literal:"]"}],postprocess:function(t){return t[1]}},{name:"matrix_rows$ebnf$1",symbols:[]},{name:"matrix_rows$ebnf$1$subexpression$1",symbols:[{literal:","},"_","matrix_row"]},{name:"matrix_rows$ebnf$1",symbols:["matrix_rows$ebnf$1","matrix_rows$ebnf$1$subexpression$1"],postprocess:function(t){return t[0].concat([t[1]])}},{name:"matrix_rows",symbols:["matrix_row","_","matrix_rows$ebnf$1"],postprocess:function(t){return[t[0]].concat(t[2].map((function(t){return t[2]})))}},{name:"matrix_row$ebnf$1",symbols:[]},{name:"matrix_row$ebnf$1$subexpression$1",symbols:[{literal:","},"_","value"]},{name:"matrix_row$ebnf$1",symbols:["matrix_row$ebnf$1","matrix_row$ebnf$1$subexpression$1"],postprocess:function(t){return t[0].concat([t[1]])}},{name:"matrix_row",symbols:["_",{literal:"["},"value","_","matrix_row$ebnf$1",{literal:"]"}],postprocess:function(t){return[t[2][0]].concat(t[4].map((function(t){return t[2][0]})))}},{name:"data_type$string$1",symbols:[{literal:"a"},{literal:"r"},{literal:"r"},{literal:"a"},{literal:"y"}],postprocess:function(t){return t.join("")}},{name:"data_type",symbols:["data_type$string$1"]},{name:"data_type$string$2",symbols:[{literal:"s"},{literal:"t"},{literal:"a"},{literal:"c"},{literal:"k"}],postprocess:function(t){return t.join("")}},{name:"data_type",symbols:["data_type$string$2"]},{name:"data_type$string$3",symbols:[{literal:"l"},{literal:"i"},{literal:"n"},{literal:"k"},{literal:"e"},{literal:"d"},{literal:"l"},{literal:"i"},{literal:"s"},{literal:"t"}],postprocess:function(t){return t.join("")}},{name:"data_type",symbols:["data_type$string$3"]},{name:"data_type$string$4",symbols:[{literal:"t"},{literal:"r"},{literal:"e"},{literal:"e"}],postprocess:function(t){return t.join("")}},{name:"data_type",symbols:["data_type$string$4"]},{name:"data_type$string$5",symbols:[{literal:"m"},{literal:"a"},{literal:"t"},{literal:"r"},{literal:"i"},{literal:"x"}],postprocess:function(t){return t.join("")}},{name:"data_type",symbols:["data_type$string$5"]},{name:"data_type$string$6",symbols:[{literal:"g"},{literal:"r"},{literal:"a"},{literal:"p"},{literal:"h"}],postprocess:function(t){return t.join("")}},{name:"data_type",symbols:["data_type$string$6"]},{name:"var_name$ebnf$1",symbols:[/[a-zA-Z0-9]/]},{name:"var_name$ebnf$1",symbols:["var_name$ebnf$1",/[a-zA-Z0-9]/],postprocess:function(t){return t[0].concat([t[1]])}},{name:"var_name",symbols:["var_name$ebnf$1"],postprocess:function(t){return t[0].join("").replace(",","")}},{name:"data_description",symbols:["_","attribute_name","_",{literal:":"},"_",{literal:"["},"_","data_rows","_",{literal:"]"}],postprocess:function(t){return n({},t[1][0],l(t[7]))}},{name:"attribute_name",symbols:["alphanum"]},{name:"data_rows$ebnf$1",symbols:[]},{name:"data_rows$ebnf$1$subexpression$1",symbols:[{literal:","},"_","data_row_or_star"]},{name:"data_rows$ebnf$1",symbols:["data_rows$ebnf$1","data_rows$ebnf$1$subexpression$1"],postprocess:function(t){return t[0].concat([t[1]])}},{name:"data_rows",symbols:["data_row_or_star","_","data_rows$ebnf$1"],postprocess:function(t){return[t[0]].concat(t[2].map((function(t){return t[2]})))}},{name:"data_row_or_star",symbols:["data_row"]},{name:"data_row_or_star",symbols:[{literal:"*"}],postprocess:function(t){return"*"===t[0]?"*":t[0]}},{name:"data_row",symbols:[{literal:"["},"_","value_edge_list","_",{literal:"]"}],postprocess:function(t){return"object"==e(t[2][0])?t[2][0]:t[2]}},{name:"value_edge_list",symbols:["edge_list"]},{name:"value_edge_list",symbols:["value_list"],postprocess:function(t){return t[0]}},{name:"value_list$ebnf$1",symbols:[]},{name:"value_list$ebnf$1$subexpression$1",symbols:[{literal:","},"_","value"]},{name:"value_list$ebnf$1",symbols:["value_list$ebnf$1","value_list$ebnf$1$subexpression$1"],postprocess:function(t){return t[0].concat([t[1]])}},{name:"value_list",symbols:["value","_","value_list$ebnf$1"],postprocess:function(t){return[t[0][0]].concat(t[2].map((function(t){return t[2][0]})))}},{name:"edge_list$ebnf$1",symbols:[]},{name:"edge_list$ebnf$1$subexpression$1",symbols:[{literal:","},"_","edge"]},{name:"edge_list$ebnf$1",symbols:["edge_list$ebnf$1","edge_list$ebnf$1$subexpression$1"],postprocess:function(t){return t[0].concat([t[1]])}},{name:"edge_list",symbols:["edge","_","edge_list$ebnf$1"],postprocess:function(t){return[t[0]].concat(t[2].map((function(t){return t[2]})))}},{name:"edge",symbols:[{literal:"("},"_","value","_",{literal:","},"_","value","_",{literal:")"}],postprocess:function(t){return{startPoint:t[2],endPoint:t[6]}}},{name:"value",symbols:["alphanum"]},{name:"number$ebnf$1",symbols:[/[0-9]/]},{name:"number$ebnf$1",symbols:["number$ebnf$1",/[0-9]/],postprocess:function(t){return t[0].concat([t[1]])}},{name:"number",symbols:["number$ebnf$1"],postprocess:function(t){return parseInt(t[0].join(""),10)}},{name:"alphanum$ebnf$1",symbols:[/[a-zA-Z0-9\/\\<>#@$&|]/]},{name:"alphanum$ebnf$1",symbols:["alphanum$ebnf$1",/[a-zA-Z0-9\/\\<>#@$&|]/],postprocess:function(t){return t[0].concat([t[1]])}},{name:"alphanum",symbols:["alphanum$ebnf$1"],postprocess:function(t){return t[0].join("")}},{name:"_$ebnf$1",symbols:[]},{name:"_$ebnf$1",symbols:["_$ebnf$1",/[ \t\n\r]/],postprocess:function(t){return t[0].concat([t[1]])}},{name:"_",symbols:["_$ebnf$1"]}],ParserStart:"main"};void 0!==t.exports?t.exports=o:window.grammar=o}()},9038:(t,e,n)=>{"use strict";function r(t){let e="array\n@\n";const n=t.attributes.structure,r=t.attributes.color||[],l=t.attributes.value||[],i=t.attributes.arrow||[];for(let t=0;tr})},6205:(t,e,n)=>{"use strict";function r(t){let e="graph\n@";const n=t.attributes.id,r=t.attributes.edge||[],l=t.attributes.value||[],i=t.attributes.color||[],o=t.attributes.arrow||[],a=t.attributes.hidden||[];for(let t=0;tr})},2936:(t,e,n)=>{"use strict";function r(t){let e="linkedList\n@\n";const n=t.attributes.structure,r=t.attributes.value||[],l=t.attributes.color||[],i=t.attributes.arrow||[];for(let t=0;tr})},4724:(t,e,n)=>{"use strict";function r(t){let e="matrix\n@";const n=t.attributes.structure,r=t.attributes.color||[],l=t.attributes.arrow||[];for(let t=0;tr})},6665:(t,e,n)=>{"use strict";function r(t){let e="stack\n";e+="size: 7\n",e+="@\n";const n=t.attributes.structure,r=t.attributes.color||[],l=t.attributes.arrow||[];for(let t=0;tr})},6835:(t,e,n)=>{"use strict";function r(t){let e="tree\n@";return e+=function(t,e,n,r){if(!t||0===t.length)return"";let l=[{node:t[0],index:0}],i="";for(;l.length>0;){let o=l.shift(),a=o.node,s=o.index;if("none"===a)i+="\nNone:[None,None]";else{let o=2*s+1,u=2*s+2,c=or})},8675:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{G:()=>convertParsedDSLtoMermaid});var _parser_test_mjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7484),_generateArray_mjs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(9038),_generateLinkedlist_mjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2936),_generateStack_mjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(6665),_generateTree_mjs__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6835),_generateMatrix_mjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(4724),_generateGraph_mjs__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(6205);function convertDSLtoMermaid(t){const e=(0,_parser_test_mjs__WEBPACK_IMPORTED_MODULE_0__.n)(t),n=e.data,r=e.draw;let l={};r.forEach((t=>{const e=t.page_index,r=t.range.start,i=t.range.end,o=t.show;for(let t=r;t{let o=i.component_index,a=i.component_name,s=calculateIndex(e,t,o),u=findItemByComponentNameAndIndex(n,a,s);l[`page${t}`][`component_${r}`]={type:u.type,name:a,index:s,attributes:u.attributes},r+=1}))}}));let i="visual\n";const o=Object.keys(l);for(const t of o){i+="page\n";const e=Object.keys(l[t]);for(const n of e){const e=l[t][n];switch(e.type){case"array":i+=(0,_generateArray_mjs__WEBPACK_IMPORTED_MODULE_1__.b)(e);break;case"linkedlist":i+=(0,_generateLinkedlist_mjs__WEBPACK_IMPORTED_MODULE_2__.$)(e);break;case"stack":i+=(0,_generateStack_mjs__WEBPACK_IMPORTED_MODULE_3__.a)(e);break;case"tree":i+=(0,_generateTree_mjs__WEBPACK_IMPORTED_MODULE_4__.w)(e);break;case"matrix":i+=(0,_generateMatrix_mjs__WEBPACK_IMPORTED_MODULE_5__.z)(e);break;case"graph":i+=(0,_generateGraph_mjs__WEBPACK_IMPORTED_MODULE_6__.q)(e);break;default:console.log(`compiler error! no matching componenet type: ${e.type}!`)}}}return i}function convertParsedDSLtoMermaid(t){const e=t.data,n=t.draw;let r={};n.forEach((t=>{const n=t.page_index,l=t.range.start,i=t.range.end,o=t.show;for(let t=l;t{let o=i.component_index,a=i.component_name,s=calculateIndex(n,t,o),u=findItemByComponentNameAndIndex(e,a,s);r[`page${t}`][`component_${l}`]={type:u.type,name:a,index:s,attributes:u.attributes},l+=1}))}}));let l="visual\n";const i=Object.keys(r);for(const t of i){l+="page\n";const e=Object.keys(r[t]);for(const n of e){const e=r[t][n];switch(e.type){case"array":l+=(0,_generateArray_mjs__WEBPACK_IMPORTED_MODULE_1__.b)(e);break;case"linkedlist":l+=(0,_generateLinkedlist_mjs__WEBPACK_IMPORTED_MODULE_2__.$)(e);break;case"stack":l+=(0,_generateStack_mjs__WEBPACK_IMPORTED_MODULE_3__.a)(e);break;case"tree":l+=(0,_generateTree_mjs__WEBPACK_IMPORTED_MODULE_4__.w)(e);break;case"matrix":l+=(0,_generateMatrix_mjs__WEBPACK_IMPORTED_MODULE_5__.z)(e);break;case"graph":l+=(0,_generateGraph_mjs__WEBPACK_IMPORTED_MODULE_6__.q)(e);break;default:console.log(`compiler error! no matching componenet type: ${e.type}!`)}}}return l}function calculateIndex(variableName,variableValue,expression){const regex=new RegExp(`\\b${variableName}\\b`,"g"),replacedExpression=expression.replace(regex,variableValue);try{const result=eval(replacedExpression);return result}catch(t){return console.error("Error evaluating expression:",t),null}}function findItemByComponentNameAndIndex(t,e,n){for(const r of t)if(r.name===e){const t={};for(const[e,l]of Object.entries(r.attributes))Array.isArray(l)?t[e]=l[n]||null:t[e]=l;return{type:r.type,attributes:t}}return console.log(`name: ${e} matches no entries!`),null}},389:(t,e,n)=>{"use strict";n.d(e,{D:()=>l});var r=n(772),l=(0,n(6009).K2)((t=>{const{securityLevel:e}=(0,r.D7)();let n=(0,r.df)("body");if("sandbox"===e){const e=(0,r.df)(`#i${t}`),l=e.node()?.contentDocument??document;n=(0,r.df)(l.body)}return n.select(`#${t}`)}),"selectSvgElement")},3615:(t,e,n)=>{"use strict";n.d(e,{St:()=>s,Xy:()=>k,_S:()=>K,zZ:()=>h});var r=n(8605),l=n(6009),i=(0,r.To)(Object.keys,Object),o=Object.prototype.hasOwnProperty;function a(t){if(!(0,r.HI)(t))return i(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}(0,l.K2)(a,"baseKeys");var s=a,u=(0,r.On)(r.DA,"DataView"),c=(0,r.On)(r.DA,"Promise"),h=(0,r.On)(r.DA,"Set"),d=(0,r.On)(r.DA,"WeakMap"),f="[object Map]",p="[object Promise]",m="[object Set]",g="[object WeakMap]",y="[object DataView]",b=(0,r.$q)(u),_=(0,r.$q)(r.zI),x=(0,r.$q)(c),C=(0,r.$q)(h),v=(0,r.$q)(d),w=r.GT;(u&&w(new u(new ArrayBuffer(1)))!=y||r.zI&&w(new r.zI)!=f||c&&w(c.resolve())!=p||h&&w(new h)!=m||d&&w(new d)!=g)&&(w=(0,l.K2)((function(t){var e=(0,r.GT)(t),n="[object Object]"==e?t.constructor:void 0,l=n?(0,r.$q)(n):"";if(l)switch(l){case b:return y;case _:return f;case x:return p;case C:return m;case v:return g}return e}),"getTag"));var k=w,T=Object.prototype.hasOwnProperty;function S(t){if(null==t)return!0;if((0,r.lr)(t)&&((0,r._i)(t)||"string"==typeof t||"function"==typeof t.splice||(0,r.NY)(t)||(0,r.aB)(t)||(0,r.Th)(t)))return!t.length;var e=k(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if((0,r.HI)(t))return!s(t).length;for(var n in t)if(T.call(t,n))return!1;return!0}(0,l.K2)(S,"isEmpty");var K=S},6404:(t,e,n)=>{"use strict";function r(t){for(var e=[],n=1;nr}),(0,n(6009).K2)(r,"dedent")},772:(t,e,n)=>{"use strict";n.d(e,{$i:()=>pt,A0:()=>Di,AB:()=>_a,AS:()=>Zu,Ag:()=>da,B6:()=>wt,Bp:()=>gc,C0:()=>p,Ch:()=>g,D6:()=>bc,D7:()=>Be,DB:()=>d,DC:()=>Ya,Dl:()=>le,EI:()=>we,EJ:()=>h,Ed:()=>R,Gh:()=>qc,Gs:()=>De,Gu:()=>Ca,H$:()=>st,H1:()=>$t,He:()=>u,IE:()=>po,IU:()=>xe,J$:()=>_,J1:()=>hc,J9:()=>Fc,JW:()=>of,Jj:()=>Tc,Jl:()=>Lc,Jp:()=>Cc,Js:()=>Ie,Ko:()=>Vc,MC:()=>_u,ME:()=>Ee,Mo:()=>va,NN:()=>Ac,Nk:()=>Rc,P$:()=>lt,PG:()=>xa,Ps:()=>Jc,Q2:()=>kt,QO:()=>Xt,Rc:()=>ua,Rm:()=>s,SV:()=>Ce,T9:()=>Pe,TU:()=>wa,UA:()=>pa,UI:()=>ft,UU:()=>Ct,Ug:()=>U,Ui:()=>Ma,VJ:()=>ie,Wi:()=>re,Wt:()=>me,XV:()=>Fe,Xd:()=>y,Y2:()=>oe,Y7:()=>Hc,YA:()=>kl,YP:()=>ba,ZY:()=>l,_3:()=>Gt,a$:()=>ue,ab:()=>Se,cL:()=>Bt,cw:()=>j,dJ:()=>ac,df:()=>wl,ds:()=>P,eI:()=>Tt,f2:()=>ic,gK:()=>i,h$:()=>pc,hH:()=>C,iN:()=>ve,jU:()=>wc,jZ:()=>zt,jk:()=>je,kB:()=>gu,ke:()=>Te,kl:()=>sc,l7:()=>vn,m7:()=>ke,mW:()=>m,mc:()=>H,mj:()=>Me,ot:()=>ce,pG:()=>nc,rG:()=>ka,sb:()=>gt,sn:()=>Zo,tM:()=>pe,tl:()=>Cn,wX:()=>ca,wZ:()=>vt,xA:()=>At,yF:()=>Oc,yp:()=>yu,yr:()=>na,z1:()=>Gc,zj:()=>St,zp:()=>Ju});var r=n(6009),l=(0,r.P$)({"../../node_modules/.pnpm/dayjs@1.11.11/node_modules/dayjs/dayjs.min.js"(t,e){var n,l;n=t,l=function(){var t=6e4,e=36e5,n="millisecond",l="second",i="minute",o="hour",a="day",s="week",u="month",c="quarter",h="year",d="date",f="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},y=(0,r.K2)((function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t}),"m"),b={s:y,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),l=n%60;return(e<=0?"+":"-")+y(r,2,"0")+":"+y(l,2,"0")},m:(0,r.K2)((function t(e,n){if(e.date()1)return t(o[0])}else{var a=e.name;x[a]=e,l=a}return!r&&l&&(_=l),l||!r&&_}),"t"),k=(0,r.K2)((function(t,e){if(v(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new S(n)}),"O"),T=b;T.l=w,T.i=v,T.w=function(t,e){return k(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var S=function(){function g(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[C]=!0}(0,r.K2)(g,"M");var y=g.prototype;return y.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(T.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(p);if(r){var l=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],l,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],l,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(e)}(t),this.init()},y.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},y.$utils=function(){return T},y.isValid=function(){return!(this.$d.toString()===f)},y.isSame=function(t,e){var n=k(t);return this.startOf(e)<=n&&n<=this.endOf(e)},y.isAfter=function(t,e){return k(t)1?n-1:0),l=1;l2&&void 0!==arguments[2]?arguments[2]:p;e&&e(t,null);let i=r.length;for(;i--;){let e=r[i];if("string"==typeof e){const t=l(e);t!==e&&(n(r)||(r[i]=t),e=t)}t[e]=!0}return t}function S(t){for(let e=0;e/gm),q=a(/\${[\w\W]*}/gm),R=a(/^data-[\-\w.\u00B7-\uFFFF]/),W=a(/^aria-[\-\w]+$/),U=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),H=a(/^(?:\w+script|data):/i),Y=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),G=a(/^html$/i),V=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var J=Object.freeze({__proto__:null,MUSTACHE_EXPR:j,ERB_EXPR:z,TMPLIT_EXPR:q,DATA_ATTR:R,ARIA_ATTR:W,IS_ALLOWED_URI:U,IS_SCRIPT_OR_DATA:H,ATTR_WHITESPACE:Y,DOCTYPE_NAME:G,CUSTOM_ELEMENT:V});const X=(0,r.K2)((function(){return"undefined"==typeof window?null:window}),"getGlobal"),Z=(0,r.K2)((function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";e&&e.hasAttribute(r)&&(n=e.getAttribute(r));const l="dompurify"+(n?"#"+n:"");try{return t.createPolicy(l,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+l+" could not be created."),null}}),"_createTrustedTypesPolicy");function Q(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:X();const n=(0,r.K2)((t=>Q(t)),"DOMPurify");if(n.version="3.1.2",n.removed=[],!e||!e.document||9!==e.document.nodeType)return n.isSupported=!1,n;let{document:l}=e;const i=l,a=i.currentScript,{DocumentFragment:u,HTMLTemplateElement:c,Node:w,Element:k,NodeFilter:S,NamedNodeMap:j=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:z,DOMParser:q,trustedTypes:R}=e,W=k.prototype,H=A(W,"cloneNode"),Y=A(W,"nextSibling"),V=A(W,"childNodes"),tt=A(W,"parentNode");if("function"==typeof c){const t=l.createElement("template");t.content&&t.content.ownerDocument&&(l=t.content.ownerDocument)}let et,nt="";const{implementation:rt,createNodeIterator:lt,createDocumentFragment:it,getElementsByTagName:ot}=l,{importNode:at}=i;let st={};n.isSupported="function"==typeof t&&"function"==typeof tt&&rt&&void 0!==rt.createHTMLDocument;const{MUSTACHE_EXPR:ut,ERB_EXPR:ct,TMPLIT_EXPR:ht,DATA_ATTR:dt,ARIA_ATTR:ft,IS_SCRIPT_OR_DATA:pt,ATTR_WHITESPACE:mt,CUSTOM_ELEMENT:gt}=J;let{IS_ALLOWED_URI:yt}=J,bt=null;const _t=T({},[...B,...F,...E,...M,...$]);let xt=null;const Ct=T({},[...I,...D,...N,...P]);let vt=Object.seal(s(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),wt=null,kt=null,Tt=!0,St=!0,Kt=!1,At=!0,Bt=!1,Ft=!0,Et=!1,Lt=!1,Mt=!1,Ot=!1,$t=!1,It=!1,Dt=!0,Nt=!1,Pt=!0,jt=!1,zt={},qt=null;const Rt=T({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Wt=null;const Ut=T({},["audio","video","img","source","image","track"]);let Ht=null;const Yt=T({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Gt="http://www.w3.org/1998/Math/MathML",Vt="http://www.w3.org/2000/svg",Jt="http://www.w3.org/1999/xhtml";let Xt=Jt,Zt=!1,Qt=null;const te=T({},[Gt,Vt,Jt],m);let ee=null;const ne=["application/xhtml+xml","text/html"];let re=null,le=null;const ie=l.createElement("form"),oe=(0,r.K2)((function(t){return t instanceof RegExp||t instanceof Function}),"isRegexOrFunction"),ae=(0,r.K2)((function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!le||le!==t){if(t&&"object"==typeof t||(t={}),t=K(t),ee=-1===ne.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,re="application/xhtml+xml"===ee?m:p,bt=x(t,"ALLOWED_TAGS")?T({},t.ALLOWED_TAGS,re):_t,xt=x(t,"ALLOWED_ATTR")?T({},t.ALLOWED_ATTR,re):Ct,Qt=x(t,"ALLOWED_NAMESPACES")?T({},t.ALLOWED_NAMESPACES,m):te,Ht=x(t,"ADD_URI_SAFE_ATTR")?T(K(Yt),t.ADD_URI_SAFE_ATTR,re):Yt,Wt=x(t,"ADD_DATA_URI_TAGS")?T(K(Ut),t.ADD_DATA_URI_TAGS,re):Ut,qt=x(t,"FORBID_CONTENTS")?T({},t.FORBID_CONTENTS,re):Rt,wt=x(t,"FORBID_TAGS")?T({},t.FORBID_TAGS,re):{},kt=x(t,"FORBID_ATTR")?T({},t.FORBID_ATTR,re):{},zt=!!x(t,"USE_PROFILES")&&t.USE_PROFILES,Tt=!1!==t.ALLOW_ARIA_ATTR,St=!1!==t.ALLOW_DATA_ATTR,Kt=t.ALLOW_UNKNOWN_PROTOCOLS||!1,At=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Bt=t.SAFE_FOR_TEMPLATES||!1,Ft=!1!==t.SAFE_FOR_XML,Et=t.WHOLE_DOCUMENT||!1,Ot=t.RETURN_DOM||!1,$t=t.RETURN_DOM_FRAGMENT||!1,It=t.RETURN_TRUSTED_TYPE||!1,Mt=t.FORCE_BODY||!1,Dt=!1!==t.SANITIZE_DOM,Nt=t.SANITIZE_NAMED_PROPS||!1,Pt=!1!==t.KEEP_CONTENT,jt=t.IN_PLACE||!1,yt=t.ALLOWED_URI_REGEXP||U,Xt=t.NAMESPACE||Jt,vt=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&oe(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(vt.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&oe(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(vt.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(vt.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Bt&&(St=!1),$t&&(Ot=!0),zt&&(bt=T({},$),xt=[],!0===zt.html&&(T(bt,B),T(xt,I)),!0===zt.svg&&(T(bt,F),T(xt,D),T(xt,P)),!0===zt.svgFilters&&(T(bt,E),T(xt,D),T(xt,P)),!0===zt.mathMl&&(T(bt,M),T(xt,N),T(xt,P))),t.ADD_TAGS&&(bt===_t&&(bt=K(bt)),T(bt,t.ADD_TAGS,re)),t.ADD_ATTR&&(xt===Ct&&(xt=K(xt)),T(xt,t.ADD_ATTR,re)),t.ADD_URI_SAFE_ATTR&&T(Ht,t.ADD_URI_SAFE_ATTR,re),t.FORBID_CONTENTS&&(qt===Rt&&(qt=K(qt)),T(qt,t.FORBID_CONTENTS,re)),Pt&&(bt["#text"]=!0),Et&&T(bt,["html","head","body"]),bt.table&&(T(bt,["tbody"]),delete wt.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw v('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw v('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');et=t.TRUSTED_TYPES_POLICY,nt=et.createHTML("")}else void 0===et&&(et=Z(R,a)),null!==et&&"string"==typeof nt&&(nt=et.createHTML(""));o&&o(t),le=t}}),"_parseConfig"),se=T({},["mi","mo","mn","ms","mtext"]),ue=T({},["foreignobject","annotation-xml"]),ce=T({},["title","style","font","a","script"]),he=T({},[...F,...E,...L]),de=T({},[...M,...O]),fe=(0,r.K2)((function(t){let e=tt(t);e&&e.tagName||(e={namespaceURI:Xt,tagName:"template"});const n=p(t.tagName),r=p(e.tagName);return!!Qt[t.namespaceURI]&&(t.namespaceURI===Vt?e.namespaceURI===Jt?"svg"===n:e.namespaceURI===Gt?"svg"===n&&("annotation-xml"===r||se[r]):Boolean(he[n]):t.namespaceURI===Gt?e.namespaceURI===Jt?"math"===n:e.namespaceURI===Vt?"math"===n&&ue[r]:Boolean(de[n]):t.namespaceURI===Jt?!(e.namespaceURI===Vt&&!ue[r])&&!(e.namespaceURI===Gt&&!se[r])&&!de[n]&&(ce[n]||!he[n]):!("application/xhtml+xml"!==ee||!Qt[t.namespaceURI]))}),"_checkValidNamespace"),pe=(0,r.K2)((function(t){f(n.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){t.remove()}}),"_forceRemove"),me=(0,r.K2)((function(t,e){try{f(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){f(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!xt[t])if(Ot||$t)try{pe(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}}),"_removeAttribute"),ge=(0,r.K2)((function(t){let e=null,n=null;if(Mt)t=""+t;else{const e=g(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===ee&&Xt===Jt&&(t=''+t+"");const r=et?et.createHTML(t):t;if(Xt===Jt)try{e=(new q).parseFromString(r,ee)}catch(t){}if(!e||!e.documentElement){e=rt.createDocument(Xt,"template",null);try{e.documentElement.innerHTML=Zt?nt:r}catch(t){}}const i=e.body||e.documentElement;return t&&n&&i.insertBefore(l.createTextNode(n),i.childNodes[0]||null),Xt===Jt?ot.call(e,Et?"html":"body")[0]:Et?e.documentElement:i}),"_initDocument"),ye=(0,r.K2)((function(t){return lt.call(t.ownerDocument||t,t,S.SHOW_ELEMENT|S.SHOW_COMMENT|S.SHOW_TEXT|S.SHOW_PROCESSING_INSTRUCTION|S.SHOW_CDATA_SECTION,null)}),"_createNodeIterator"),be=(0,r.K2)((function(t){return t instanceof z&&(void 0!==t.__depth&&"number"!=typeof t.__depth||void 0!==t.__removalCount&&"number"!=typeof t.__removalCount||"string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof j)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)}),"_isClobbered"),_e=(0,r.K2)((function(t){return"function"==typeof w&&t instanceof w}),"_isNode"),xe=(0,r.K2)((function(t,e,r){st[t]&&h(st[t],(t=>{t.call(n,e,r,le)}))}),"_executeHook"),Ce=(0,r.K2)((function(t){let e=null;if(xe("beforeSanitizeElements",t,null),be(t))return pe(t),!0;const r=re(t.nodeName);if(xe("uponSanitizeElement",t,{tagName:r,allowedTags:bt}),t.hasChildNodes()&&!_e(t.firstElementChild)&&C(/<[/\w]/g,t.innerHTML)&&C(/<[/\w]/g,t.textContent))return pe(t),!0;if(7===t.nodeType)return pe(t),!0;if(Ft&&8===t.nodeType&&C(/<[/\w]/g,t.data))return pe(t),!0;if(!bt[r]||wt[r]){if(!wt[r]&&we(r)){if(vt.tagNameCheck instanceof RegExp&&C(vt.tagNameCheck,r))return!1;if(vt.tagNameCheck instanceof Function&&vt.tagNameCheck(r))return!1}if(Pt&&!qt[r]){const e=tt(t)||t.parentNode,n=V(t)||t.childNodes;if(n&&e)for(let r=n.length-1;r>=0;--r){const l=H(n[r],!0);l.__removalCount=(t.__removalCount||0)+1,e.insertBefore(l,Y(t))}}return pe(t),!0}return t instanceof k&&!fe(t)?(pe(t),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!C(/<\/no(script|embed|frames)/i,t.innerHTML)?(Bt&&3===t.nodeType&&(e=t.textContent,h([ut,ct,ht],(t=>{e=y(e,t," ")})),t.textContent!==e&&(f(n.removed,{element:t.cloneNode()}),t.textContent=e)),xe("afterSanitizeElements",t,null),!1):(pe(t),!0)}),"_sanitizeElements"),ve=(0,r.K2)((function(t,e,n){if(Dt&&("id"===e||"name"===e)&&(n in l||n in ie))return!1;if(St&&!kt[e]&&C(dt,e));else if(Tt&&C(ft,e));else if(!xt[e]||kt[e]){if(!(we(t)&&(vt.tagNameCheck instanceof RegExp&&C(vt.tagNameCheck,t)||vt.tagNameCheck instanceof Function&&vt.tagNameCheck(t))&&(vt.attributeNameCheck instanceof RegExp&&C(vt.attributeNameCheck,e)||vt.attributeNameCheck instanceof Function&&vt.attributeNameCheck(e))||"is"===e&&vt.allowCustomizedBuiltInElements&&(vt.tagNameCheck instanceof RegExp&&C(vt.tagNameCheck,n)||vt.tagNameCheck instanceof Function&&vt.tagNameCheck(n))))return!1}else if(Ht[e]);else if(C(yt,y(n,mt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==b(n,"data:")||!Wt[t])if(Kt&&!C(pt,y(n,mt,"")));else if(n)return!1;return!0}),"_isValidAttribute"),we=(0,r.K2)((function(t){return"annotation-xml"!==t&&g(t,gt)}),"_isBasicCustomElement"),ke=(0,r.K2)((function(t){xe("beforeSanitizeAttributes",t,null);const{attributes:e}=t;if(!e)return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:xt};let l=e.length;for(;l--;){const i=e[l],{name:o,namespaceURI:a,value:s}=i,u=re(o);let c="value"===o?s:_(s);if(r.attrName=u,r.attrValue=c,r.keepAttr=!0,r.forceKeepAttr=void 0,xe("uponSanitizeAttribute",t,r),c=r.attrValue,r.forceKeepAttr)continue;if(me(o,t),!r.keepAttr)continue;if(!At&&C(/\/>/i,c)){me(o,t);continue}Bt&&h([ut,ct,ht],(t=>{c=y(c,t," ")}));const f=re(t.nodeName);if(ve(f,u,c)){if(!Nt||"id"!==u&&"name"!==u||(me(o,t),c="user-content-"+c),et&&"object"==typeof R&&"function"==typeof R.getAttributeType)if(a);else switch(R.getAttributeType(f,u)){case"TrustedHTML":c=et.createHTML(c);break;case"TrustedScriptURL":c=et.createScriptURL(c)}try{a?t.setAttributeNS(a,o,c):t.setAttribute(o,c),d(n.removed)}catch(t){}}}xe("afterSanitizeAttributes",t,null)}),"_sanitizeAttributes"),Te=(0,r.K2)((function t(e){let n=null;const r=ye(e);for(xe("beforeSanitizeShadowDOM",e,null);n=r.nextNode();){if(xe("uponSanitizeShadowNode",n,null),Ce(n))continue;const e=tt(n);1===n.nodeType&&(e&&e.__depth?n.__depth=(n.__removalCount||0)+e.__depth+1:n.__depth=1),n.__depth>=255&&pe(n),n.content instanceof u&&(n.content.__depth=n.__depth,t(n.content)),ke(n)}xe("afterSanitizeShadowDOM",e,null)}),"_sanitizeShadowDOM");return n.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,l=null,o=null,a=null;if(Zt=!t,Zt&&(t="\x3c!--\x3e"),"string"!=typeof t&&!_e(t)){if("function"!=typeof t.toString)throw v("toString is not a function");if("string"!=typeof(t=t.toString()))throw v("dirty is not a string, aborting")}if(!n.isSupported)return t;if(Lt||ae(e),n.removed=[],"string"==typeof t&&(jt=!1),jt){if(t.nodeName){const e=re(t.nodeName);if(!bt[e]||wt[e])throw v("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof w)r=ge("\x3c!----\x3e"),l=r.ownerDocument.importNode(t,!0),1===l.nodeType&&"BODY"===l.nodeName||"HTML"===l.nodeName?r=l:r.appendChild(l);else{if(!Ot&&!Bt&&!Et&&-1===t.indexOf("<"))return et&&It?et.createHTML(t):t;if(r=ge(t),!r)return Ot?null:It?nt:""}r&&Mt&&pe(r.firstChild);const s=ye(jt?t:r);for(;o=s.nextNode();){if(Ce(o))continue;const t=tt(o);1===o.nodeType&&(t&&t.__depth?o.__depth=(o.__removalCount||0)+t.__depth+1:o.__depth=1),o.__depth>=255&&pe(o),o.content instanceof u&&(o.content.__depth=o.__depth,Te(o.content)),ke(o)}if(jt)return t;if(Ot){if($t)for(a=it.call(r.ownerDocument);r.firstChild;)a.appendChild(r.firstChild);else a=r;return(xt.shadowroot||xt.shadowrootmode)&&(a=at.call(i,a,!0)),a}let c=Et?r.outerHTML:r.innerHTML;return Et&&bt["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&C(G,r.ownerDocument.doctype.name)&&(c="\n"+c),Bt&&h([ut,ct,ht],(t=>{c=y(c,t," ")})),et&&It?et.createHTML(c):c},n.setConfig=function(){ae(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Lt=!0},n.clearConfig=function(){le=null,Lt=!1},n.isValidAttribute=function(t,e,n){le||ae({});const r=re(t),l=re(e);return ve(r,l,n)},n.addHook=function(t,e){"function"==typeof e&&(st[t]=st[t]||[],f(st[t],e))},n.removeHook=function(t){if(st[t])return d(st[t])},n.removeHooks=function(t){st[t]&&(st[t]=[])},n.removeAllHooks=function(){st={}},n}return(0,r.K2)(Q,"createDOMPurify"),Q()}))}}),o=(0,r.f1)(l(),1),a={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},s={trace:(...t)=>{},debug:(...t)=>{},info:(...t)=>{},warn:(...t)=>{},error:(...t)=>{},fatal:(...t)=>{}},u=(0,r.K2)((function(t="fatal"){let e=a.fatal;"string"==typeof t?(t=t.toLowerCase())in a&&(e=a[t]):"number"==typeof t&&(e=t),s.trace=()=>{},s.debug=()=>{},s.info=()=>{},s.warn=()=>{},s.error=()=>{},s.fatal=()=>{},e<=a.fatal&&(s.fatal=console.error?console.error.bind(console,c("FATAL"),"color: orange"):console.log.bind(console,"",c("FATAL"))),e<=a.error&&(s.error=console.error?console.error.bind(console,c("ERROR"),"color: orange"):console.log.bind(console,"",c("ERROR"))),e<=a.warn&&(s.warn=console.warn?console.warn.bind(console,c("WARN"),"color: orange"):console.log.bind(console,"",c("WARN"))),e<=a.info&&(s.info=console.info?console.info.bind(console,c("INFO"),"color: lightblue"):console.log.bind(console,"",c("INFO"))),e<=a.debug&&(s.debug=console.debug?console.debug.bind(console,c("DEBUG"),"color: lightgreen"):console.log.bind(console,"",c("DEBUG"))),e<=a.trace&&(s.trace=console.debug?console.debug.bind(console,c("TRACE"),"color: lightgreen"):console.log.bind(console,"",c("TRACE")))}),"setLogLevel"),c=(0,r.K2)((t=>`%c${(0,o.default)().format("ss.SSS")} : ${t} : `),"format"),h=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,d=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,f=/\s*%%.*\n/gm,p=class extends Error{static{(0,r.K2)(this,"UnknownDiagramError")}constructor(t){super(t),this.name="UnknownDiagramError"}},m={},g=(0,r.K2)((function(t,e){t=t.replace(h,"").replace(d,"").replace(f,"\n");for(const[n,{detector:r}]of Object.entries(m))if(r(t,e))return n;throw new p(`No diagram type detected matching given configuration for text: ${t}`)}),"detectType"),y=(0,r.K2)(((...t)=>{for(const{id:e,detector:n,loader:r}of t)b(e,n,r)}),"registerLazyLoadedDiagrams"),b=(0,r.K2)(((t,e,n)=>{m[t]&&s.warn(`Detector with key ${t} already exists. Overwriting.`),m[t]={detector:e,loader:n},s.debug(`Detector with key ${t} added${n?" with loader":""}`)}),"addDetector"),_=(0,r.K2)((t=>m[t].loader),"getDiagramLoader"),x=(0,r.K2)(((t,e,{depth:n=2,clobber:r=!1}={})=>{const l={depth:n,clobber:r};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach((e=>x(t,e,l))),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach((e=>{t.includes(e)||t.push(e)})),t):void 0===t||n<=0?null!=t&&"object"==typeof t&&"object"==typeof e?Object.assign(t,e):e:(void 0!==e&&"object"==typeof t&&"object"==typeof e&&Object.keys(e).forEach((l=>{"object"!=typeof e[l]||void 0!==t[l]&&"object"!=typeof t[l]?(r||"object"!=typeof t[l]&&"object"!=typeof e[l])&&(t[l]=e[l]):(void 0===t[l]&&(t[l]=Array.isArray(e[l])?[]:{}),t[l]=x(t[l],e[l],{depth:n-1,clobber:r}))})),t)}),"assignWithDepth"),C=x,v={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t),hsl2rgb:({h:t,s:e,l:n},r)=>{if(!e)return 2.55*n;t/=360,e/=100;const l=(n/=100)<.5?n*(1+e):n+e-n*e,i=2*n-l;switch(r){case"r":return 255*v.hue2rgb(i,l,t+1/3);case"g":return 255*v.hue2rgb(i,l,t);case"b":return 255*v.hue2rgb(i,l,t-1/3)}},rgb2hsl:({r:t,g:e,b:n},r)=>{t/=255,e/=255,n/=255;const l=Math.max(t,e,n),i=Math.min(t,e,n),o=(l+i)/2;if("l"===r)return 100*o;if(l===i)return 0;const a=l-i;if("s"===r)return 100*(o>.5?a/(2-l-i):a/(l+i));switch(l){case t:return 60*((e-n)/a+(ee>n?Math.min(e,Math.max(n,t)):Math.min(n,Math.max(e,t)),round:t=>Math.round(1e10*t)/1e10},unit:{dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}}},k={};for(let t=0;t<=255;t++)k[t]=w.unit.dec2hex(t);var T,S=class{static{(0,r.K2)(this,"Type")}constructor(){this.type=0}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=0}is(t){return this.type===t}},K=new class{static{(0,r.K2)(this,"Channels")}constructor(t,e){this.color=e,this.changed=!1,this.data=t,this.type=new S}set(t,e){return this.color=e,this.changed=!1,this.data=t,this.type.type=0,this}_ensureHSL(){const t=this.data,{h:e,s:n,l:r}=t;void 0===e&&(t.h=w.channel.rgb2hsl(t,"h")),void 0===n&&(t.s=w.channel.rgb2hsl(t,"s")),void 0===r&&(t.l=w.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r:e,g:n,b:r}=t;void 0===e&&(t.r=w.channel.hsl2rgb(t,"r")),void 0===n&&(t.g=w.channel.hsl2rgb(t,"g")),void 0===r&&(t.b=w.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,e=t.r;return this.type.is(2)||void 0===e?(this._ensureHSL(),w.channel.hsl2rgb(t,"r")):e}get g(){const t=this.data,e=t.g;return this.type.is(2)||void 0===e?(this._ensureHSL(),w.channel.hsl2rgb(t,"g")):e}get b(){const t=this.data,e=t.b;return this.type.is(2)||void 0===e?(this._ensureHSL(),w.channel.hsl2rgb(t,"b")):e}get h(){const t=this.data,e=t.h;return this.type.is(1)||void 0===e?(this._ensureRGB(),w.channel.rgb2hsl(t,"h")):e}get s(){const t=this.data,e=t.s;return this.type.is(1)||void 0===e?(this._ensureRGB(),w.channel.rgb2hsl(t,"s")):e}get l(){const t=this.data,e=t.l;return this.type.is(1)||void 0===e?(this._ensureRGB(),w.channel.rgb2hsl(t,"l")):e}get a(){return this.data.a}set r(t){this.type.set(1),this.changed=!0,this.data.r=t}set g(t){this.type.set(1),this.changed=!0,this.data.g=t}set b(t){this.type.set(1),this.changed=!0,this.data.b=t}set h(t){this.type.set(2),this.changed=!0,this.data.h=t}set s(t){this.type.set(2),this.changed=!0,this.data.s=t}set l(t){this.type.set(2),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}({r:0,g:0,b:0,a:0},"transparent"),A={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(35!==t.charCodeAt(0))return;const e=t.match(A.re);if(!e)return;const n=e[1],r=parseInt(n,16),l=n.length,i=l%4==0,o=l>4,a=o?1:17,s=o?8:4,u=i?0:-1,c=o?255:15;return K.set({r:(r>>s*(u+3)&c)*a,g:(r>>s*(u+2)&c)*a,b:(r>>s*(u+1)&c)*a,a:i?(r&c)*a/255:1},t)},stringify:t=>{const{r:e,g:n,b:r,a:l}=t;return l<1?`#${k[Math.round(e)]}${k[Math.round(n)]}${k[Math.round(r)]}${k[Math.round(255*l)]}`:`#${k[Math.round(e)]}${k[Math.round(n)]}${k[Math.round(r)]}`}},B=A,F={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{const e=t.match(F.hueRe);if(e){const[,t,n]=e;switch(n){case"grad":return w.channel.clamp.h(.9*parseFloat(t));case"rad":return w.channel.clamp.h(180*parseFloat(t)/Math.PI);case"turn":return w.channel.clamp.h(360*parseFloat(t))}}return w.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(104!==e&&72!==e)return;const n=t.match(F.re);if(!n)return;const[,r,l,i,o,a]=n;return K.set({h:F._hue2deg(r),s:w.channel.clamp.s(parseFloat(l)),l:w.channel.clamp.l(parseFloat(i)),a:o?w.channel.clamp.a(a?parseFloat(o)/100:parseFloat(o)):1},t)},stringify:t=>{const{h:e,s:n,l:r,a:l}=t;return l<1?`hsla(${w.lang.round(e)}, ${w.lang.round(n)}%, ${w.lang.round(r)}%, ${l})`:`hsl(${w.lang.round(e)}, ${w.lang.round(n)}%, ${w.lang.round(r)}%)`}},E=F,L={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();const e=L.colors[t];if(e)return B.parse(e)},stringify:t=>{const e=B.stringify(t);for(const t in L.colors)if(L.colors[t]===e)return t}},M=L,O={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{const e=t.charCodeAt(0);if(114!==e&&82!==e)return;const n=t.match(O.re);if(!n)return;const[,r,l,i,o,a,s,u,c]=n;return K.set({r:w.channel.clamp.r(l?2.55*parseFloat(r):parseFloat(r)),g:w.channel.clamp.g(o?2.55*parseFloat(i):parseFloat(i)),b:w.channel.clamp.b(s?2.55*parseFloat(a):parseFloat(a)),a:u?w.channel.clamp.a(c?parseFloat(u)/100:parseFloat(u)):1},t)},stringify:t=>{const{r:e,g:n,b:r,a:l}=t;return l<1?`rgba(${w.lang.round(e)}, ${w.lang.round(n)}, ${w.lang.round(r)}, ${w.lang.round(l)})`:`rgb(${w.lang.round(e)}, ${w.lang.round(n)}, ${w.lang.round(r)})`}},$=O,I=t=>{if("string"!=typeof t)return t;const e=B.parse(t)||$.parse(t)||E.parse(t)||M.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},D=t=>!t.changed&&t.color?t.color:t.type.is(2)||void 0===t.data.r?E.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?$.stringify(t):B.stringify(t),N=(0,r.K2)(((t,e)=>{const n=I(t);for(const t in e)n[t]=w.channel.clamp[t](e[t]);return D(n)}),"change"),P=(0,r.K2)(((t,e,n=0,r=1)=>{if("number"!=typeof t)return N(t,{a:e});const l=K.set({r:w.channel.clamp.r(t),g:w.channel.clamp.g(e),b:w.channel.clamp.b(n),a:w.channel.clamp.a(r)});return D(l)}),"rgba"),j=(0,r.K2)(((t,e)=>w.lang.round(I(t)[e])),"channel"),z=(0,r.K2)((t=>{const{r:e,g:n,b:r}=I(t),l=.2126*w.channel.toLinear(e)+.7152*w.channel.toLinear(n)+.0722*w.channel.toLinear(r);return w.lang.round(l)}),"luminance"),q=(0,r.K2)((t=>z(t)>=.5),"isLight"),R=(0,r.K2)((t=>!q(t)),"isDark"),W=(0,r.K2)(((t,e,n)=>{const r=I(t),l=r[e],i=w.channel.clamp[e](l+n);return l!==i&&(r[e]=i),D(r)}),"adjustChannel"),U=(0,r.K2)(((t,e)=>W(t,"l",e)),"lighten"),H=(0,r.K2)(((t,e)=>W(t,"l",-e)),"darken"),Y=(0,r.K2)(((t,e)=>{const n=I(t),r={};for(const t in e)e[t]&&(r[t]=n[t]+e[t]);return N(t,r)}),"adjust"),G=(0,r.K2)(((t,e,n=50)=>{const{r,g:l,b:i,a:o}=I(t),{r:a,g:s,b:u,a:c}=I(e),h=n/100,d=2*h-1,f=o-c,p=((d*f==-1?d:(d+f)/(1+d*f))+1)/2,m=1-p;return P(r*p+a*m,l*p+s*m,i*p+u*m,o*h+c*(1-h))}),"mix"),V=(0,r.K2)(((t,e=100)=>{const n=I(t);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,G(n,t,e)}),"invert"),J=(0,r.K2)(((t,e)=>Y(t,e?{s:-40,l:10}:{s:-40,l:-10})),"mkBorder"),X="#ffffff",Z="#f2f2f2",Q=class{static{(0,r.K2)(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||Y(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||Y(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||J(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||J(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||J(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||J(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||V(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||V(this.tertiaryColor),this.lineColor=this.lineColor||V(this.background),this.arrowheadColor=this.arrowheadColor||V(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?H(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||H(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||V(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||U(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Y(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Y(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Y(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Y(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Y(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Y(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||Y(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Y(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Y(this.primaryColor,{h:330}),this.darkMode)for(let t=0;t{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}},tt=(0,r.K2)((t=>{const e=new Q;return e.calculate(t),e}),"getThemeVariables"),et=class{static{(0,r.K2)(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=U(this.primaryColor,16),this.tertiaryColor=Y(this.primaryColor,{h:-160}),this.primaryBorderColor=V(this.background),this.secondaryBorderColor=J(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=J(this.tertiaryColor,this.darkMode),this.primaryTextColor=V(this.primaryColor),this.secondaryTextColor=V(this.secondaryColor),this.tertiaryTextColor=V(this.tertiaryColor),this.lineColor=V(this.background),this.textColor=V(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=U(V("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=P(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=H("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=H(this.sectionBkgColor,10),this.taskBorderColor=P(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=P(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){this.secondBkg=U(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=U(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=U(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Y(this.primaryColor,{h:64}),this.fillType3=Y(this.secondaryColor,{h:64}),this.fillType4=Y(this.primaryColor,{h:-64}),this.fillType5=Y(this.secondaryColor,{h:-64}),this.fillType6=Y(this.primaryColor,{h:128}),this.fillType7=Y(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Y(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Y(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Y(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Y(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Y(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Y(this.primaryColor,{h:210}),this.cScale9=this.cScale9||Y(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Y(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Y(this.primaryColor,{h:330});for(let t=0;t{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}},nt=(0,r.K2)((t=>{const e=new et;return e.calculate(t),e}),"getThemeVariables"),rt=class{static{(0,r.K2)(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=Y(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=Y(this.primaryColor,{h:-160}),this.primaryBorderColor=J(this.primaryColor,this.darkMode),this.secondaryBorderColor=J(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=J(this.tertiaryColor,this.darkMode),this.primaryTextColor=V(this.primaryColor),this.secondaryTextColor=V(this.secondaryColor),this.tertiaryTextColor=V(this.tertiaryColor),this.lineColor=V(this.background),this.textColor=V(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=P(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Y(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Y(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Y(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Y(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Y(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Y(this.primaryColor,{h:210}),this.cScale9=this.cScale9||Y(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Y(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Y(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||H(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||H(this.tertiaryColor,40);for(let t=0;t{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}},lt=(0,r.K2)((t=>{const e=new rt;return e.calculate(t),e}),"getThemeVariables"),it=class{static{(0,r.K2)(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=U("#cde498",10),this.primaryBorderColor=J(this.primaryColor,this.darkMode),this.secondaryBorderColor=J(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=J(this.tertiaryColor,this.darkMode),this.primaryTextColor=V(this.primaryColor),this.secondaryTextColor=V(this.secondaryColor),this.tertiaryTextColor=V(this.primaryColor),this.lineColor=V(this.background),this.textColor=V(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.actorBorder=H(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Y(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Y(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Y(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Y(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Y(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Y(this.primaryColor,{h:210}),this.cScale9=this.cScale9||Y(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Y(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Y(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||H(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||H(this.tertiaryColor,40);for(let t=0;t{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}},ot=(0,r.K2)((t=>{const e=new it;return e.calculate(t),e}),"getThemeVariables"),at=class{static{(0,r.K2)(this,"Theme")}constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=U(this.contrast,55),this.background="#ffffff",this.tertiaryColor=Y(this.primaryColor,{h:-160}),this.primaryBorderColor=J(this.primaryColor,this.darkMode),this.secondaryBorderColor=J(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=J(this.tertiaryColor,this.darkMode),this.primaryTextColor=V(this.primaryColor),this.secondaryTextColor=V(this.secondaryColor),this.tertiaryTextColor=V(this.tertiaryColor),this.lineColor=V(this.background),this.textColor=V(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.secondBkg=U(this.contrast,55),this.border2=this.contrast,this.actorBorder=U(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let t=0;t{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}},st={base:{getThemeVariables:tt},dark:{getThemeVariables:nt},default:{getThemeVariables:lt},forest:{getThemeVariables:ot},neutral:{getThemeVariables:(0,r.K2)((t=>{const e=new at;return e.calculate(t),e}),"getThemeVariables")}},ut={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},array:{useMaxWidth:!0,borderWidth:1},matrix:{useMaxWidth:!0,borderWidth:1},testslides:{useMaxWidth:!0,borderWidth:1},visslides:{useMaxWidth:!0,borderWidth:1},visual:{useMaxWidth:!0,borderWidth:1},theme:"default",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},ct={...ut,deterministicIDSeed:void 0,themeCSS:void 0,themeVariables:st.default.getThemeVariables(),sequence:{...ut.sequence,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{...ut.gantt,tickInterval:void 0,useWidth:void 0},c4:{...ut.c4,useWidth:void 0,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}},pie:{...ut.pie,useWidth:984},xyChart:{...ut.xyChart,useWidth:void 0},requirement:{...ut.requirement,useWidth:void 0},gitGraph:{...ut.gitGraph,useMaxWidth:!1},sankey:{...ut.sankey,useMaxWidth:!1},packet:{...ut.packet}},ht=(0,r.K2)(((t,e="")=>Object.keys(t).reduce(((n,r)=>Array.isArray(t[r])?n:"object"==typeof t[r]&&null!==t[r]?[...n,e+r,...ht(t[r],"")]:[...n,e+r]),[])),"keyify"),dt=new Set(ht(ct,"")),ft=ct,pt=(0,r.K2)((t=>{if(s.debug("sanitizeDirective called with",t),"object"==typeof t&&null!=t)if(Array.isArray(t))t.forEach((t=>pt(t)));else{for(const e of Object.keys(t)){if(s.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!dt.has(e)||null==t[e]){s.debug("sanitize deleting key: ",e),delete t[e];continue}if("object"==typeof t[e]){s.debug("sanitizing object",e),pt(t[e]);continue}const n=["themeCSS","fontFamily","altFontFamily"];for(const r of n)e.includes(r)&&(s.debug("sanitizing css option",e),t[e]=mt(t[e]))}if(t.themeVariables)for(const e of Object.keys(t.themeVariables)){const n=t.themeVariables[e];n?.match&&!n.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}s.debug("After sanitization",t)}}),"sanitizeDirective"),mt=(0,r.K2)((t=>{let e=0,n=0;for(const r of t){if(e{let n=C({},t),r={};for(const t of e)Kt(t),r=C(r,t);if(n=C(n,r),r.theme&&r.theme in st){const t=C({},T),e=C(t.themeVariables||{},r.themeVariables);n.theme&&n.theme in st&&(n.themeVariables=st[n.theme].getThemeVariables(e))}return Mt(_t=n),_t}),"updateCurrentConfig"),Ct=(0,r.K2)((t=>(yt=C({},gt),yt=C(yt,t),t.theme&&st[t.theme]&&(yt.themeVariables=st[t.theme].getThemeVariables(t.themeVariables)),xt(yt,bt),yt)),"setSiteConfig"),vt=(0,r.K2)((t=>{T=C({},t)}),"saveConfigFromInitialize"),wt=(0,r.K2)((t=>(yt=C(yt,t),xt(yt,bt),yt)),"updateSiteConfig"),kt=(0,r.K2)((()=>C({},yt)),"getSiteConfig"),Tt=(0,r.K2)((t=>(Mt(t),C(_t,t),St())),"setConfig"),St=(0,r.K2)((()=>C({},_t)),"getConfig"),Kt=(0,r.K2)((t=>{t&&(["secure",...yt.secure??[]].forEach((e=>{Object.hasOwn(t,e)&&(s.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])})),Object.keys(t).forEach((e=>{e.startsWith("__")&&delete t[e]})),Object.keys(t).forEach((e=>{"string"==typeof t[e]&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],"object"==typeof t[e]&&Kt(t[e])})))}),"sanitize"),At=(0,r.K2)((t=>{pt(t),!t.fontFamily||t.themeVariables&&t.themeVariables.fontFamily||(t.themeVariables={fontFamily:t.fontFamily}),bt.push(t),xt(yt,bt)}),"addDirective"),Bt=(0,r.K2)(((t=yt)=>{xt(t,bt=[])}),"reset"),Ft={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},Et={},Lt=(0,r.K2)((t=>{Et[t]||(s.warn(Ft[t]),Et[t]=!0)}),"issueWarning"),Mt=(0,r.K2)((t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&Lt("LAZY_LOAD_DEPRECATED")}),"checkConfig"),Ot=(0,r.f1)(i(),1),$t=//gi,It=(0,r.K2)((t=>t?Ht(t).replace(/\\n/g,"#br#").split("#br#"):[""]),"getRows"),Dt=(()=>{let t=!1;return()=>{t||(Nt(),t=!0)}})();function Nt(){const t="data-temp-href-target";Ot.default.addHook("beforeSanitizeAttributes",(e=>{"A"===e.tagName&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")||"")})),Ot.default.addHook("afterSanitizeAttributes",(e=>{"A"===e.tagName&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)||""),e.removeAttribute(t),"_blank"===e.getAttribute("target")&&e.setAttribute("rel","noopener"))}))}(0,r.K2)(Nt,"setupDompurifyHooks");var Pt=(0,r.K2)((t=>(Dt(),Ot.default.sanitize(t))),"removeScript"),jt=(0,r.K2)(((t,e)=>{if(!1!==e.flowchart?.htmlLabels){const n=e.securityLevel;"antiscript"===n||"strict"===n?t=Pt(t):"loose"!==n&&(t=(t=(t=Ht(t)).replace(//g,">")).replace(/=/g,"="),t=Ut(t))}return t}),"sanitizeMore"),zt=(0,r.K2)(((t,e)=>t?t=e.dompurifyConfig?Ot.default.sanitize(jt(t,e),e.dompurifyConfig).toString():Ot.default.sanitize(jt(t,e),{FORBID_TAGS:["style"]}).toString():t),"sanitizeText"),qt=(0,r.K2)(((t,e)=>"string"==typeof t?zt(t,e):t.flat().map((t=>zt(t,e)))),"sanitizeTextOrArray"),Rt=(0,r.K2)((t=>$t.test(t)),"hasBreaks"),Wt=(0,r.K2)((t=>t.split($t)),"splitBreaks"),Ut=(0,r.K2)((t=>t.replace(/#br#/g,"
")),"placeholderToBreak"),Ht=(0,r.K2)((t=>t.replace($t,"#br#")),"breakToPlaceholder"),Yt=(0,r.K2)((t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=e.replaceAll(/\(/g,"\\("),e=e.replaceAll(/\)/g,"\\)")),e}),"getUrl"),Gt=(0,r.K2)((t=>!1!==t&&!["false","null","0"].includes(String(t).trim().toLowerCase())),"evaluate"),Vt=(0,r.K2)((function(...t){const e=t.filter((t=>!isNaN(t)));return Math.max(...e)}),"getMax"),Jt=(0,r.K2)((function(...t){const e=t.filter((t=>!isNaN(t)));return Math.min(...e)}),"getMin"),Xt=(0,r.K2)((function(t){const e=t.split(/(,)/),n=[];for(let t=0;t0&&t+1Math.max(0,t.split(e).length-1)),"countOccurrence"),Qt=(0,r.K2)(((t,e)=>{const n=Zt(t,"~"),r=Zt(e,"~");return 1===n&&1===r}),"shouldCombineSets"),te=(0,r.K2)((t=>{const e=Zt(t,"~");let n=!1;if(e<=1)return t;e%2!=0&&t.startsWith("~")&&(t=t.substring(1),n=!0);const r=[...t];let l=r.indexOf("~"),i=r.lastIndexOf("~");for(;-1!==l&&-1!==i&&l!==i;)r[l]="<",r[i]=">",l=r.indexOf("~"),i=r.lastIndexOf("~");return n&&r.unshift("~"),r.join("")}),"processSet"),ee=(0,r.K2)((()=>void 0!==window.MathMLElement),"isMathMLSupported"),ne=/\$\$(.*)\$\$/g,re=(0,r.K2)((t=>(t.match(ne)?.length??0)>0),"hasKatex"),le=(0,r.K2)((async(t,e)=>{t=await ie(t,e);const n=document.createElement("div");n.innerHTML=t,n.id="katex-temp",n.style.visibility="hidden",n.style.position="absolute",n.style.top="0";const r=document.querySelector("body");r?.insertAdjacentElement("beforeend",n);const l={width:n.clientWidth,height:n.clientHeight};return n.remove(),l}),"calculateMathMLDimensions"),ie=(0,r.K2)((async(t,e)=>{if(!re(t))return t;if(!(ee()||e.legacyMathML||e.forceLegacyMathML))return t.replace(ne,"MathML is unsupported in this environment.");const{default:r}=await n.e(6449).then(n.bind(n,6449)),l=e.forceLegacyMathML||!ee()&&e.legacyMathML?"htmlAndMathml":"mathml";return t.split($t).map((t=>re(t)?`
${t}
`:`
${t}
`)).join("").replace(ne,((t,e)=>r.renderToString(e,{throwOnError:!0,displayMode:!0,output:l}).replace(/\n/g," ").replace(//g,"")))}),"renderKatex"),oe={getRows:It,sanitizeText:zt,sanitizeTextOrArray:qt,hasBreaks:Rt,splitBreaks:Wt,lineBreakRegex:$t,removeScript:Pt,getUrl:Yt,evaluate:Gt,getMax:Vt,getMin:Jt},ae=(0,r.K2)((function(t,e){for(let n of e)t.attr(n[0],n[1])}),"d3Attrs"),se=(0,r.K2)((function(t,e,n){let r=new Map;return n?(r.set("width","100%"),r.set("style",`max-width: ${e}px;`)):(r.set("height",t),r.set("width",e)),r}),"calculateSvgSizeAttrs"),ue=(0,r.K2)((function(t,e,n,r){const l=se(e,n,r);ae(t,l)}),"configureSvgSize"),ce=(0,r.K2)((function(t,e,n,r){const l=e.node().getBBox(),i=l.width,o=l.height;s.info(`SVG bounds: ${i}x${o}`,l);let a=0,u=0;s.info(`Graph bounds: ${a}x${u}`,t),a=i+2*n,u=o+2*n,s.info(`Calculated bounds: ${a}x${u}`),ue(e,u,a,r);const c=`${l.x-n} ${l.y-n} ${l.width+2*n} ${l.height+2*n}`;e.attr("viewBox",c)}),"setupGraphViewbox"),he={},de=(0,r.K2)(((t,e,n)=>{let r="";return t in he&&he[t]?r=he[t](n):s.warn(`No theme found for ${t}`),` & {\n font-family: ${n.fontFamily};\n font-size: ${n.fontSize};\n fill: ${n.textColor}\n }\n\n /* Classes common for multiple diagrams */\n\n & .error-icon {\n fill: ${n.errorBkgColor};\n }\n & .error-text {\n fill: ${n.errorTextColor};\n stroke: ${n.errorTextColor};\n }\n\n & .edge-thickness-normal {\n stroke-width: 2px;\n }\n & .edge-thickness-thick {\n stroke-width: 3.5px\n }\n & .edge-pattern-solid {\n stroke-dasharray: 0;\n }\n\n & .edge-pattern-dashed{\n stroke-dasharray: 3;\n }\n .edge-pattern-dotted {\n stroke-dasharray: 2;\n }\n\n & .marker {\n fill: ${n.lineColor};\n stroke: ${n.lineColor};\n }\n & .marker.cross {\n stroke: ${n.lineColor};\n }\n\n & svg {\n font-family: ${n.fontFamily};\n font-size: ${n.fontSize};\n }\n\n ${r}\n\n ${e}\n`}),"getStyles"),fe=(0,r.K2)(((t,e)=>{void 0!==e&&(he[t]=e)}),"addStylesForDiagram"),pe=de,me={};(0,r.VA)(me,{clear:()=>xe,getAccDescription:()=>ke,getAccTitle:()=>ve,getDiagramTitle:()=>Se,setAccDescription:()=>we,setAccTitle:()=>Ce,setDiagramTitle:()=>Te});var ge="",ye="",be="",_e=(0,r.K2)((t=>zt(t,St())),"sanitizeText"),xe=(0,r.K2)((()=>{ge="",be="",ye=""}),"clear"),Ce=(0,r.K2)((t=>{ge=_e(t).replace(/^\s+/g,"")}),"setAccTitle"),ve=(0,r.K2)((()=>ge),"getAccTitle"),we=(0,r.K2)((t=>{be=_e(t).replace(/\n\s+/g,"\n")}),"setAccDescription"),ke=(0,r.K2)((()=>be),"getAccDescription"),Te=(0,r.K2)((t=>{ye=_e(t)}),"setDiagramTitle"),Se=(0,r.K2)((()=>ye),"getDiagramTitle"),Ke=s,Ae=u,Be=St,Fe=Tt,Ee=gt,Le=(0,r.K2)((t=>zt(t,Be())),"sanitizeText"),Me=ce,Oe=(0,r.K2)((()=>me),"getCommonDb"),$e={},Ie=(0,r.K2)(((t,e,n)=>{$e[t]&&Ke.warn(`Diagram with id ${t} already registered. Overwriting.`),$e[t]=e,n&&b(t,n),fe(t,e.styles),e.injectUtils?.(Ke,Ae,Be,Le,Me,Oe(),(()=>{}))}),"registerDiagram"),De=(0,r.K2)((t=>{if(t in $e)return $e[t];throw new Ne(t)}),"getDiagram"),Ne=class extends Error{static{(0,r.K2)(this,"DiagramNotFoundError")}constructor(t){super(`Diagram ${t} not found.`)}};function Pe(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n=e)&&(n=e);else{let r=-1;for(let l of t)null!=(l=e(l,++r,t))&&(n=l)&&(n=l)}return n}function je(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 r=-1;for(let l of t)null!=(l=e(l,++r,t))&&(n>l||void 0===n&&l>=l)&&(n=l)}return n}function ze(t,e){return null==t||null==e?NaN:te?1:t>=e?0:NaN}function qe(t,e){return null==t||null==e?NaN:et?1:e>=t?0:NaN}function Re(t){let e,n,l;function i(t,r,l=0,i=t.length){if(l>>1;n(t[e],r)<0?l=e+1:i=e}while(l>>1;n(t[e],r)<=0?l=e+1:i=e}while(ln&&l(t[o-1],e)>-l(t[o],e)?o-1:o}return 2!==t.length?(e=ze,n=(0,r.K2)(((e,n)=>ze(t(e),n)),"compare2"),l=(0,r.K2)(((e,n)=>t(e)-n),"delta")):(e=t===ze||t===qe?t:We,n=t,l=t),(0,r.K2)(i,"left"),(0,r.K2)(o,"right"),(0,r.K2)(a,"center"),{left:i,center:a,right:o}}function We(){return 0}function Ue(t){return null===t?NaN:+t}(0,r.K2)(Pe,"max"),(0,r.K2)(je,"min"),(0,r.K2)(ze,"ascending"),(0,r.K2)(qe,"descending"),(0,r.K2)(Re,"bisector"),(0,r.K2)(We,"zero"),(0,r.K2)(Ue,"number");var He=Re(ze),Ye=He.right,Ge=(He.left,Re(Ue).center,Ye),Ve=class extends Map{static{(0,r.K2)(this,"InternMap")}constructor(t,e=Qe){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(Je(this,t))}has(t){return super.has(Je(this,t))}set(t,e){return super.set(Xe(this,t),e)}delete(t){return super.delete(Ze(this,t))}};function Je({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function Xe({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function Ze({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}function Qe(t){return null!==t&&"object"==typeof t?t.valueOf():t}(0,r.K2)(Je,"intern_get"),(0,r.K2)(Xe,"intern_set"),(0,r.K2)(Ze,"intern_delete"),(0,r.K2)(Qe,"keyof");var tn=Math.sqrt(50),en=Math.sqrt(10),nn=Math.sqrt(2);function rn(t,e,n){const r=(e-t)/Math.max(0,n),l=Math.floor(Math.log10(r)),i=r/Math.pow(10,l),o=i>=tn?10:i>=en?5:i>=nn?2:1;let a,s,u;return l<0?(u=Math.pow(10,-l)/o,a=Math.round(t*u),s=Math.round(e*u),a/ue&&--s,u=-u):(u=Math.pow(10,l)*o,a=Math.round(t/u),s=Math.round(e/u),a*ue&&--s),s0))return[];if((t=+t)==(e=+e))return[t];const r=e=l))return[];const a=i-l+1,s=new Array(a);if(r)if(o<0)for(let t=0;t+t(e)}function bn(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function _n(){return!this.__axis}function xn(t,e){var n=[],l=null,i=null,o=6,a=6,s=3,u="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,c=t===cn||t===fn?-1:1,h=t===fn||t===hn?"x":"y",d=t===cn||t===dn?mn:gn;function f(r){var f=null==l?e.ticks?e.ticks.apply(e,n):e.domain():l,p=null==i?e.tickFormat?e.tickFormat.apply(e,n):un:i,m=Math.max(o,0)+s,g=e.range(),y=+g[0]+u,b=+g[g.length-1]+u,_=(e.bandwidth?bn:yn)(e.copy(),u),x=r.selection?r.selection():r,C=x.selectAll(".domain").data([null]),v=x.selectAll(".tick").data(f,e).order(),w=v.exit(),k=v.enter().append("g").attr("class","tick"),T=v.select("line"),S=v.select("text");C=C.merge(C.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),v=v.merge(k),T=T.merge(k.append("line").attr("stroke","currentColor").attr(h+"2",c*o)),S=S.merge(k.append("text").attr("fill","currentColor").attr(h,c*m).attr("dy",t===cn?"0em":t===dn?"0.71em":"0.32em")),r!==x&&(C=C.transition(r),v=v.transition(r),T=T.transition(r),S=S.transition(r),w=w.transition(r).attr("opacity",pn).attr("transform",(function(t){return isFinite(t=_(t))?d(t+u):this.getAttribute("transform")})),k.attr("opacity",pn).attr("transform",(function(t){var e=this.parentNode.__axis;return d((e&&isFinite(e=e(t))?e:_(t))+u)}))),w.remove(),C.attr("d",t===fn||t===hn?a?"M"+c*a+","+y+"H"+u+"V"+b+"H"+c*a:"M"+u+","+y+"V"+b:a?"M"+y+","+c*a+"V"+u+"H"+b+"V"+c*a:"M"+y+","+u+"H"+b),v.attr("opacity",1).attr("transform",(function(t){return d(_(t)+u)})),T.attr(h+"2",c*o),S.attr(h,c*m).text(p),x.filter(_n).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===hn?"start":t===fn?"end":"middle"),x.each((function(){this.__axis=_}))}return(0,r.K2)(f,"axis"),f.scale=function(t){return arguments.length?(e=t,f):e},f.ticks=function(){return n=Array.from(arguments),f},f.tickArguments=function(t){return arguments.length?(n=null==t?[]:Array.from(t),f):n.slice()},f.tickValues=function(t){return arguments.length?(l=null==t?null:Array.from(t),f):l&&l.slice()},f.tickFormat=function(t){return arguments.length?(i=t,f):i},f.tickSize=function(t){return arguments.length?(o=a=+t,f):o},f.tickSizeInner=function(t){return arguments.length?(o=+t,f):o},f.tickSizeOuter=function(t){return arguments.length?(a=+t,f):a},f.tickPadding=function(t){return arguments.length?(s=+t,f):s},f.offset=function(t){return arguments.length?(u=+t,f):u},f}function Cn(t){return xn(cn,t)}function vn(t){return xn(dn,t)}function wn(){}function kn(t){return null==t?wn:function(){return this.querySelector(t)}}function Tn(t){"function"!=typeof t&&(t=kn(t));for(var e=this._groups,n=e.length,r=new Array(n),l=0;l=x&&(x=_+1);!(b=g[x])&&++x=0;)(r=l[i])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this}function er(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=nr),(0,r.K2)(e,"compareNode");for(var n=this._groups,l=n.length,i=new Array(l),o=0;oe?1:t>=e?0:NaN}function rr(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function lr(){return Array.from(this)}function ir(){for(var t=this._groups,e=0,n=t.length;e=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),cr.hasOwnProperty(e)?{space:cr[e],local:t}:t}function dr(t){return function(){this.removeAttribute(t)}}function fr(t){return function(){this.removeAttributeNS(t.space,t.local)}}function pr(t,e){return function(){this.setAttribute(t,e)}}function mr(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function gr(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function yr(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function br(t,e){var n=hr(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?fr:dr:"function"==typeof e?n.local?yr:gr:n.local?mr:pr)(n,e))}function _r(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function xr(t){return function(){this.style.removeProperty(t)}}function Cr(t,e,n){return function(){this.style.setProperty(t,e,n)}}function vr(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function wr(t,e,n){return arguments.length>1?this.each((null==e?xr:"function"==typeof e?vr:Cr)(t,e,null==n?"":n)):kr(this.node(),t)}function kr(t,e){return t.style.getPropertyValue(e)||_r(t).getComputedStyle(t,null).getPropertyValue(e)}function Tr(t){return function(){delete this[t]}}function Sr(t,e){return function(){this[t]=e}}function Kr(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function Ar(t,e){return arguments.length>1?this.each((null==e?Tr:"function"==typeof e?Kr:Sr)(t,e)):this.node()[t]}function Br(t){return t.trim().split(/^|\s+/)}function Fr(t){return t.classList||new Er(t)}function Er(t){this._node=t,this._names=Br(t.getAttribute("class")||"")}function Lr(t,e){for(var n=Fr(t),r=-1,l=e.length;++r=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function cl(t){return function(){var e=this.__on;if(e){for(var n,r=0,l=-1,i=e.length;r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}},(0,r.K2)(Lr,"classedAdd"),(0,r.K2)(Mr,"classedRemove"),(0,r.K2)(Or,"classedTrue"),(0,r.K2)($r,"classedFalse"),(0,r.K2)(Ir,"classedFunction"),(0,r.K2)(Dr,"default"),(0,r.K2)(Nr,"textRemove"),(0,r.K2)(Pr,"textConstant"),(0,r.K2)(jr,"textFunction"),(0,r.K2)(zr,"default"),(0,r.K2)(qr,"htmlRemove"),(0,r.K2)(Rr,"htmlConstant"),(0,r.K2)(Wr,"htmlFunction"),(0,r.K2)(Ur,"default"),(0,r.K2)(Hr,"raise"),(0,r.K2)(Yr,"default"),(0,r.K2)(Gr,"lower"),(0,r.K2)(Vr,"default"),(0,r.K2)(Jr,"creatorInherit"),(0,r.K2)(Xr,"creatorFixed"),(0,r.K2)(Zr,"default"),(0,r.K2)(Qr,"default"),(0,r.K2)(tl,"constantNull"),(0,r.K2)(el,"default"),(0,r.K2)(nl,"remove"),(0,r.K2)(rl,"default"),(0,r.K2)(ll,"selection_cloneShallow"),(0,r.K2)(il,"selection_cloneDeep"),(0,r.K2)(ol,"default"),(0,r.K2)(al,"default"),(0,r.K2)(sl,"contextListener"),(0,r.K2)(ul,"parseTypenames"),(0,r.K2)(cl,"onRemove"),(0,r.K2)(hl,"onAdd"),(0,r.K2)(dl,"default"),(0,r.K2)(fl,"dispatchEvent"),(0,r.K2)(pl,"dispatchConstant"),(0,r.K2)(ml,"dispatchFunction"),(0,r.K2)(gl,"default"),(0,r.K2)(yl,"default");var bl=[null];function _l(t,e){this._groups=t,this._parents=e}function xl(){return new _l([[document.documentElement]],bl)}function Cl(){return this}(0,r.K2)(_l,"Selection"),(0,r.K2)(xl,"selection"),(0,r.K2)(Cl,"selection_selection"),_l.prototype=xl.prototype={constructor:_l,select:Tn,selectAll:Fn,selectChild:In,selectChildren:jn,filter:zn,data:Vn,enter:Rn,exit:Xn,join:Zn,merge:Qn,selection:Cl,order:tr,sort:er,call:rr,nodes:lr,node:ir,size:or,empty:ar,each:sr,attr:br,style:wr,property:Ar,classed:Dr,text:zr,html:Ur,raise:Yr,lower:Vr,append:Qr,insert:el,remove:rl,clone:ol,datum:al,on:dl,dispatch:gl,[Symbol.iterator]:yl};var vl=xl;function wl(t){return"string"==typeof t?new _l([[document.querySelector(t)]],[document.documentElement]):new _l([[t]],bl)}function kl(t){return"string"==typeof t?new _l([document.querySelectorAll(t)],[document.documentElement]):new _l([Sn(t)],bl)}function Tl(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Sl(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Kl(){}(0,r.K2)(wl,"default"),(0,r.K2)(kl,"default"),(0,r.K2)(Tl,"default"),(0,r.K2)(Sl,"extend"),(0,r.K2)(Kl,"Color");var Al=.7,Bl=1/Al,Fl="\\s*([+-]?\\d+)\\s*",El="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ll="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ml=/^#([0-9a-f]{3,8})$/,Ol=new RegExp(`^rgb\\(${Fl},${Fl},${Fl}\\)$`),$l=new RegExp(`^rgb\\(${Ll},${Ll},${Ll}\\)$`),Il=new RegExp(`^rgba\\(${Fl},${Fl},${Fl},${El}\\)$`),Dl=new RegExp(`^rgba\\(${Ll},${Ll},${Ll},${El}\\)$`),Nl=new RegExp(`^hsl\\(${El},${Ll},${Ll}\\)$`),Pl=new RegExp(`^hsla\\(${El},${Ll},${Ll},${El}\\)$`),jl={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function zl(){return this.rgb().formatHex()}function ql(){return this.rgb().formatHex8()}function Rl(){return li(this).formatHsl()}function Wl(){return this.rgb().formatRgb()}function Ul(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Ml.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Hl(e):3===n?new Jl(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Yl(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Yl(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Ol.exec(t))?new Jl(e[1],e[2],e[3],1):(e=$l.exec(t))?new Jl(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Il.exec(t))?Yl(e[1],e[2],e[3],e[4]):(e=Dl.exec(t))?Yl(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Nl.exec(t))?ri(e[1],e[2]/100,e[3]/100,1):(e=Pl.exec(t))?ri(e[1],e[2]/100,e[3]/100,e[4]):jl.hasOwnProperty(t)?Hl(jl[t]):"transparent"===t?new Jl(NaN,NaN,NaN,0):null}function Hl(t){return new Jl(t>>16&255,t>>8&255,255&t,1)}function Yl(t,e,n,r){return r<=0&&(t=e=n=NaN),new Jl(t,e,n,r)}function Gl(t){return t instanceof Kl||(t=Ul(t)),t?new Jl((t=t.rgb()).r,t.g,t.b,t.opacity):new Jl}function Vl(t,e,n,r){return 1===arguments.length?Gl(t):new Jl(t,e,n,null==r?1:r)}function Jl(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Xl(){return`#${ni(this.r)}${ni(this.g)}${ni(this.b)}`}function Zl(){return`#${ni(this.r)}${ni(this.g)}${ni(this.b)}${ni(255*(isNaN(this.opacity)?1:this.opacity))}`}function Ql(){const t=ti(this.opacity);return`${1===t?"rgb(":"rgba("}${ei(this.r)}, ${ei(this.g)}, ${ei(this.b)}${1===t?")":`, ${t})`}`}function ti(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function ei(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ni(t){return((t=ei(t))<16?"0":"")+t.toString(16)}function ri(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new oi(t,e,n,r)}function li(t){if(t instanceof oi)return new oi(t.h,t.s,t.l,t.opacity);if(t instanceof Kl||(t=Ul(t)),!t)return new oi;if(t instanceof oi)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,l=Math.min(e,n,r),i=Math.max(e,n,r),o=NaN,a=i-l,s=(i+l)/2;return a?(o=e===i?(n-r)/a+6*(n0&&s<1?0:o,new oi(o,a,s,t.opacity)}function ii(t,e,n,r){return 1===arguments.length?li(t):new oi(t,e,n,null==r?1:r)}function oi(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function ai(t){return(t=(t||0)%360)<0?t+360:t}function si(t){return Math.max(0,Math.min(1,t||0))}function ui(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}Tl(Kl,Ul,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:zl,formatHex:zl,formatHex8:ql,formatHsl:Rl,formatRgb:Wl,toString:Wl}),(0,r.K2)(zl,"color_formatHex"),(0,r.K2)(ql,"color_formatHex8"),(0,r.K2)(Rl,"color_formatHsl"),(0,r.K2)(Wl,"color_formatRgb"),(0,r.K2)(Ul,"color"),(0,r.K2)(Hl,"rgbn"),(0,r.K2)(Yl,"rgba"),(0,r.K2)(Gl,"rgbConvert"),(0,r.K2)(Vl,"rgb"),(0,r.K2)(Jl,"Rgb"),Tl(Jl,Vl,Sl(Kl,{brighter(t){return t=null==t?Bl:Math.pow(Bl,t),new Jl(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Al:Math.pow(Al,t),new Jl(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Jl(ei(this.r),ei(this.g),ei(this.b),ti(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Xl,formatHex:Xl,formatHex8:Zl,formatRgb:Ql,toString:Ql})),(0,r.K2)(Xl,"rgb_formatHex"),(0,r.K2)(Zl,"rgb_formatHex8"),(0,r.K2)(Ql,"rgb_formatRgb"),(0,r.K2)(ti,"clampa"),(0,r.K2)(ei,"clampi"),(0,r.K2)(ni,"hex"),(0,r.K2)(ri,"hsla"),(0,r.K2)(li,"hslConvert"),(0,r.K2)(ii,"hsl"),(0,r.K2)(oi,"Hsl"),Tl(oi,ii,Sl(Kl,{brighter(t){return t=null==t?Bl:Math.pow(Bl,t),new oi(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Al:Math.pow(Al,t),new oi(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,l=2*n-r;return new Jl(ui(t>=240?t-240:t+120,l,r),ui(t,l,r),ui(t<120?t+240:t-120,l,r),this.opacity)},clamp(){return new oi(ai(this.h),si(this.s),si(this.l),ti(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=ti(this.opacity);return`${1===t?"hsl(":"hsla("}${ai(this.h)}, ${100*si(this.s)}%, ${100*si(this.l)}%${1===t?")":`, ${t})`}`}})),(0,r.K2)(ai,"clamph"),(0,r.K2)(si,"clampt"),(0,r.K2)(ui,"hsl2rgb");var ci=Math.PI/180,hi=180/Math.PI,di=.96422,fi=1,pi=.82521,mi=4/29,gi=6/29,yi=3*gi*gi,bi=gi*gi*gi;function _i(t){if(t instanceof Ci)return new Ci(t.l,t.a,t.b,t.opacity);if(t instanceof Ai)return Bi(t);t instanceof Jl||(t=Gl(t));var e,n,r=Ti(t.r),l=Ti(t.g),i=Ti(t.b),o=vi((.2225045*r+.7168786*l+.0606169*i)/fi);return r===l&&l===i?e=n=o:(e=vi((.4360747*r+.3850649*l+.1430804*i)/di),n=vi((.0139322*r+.0971045*l+.7141733*i)/pi)),new Ci(116*o-16,500*(e-o),200*(o-n),t.opacity)}function xi(t,e,n,r){return 1===arguments.length?_i(t):new Ci(t,e,n,null==r?1:r)}function Ci(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function vi(t){return t>bi?Math.pow(t,1/3):t/yi+mi}function wi(t){return t>gi?t*t*t:yi*(t-mi)}function ki(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Ti(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Si(t){if(t instanceof Ai)return new Ai(t.h,t.c,t.l,t.opacity);if(t instanceof Ci||(t=_i(t)),0===t.a&&0===t.b)return new Ai(NaN,0()=>t),"default");function Ei(t,e){return function(n){return t+n*e}}function Li(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function Mi(t,e){var n=e-t;return n?Ei(t,n>180||n<-180?n-360*Math.round(n/360):n):Fi(isNaN(t)?e:t)}function Oi(t){return 1==(t=+t)?$i:function(e,n){return n-e?Li(e,n,t):Fi(isNaN(e)?n:e)}}function $i(t,e){var n=e-t;return n?Ei(t,n):Fi(isNaN(t)?e:t)}function Ii(t){return function(e,n){var r=t((e=Ki(e)).h,(n=Ki(n)).h),l=$i(e.c,n.c),i=$i(e.l,n.l),o=$i(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=l(t),e.l=i(t),e.opacity=o(t),e+""}}}(0,r.K2)(Ei,"linear"),(0,r.K2)(Li,"exponential"),(0,r.K2)(Mi,"hue"),(0,r.K2)(Oi,"gamma"),(0,r.K2)($i,"nogamma"),(0,r.K2)(Ii,"hcl");var Di=Ii(Mi);function Ni(t,e,n,r,l){var i=t*t,o=i*t;return((1-3*t+3*i-o)*e+(4-6*i+3*o)*n+(1+3*t+3*i-3*o)*r+o*l)/6}function Pi(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),l=t[r],i=t[r+1],o=r>0?t[r-1]:2*l-i,a=ri&&(l=e.slice(i,l),a[o]?a[o]+=l:a[++o]=l),(n=n[0])===(r=r[0])?a[o]?a[o]+=r:a[++o]=r:(a[++o]=null,s.push({i:o,x:Yi(n,r)})),i=Ji.lastIndex;return i180?e+=360:e-t>180&&(t+=360),r.push({i:n.push(i(n)+"rotate(",null,l)-2,x:Yi(t,e)})):e&&n.push(i(n)+"rotate("+e+l)}function s(t,e,n,r){t!==e?r.push({i:n.push(i(n)+"skewX(",null,l)-2,x:Yi(t,e)}):e&&n.push(i(n)+"skewX("+e+l)}function u(t,e,n,r,l,o){if(t!==n||e!==r){var a=l.push(i(l)+"scale(",null,",",null,")");o.push({i:a-4,x:Yi(t,n)},{i:a-2,x:Yi(e,r)})}else 1===n&&1===r||l.push(i(l)+"scale("+n+","+r+")")}return(0,r.K2)(i,"pop"),(0,r.K2)(o,"translate"),(0,r.K2)(a,"rotate"),(0,r.K2)(s,"skewX"),(0,r.K2)(u,"scale"),function(e,n){var r=[],l=[];return e=t(e),n=t(n),o(e.translateX,e.translateY,n.translateX,n.translateY,r,l),a(e.rotate,n.rotate,r,l),s(e.skewX,n.skewX,r,l),u(e.scaleX,e.scaleY,n.scaleX,n.scaleY,r,l),e=n=null,function(t){for(var e,n=-1,i=l.length;++ne&&(n=t,t=e,e=n),function(n){return Math.max(t,Math.min(e,n))}}function Co(t,e,n){var r=t[0],l=t[1],i=e[0],o=e[1];return l2?vo:Co,i=o=null,d}function d(e){return null==e||isNaN(e=+e)?n:(i||(i=l(a.map(t),s,u)))(t(c(e)))}return(0,r.K2)(h,"rescale"),(0,r.K2)(d,"scale"),d.invert=function(n){return c(e((o||(o=l(s,a.map(t),Yi)))(n)))},d.domain=function(t){return arguments.length?(a=Array.from(t,go),h()):a.slice()},d.range=function(t){return arguments.length?(s=Array.from(t),h()):s.slice()},d.rangeRound=function(t){return s=Array.from(t),u=eo,h()},d.clamp=function(t){return arguments.length?(c=!!t||bo,h()):c!==bo},d.interpolate=function(t){return arguments.length?(u=t,h()):u},d.unknown=function(t){return arguments.length?(n=t,d):n},function(n,r){return t=n,e=r,h()}}function To(){return ko()(bo,bo)}function So(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Ko(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function Ao(t){return(t=Ko(Math.abs(t)))?t[1]:NaN}function Bo(t,e){return function(n,r){for(var l=n.length,i=[],o=0,a=t[0],s=0;l>0&&a>0&&(s+a+1>r&&(a=Math.max(1,r-s)),i.push(n.substring(l-=a,l+a)),!((s+=a+1)>r));)a=t[o=(o+1)%t.length];return i.reverse().join(e)}}function Fo(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(0,r.K2)(bo,"identity"),(0,r.K2)(_o,"normalize"),(0,r.K2)(xo,"clamper"),(0,r.K2)(Co,"bimap"),(0,r.K2)(vo,"polymap"),(0,r.K2)(wo,"copy"),(0,r.K2)(ko,"transformer"),(0,r.K2)(To,"continuous"),(0,r.K2)(So,"default"),(0,r.K2)(Ko,"formatDecimalParts"),(0,r.K2)(Ao,"default"),(0,r.K2)(Bo,"default"),(0,r.K2)(Fo,"default");var Eo,Lo=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Mo(t){if(!(e=Lo.exec(t)))throw new Error("invalid format: "+t);var e;return new Oo({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Oo(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function $o(t){t:for(var e,n=t.length,r=1,l=-1;r0&&(l=0)}return l>0?t.slice(0,l)+t.slice(e+1):t}function Io(t,e){var n=Ko(t,e);if(!n)return t+"";var r=n[0],l=n[1],i=l-(Eo=3*Math.max(-8,Math.min(8,Math.floor(l/3))))+1,o=r.length;return i===o?r:i>o?r+new Array(i-o+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Ko(t,Math.max(0,e+i-1))[0]}function Do(t,e){var n=Ko(t,e);if(!n)return t+"";var r=n[0],l=n[1];return l<0?"0."+new Array(-l).join("0")+r:r.length>l+1?r.slice(0,l+1)+"."+r.slice(l+1):r+new Array(l-r.length+2).join("0")}(0,r.K2)(Mo,"formatSpecifier"),Mo.prototype=Oo.prototype,(0,r.K2)(Oo,"FormatSpecifier"),Oo.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type},(0,r.K2)($o,"default"),(0,r.K2)(Io,"default"),(0,r.K2)(Do,"default");var No={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:So,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Do(100*t,e),r:Do,s:Io,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Po(t){return t}(0,r.K2)(Po,"default");var jo,zo,qo,Ro=Array.prototype.map,Wo=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Uo(t){var e=void 0===t.grouping||void 0===t.thousands?Po:Bo(Ro.call(t.grouping,Number),t.thousands+""),n=void 0===t.currency?"":t.currency[0]+"",l=void 0===t.currency?"":t.currency[1]+"",i=void 0===t.decimal?".":t.decimal+"",o=void 0===t.numerals?Po:Fo(Ro.call(t.numerals,String)),a=void 0===t.percent?"%":t.percent+"",s=void 0===t.minus?"−":t.minus+"",u=void 0===t.nan?"NaN":t.nan+"";function c(t){var c=(t=Mo(t)).fill,h=t.align,d=t.sign,f=t.symbol,p=t.zero,m=t.width,g=t.comma,y=t.precision,b=t.trim,_=t.type;"n"===_?(g=!0,_="g"):No[_]||(void 0===y&&(y=12),b=!0,_="g"),(p||"0"===c&&"="===h)&&(p=!0,c="0",h="=");var x="$"===f?n:"#"===f&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",C="$"===f?l:/[%p]/.test(_)?a:"",v=No[_],w=/[defgprs%]/.test(_);function k(t){var n,r,l,a=x,f=C;if("c"===_)f=v(t)+f,t="";else{var k=(t=+t)<0||1/t<0;if(t=isNaN(t)?u:v(Math.abs(t),y),b&&(t=$o(t)),k&&0==+t&&"+"!==d&&(k=!1),a=(k?"("===d?d:s:"-"===d||"("===d?"":d)+a,f=("s"===_?Wo[8+Eo/3]:"")+f+(k&&"("===d?")":""),w)for(n=-1,r=t.length;++n(l=t.charCodeAt(n))||l>57){f=(46===l?i+t.slice(n+1):t.slice(n))+f,t=t.slice(0,n);break}}g&&!p&&(t=e(t,1/0));var T=a.length+t.length+f.length,S=T>1)+a+t+f+S.slice(T);break;default:t=S+a+t+f}return o(t)}return y=void 0===y?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),(0,r.K2)(k,"format"),k.toString=function(){return t+""},k}function h(t,e){var n=c(((t=Mo(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Ao(e)/3))),l=Math.pow(10,-r),i=Wo[8+r/3];return function(t){return n(l*t)+i}}return(0,r.K2)(c,"newFormat"),(0,r.K2)(h,"formatPrefix"),{format:c,formatPrefix:h}}function Ho(t){return jo=Uo(t),zo=jo.format,qo=jo.formatPrefix,jo}function Yo(t){return Math.max(0,-Ao(Math.abs(t)))}function Go(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ao(e)/3)))-Ao(Math.abs(t)))}function Vo(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Ao(e)-Ao(t))+1}function Jo(t,e,n,r){var l,i=an(t,e,n);switch((r=Mo(null==r?",f":r)).type){case"s":var o=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(l=Go(i,o))||(r.precision=l),qo(r,o);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(l=Vo(i,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=l-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(l=Yo(i))||(r.precision=l-2*("%"===r.type))}return zo(r)}function Xo(t){var e=t.domain;return t.ticks=function(t){var n=e();return ln(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return Jo(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,l,i=e(),o=0,a=i.length-1,s=i[o],u=i[a],c=10;for(u0;){if((l=on(s,u,n))===r)return i[o]=s,i[a]=u,e(i);if(l>0)s=Math.floor(s/l)*l,u=Math.ceil(u/l)*l;else{if(!(l<0))break;s=Math.ceil(s*l)/l,u=Math.floor(u*l)/l}r=l}return t},t}function Zo(){var t=To();return t.copy=function(){return wo(t,Zo())},ho.apply(t,arguments),Xo(t)}(0,r.K2)(Uo,"default"),Ho({thousands:",",grouping:[3],currency:["$",""]}),(0,r.K2)(Ho,"defaultLocale"),(0,r.K2)(Yo,"default"),(0,r.K2)(Go,"default"),(0,r.K2)(Vo,"default"),(0,r.K2)(Jo,"tickFormat"),(0,r.K2)(Xo,"linearish"),(0,r.K2)(Zo,"linear");var Qo=new Date,ta=new Date;function ea(t,e,n,l){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return(0,r.K2)(i,"interval"),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=>{const e=i(t),n=i.ceil(t);return t-e(e(t=new Date(+t),null==n?1:Math.floor(n)),t),i.range=(n,r,l)=>{const o=[];if(n=i.ceil(n),l=null==l?1:Math.floor(l),!(n0))return o;let a;do{o.push(a=new Date(+n)),e(n,l),t(n)}while(aea((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(;--r>=0;)for(;e(t,1),!n(t););})),n&&(i.count=(e,r)=>(Qo.setTime(+e),ta.setTime(+r),t(Qo),t(ta),Math.floor(n(Qo,ta))),i.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(l?e=>l(e)%t==0:e=>i.count(0,e)%t==0):i:null)),i}(0,r.K2)(ea,"timeInterval");var na=ea((()=>{}),((t,e)=>{t.setTime(+t+e)}),((t,e)=>e-t));na.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?ea((e=>{e.setTime(Math.floor(e/t)*t)}),((e,n)=>{e.setTime(+e+n*t)}),((e,n)=>(n-e)/t)):na:null),na.range;var ra=1e3,la=6e4,ia=36e5,oa=864e5,aa=6048e5,sa=31536e6,ua=ea((t=>{t.setTime(t-t.getMilliseconds())}),((t,e)=>{t.setTime(+t+e*ra)}),((t,e)=>(e-t)/ra),(t=>t.getUTCSeconds())),ca=(ua.range,ea((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ra)}),((t,e)=>{t.setTime(+t+e*la)}),((t,e)=>(e-t)/la),(t=>t.getMinutes()))),ha=(ca.range,ea((t=>{t.setUTCSeconds(0,0)}),((t,e)=>{t.setTime(+t+e*la)}),((t,e)=>(e-t)/la),(t=>t.getUTCMinutes()))),da=(ha.range,ea((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ra-t.getMinutes()*la)}),((t,e)=>{t.setTime(+t+e*ia)}),((t,e)=>(e-t)/ia),(t=>t.getHours()))),fa=(da.range,ea((t=>{t.setUTCMinutes(0,0,0)}),((t,e)=>{t.setTime(+t+e*ia)}),((t,e)=>(e-t)/ia),(t=>t.getUTCHours()))),pa=(fa.range,ea((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*la)/oa),(t=>t.getDate()-1))),ma=(pa.range,ea((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/oa),(t=>t.getUTCDate()-1))),ga=(ma.range,ea((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/oa),(t=>Math.floor(t/oa))));function ya(t){return ea((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())*la)/aa))}ga.range,(0,r.K2)(ya,"timeWeekday");var ba=ya(0),_a=ya(1),xa=ya(2),Ca=ya(3),va=ya(4),wa=ya(5),ka=ya(6);function Ta(t){return ea((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)/aa))}ba.range,_a.range,xa.range,Ca.range,va.range,wa.range,ka.range,(0,r.K2)(Ta,"utcWeekday");var Sa=Ta(0),Ka=Ta(1),Aa=Ta(2),Ba=Ta(3),Fa=Ta(4),Ea=Ta(5),La=Ta(6),Ma=(Sa.range,Ka.range,Aa.range,Ba.range,Fa.range,Ea.range,La.range,ea((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()))),Oa=(Ma.range,ea((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()))),$a=(Oa.range,ea((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())));$a.every=t=>isFinite(t=Math.floor(t))&&t>0?ea((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,$a.range;var Ia=ea((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()));function Da(t,e,n,l,i,o){const a=[[ua,1,ra],[ua,5,5e3],[ua,15,15e3],[ua,30,3e4],[o,1,la],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,ia],[i,3,108e5],[i,6,216e5],[i,12,432e5],[l,1,oa],[l,2,1728e5],[n,1,aa],[e,1,2592e6],[e,3,7776e6],[t,1,sa]];function s(t,e,n){const r=et)).right(a,l);if(i===a.length)return t.every(an(e/sa,n/sa,r));if(0===i)return na.every(Math.max(an(e,n,r),1));const[o,s]=a[l/a[i-1][2]isFinite(t=Math.floor(t))&&t>0?ea((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,Ia.range,(0,r.K2)(Da,"ticker");var[Na,Pa]=Da(Ia,Oa,Sa,ga,fa,ha),[ja,za]=Da($a,Ma,ba,pa,da,ca);function qa(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Ra(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Wa(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Ua(t){var e=t.dateTime,n=t.date,l=t.time,i=t.periods,o=t.days,a=t.shortDays,s=t.months,u=t.shortMonths,c=ts(i),h=es(i),d=ts(o),f=es(o),p=ts(a),m=es(a),g=ts(s),y=es(s),b=ts(u),_=es(u),x={a:O,A:$,b:I,B:D,c:null,d:vs,e:vs,f:Ks,g:Ns,G:js,H:ws,I:ks,j:Ts,L:Ss,m:As,M:Bs,p:N,q:P,Q:uu,s:cu,S:Fs,u:Es,U:Ls,V:Os,w:$s,W:Is,x:null,X:null,y:Ds,Y:Ps,Z:zs,"%":su},C={a:j,A:z,b:q,B:R,c:null,d:qs,e:qs,f:Ys,g:lu,G:ou,H:Rs,I:Ws,j:Us,L:Hs,m:Gs,M:Vs,p:W,q:U,Q:uu,s:cu,S:Js,u:Xs,U:Zs,V:tu,w:eu,W:nu,x:null,X:null,y:ru,Y:iu,Z:au,"%":su},v={a:K,A,b:B,B:F,c:E,d:ds,e:ds,f:bs,g:ss,G:as,H:ps,I:ps,j:fs,L:ys,m:hs,M:ms,p:S,q:cs,Q:xs,s:Cs,S:gs,u:rs,U:ls,V:is,w:ns,W:os,x:L,X:M,y:ss,Y:as,Z:us,"%":_s};function w(t,e){return function(n){var r,l,i,o=[],a=-1,s=0,u=t.length;for(n instanceof Date||(n=new Date(+n));++a53)return null;"w"in i||(i.w=1),"Z"in i?(l=(r=Ra(Wa(i.y,0,1))).getUTCDay(),r=l>4||0===l?Ka.ceil(r):Ka(r),r=ma.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(l=(r=qa(Wa(i.y,0,1))).getDay(),r=l>4||0===l?_a.ceil(r):_a(r),r=pa.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),l="Z"in i?Ra(Wa(i.y,0,1)).getUTCDay():qa(Wa(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(l+5)%7:i.w+7*i.U-(l+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,Ra(i)):qa(i)}}function T(t,e,n,r){for(var l,i,o=0,a=e.length,s=n.length;o=s)return-1;if(37===(l=e.charCodeAt(o++))){if(l=e.charAt(o++),!(i=v[l in Ga?e.charAt(o++):l])||(r=i(t,n,r))<0)return-1}else if(l!=n.charCodeAt(r++))return-1}return r}function S(t,e,n){var r=c.exec(e.slice(n));return r?(t.p=h.get(r[0].toLowerCase()),n+r[0].length):-1}function K(t,e,n){var r=p.exec(e.slice(n));return r?(t.w=m.get(r[0].toLowerCase()),n+r[0].length):-1}function A(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=f.get(r[0].toLowerCase()),n+r[0].length):-1}function B(t,e,n){var r=b.exec(e.slice(n));return r?(t.m=_.get(r[0].toLowerCase()),n+r[0].length):-1}function F(t,e,n){var r=g.exec(e.slice(n));return r?(t.m=y.get(r[0].toLowerCase()),n+r[0].length):-1}function E(t,n,r){return T(t,e,n,r)}function L(t,e,r){return T(t,n,e,r)}function M(t,e,n){return T(t,l,e,n)}function O(t){return a[t.getDay()]}function $(t){return o[t.getDay()]}function I(t){return u[t.getMonth()]}function D(t){return s[t.getMonth()]}function N(t){return i[+(t.getHours()>=12)]}function P(t){return 1+~~(t.getMonth()/3)}function j(t){return a[t.getUTCDay()]}function z(t){return o[t.getUTCDay()]}function q(t){return u[t.getUTCMonth()]}function R(t){return s[t.getUTCMonth()]}function W(t){return i[+(t.getUTCHours()>=12)]}function U(t){return 1+~~(t.getUTCMonth()/3)}return x.x=w(n,x),x.X=w(l,x),x.c=w(e,x),C.x=w(n,C),C.X=w(l,C),C.c=w(e,C),(0,r.K2)(w,"newFormat"),(0,r.K2)(k,"newParse"),(0,r.K2)(T,"parseSpecifier"),(0,r.K2)(S,"parsePeriod"),(0,r.K2)(K,"parseShortWeekday"),(0,r.K2)(A,"parseWeekday"),(0,r.K2)(B,"parseShortMonth"),(0,r.K2)(F,"parseMonth"),(0,r.K2)(E,"parseLocaleDateTime"),(0,r.K2)(L,"parseLocaleDate"),(0,r.K2)(M,"parseLocaleTime"),(0,r.K2)(O,"formatShortWeekday"),(0,r.K2)($,"formatWeekday"),(0,r.K2)(I,"formatShortMonth"),(0,r.K2)(D,"formatMonth"),(0,r.K2)(N,"formatPeriod"),(0,r.K2)(P,"formatQuarter"),(0,r.K2)(j,"formatUTCShortWeekday"),(0,r.K2)(z,"formatUTCWeekday"),(0,r.K2)(q,"formatUTCShortMonth"),(0,r.K2)(R,"formatUTCMonth"),(0,r.K2)(W,"formatUTCPeriod"),(0,r.K2)(U,"formatUTCQuarter"),{format:function(t){var e=w(t+="",x);return e.toString=function(){return t},e},parse:function(t){var e=k(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+="",C);return e.toString=function(){return t},e},utcParse:function(t){var e=k(t+="",!0);return e.toString=function(){return t},e}}}(0,r.K2)(qa,"localDate"),(0,r.K2)(Ra,"utcDate"),(0,r.K2)(Wa,"newDate"),(0,r.K2)(Ua,"formatLocale");var Ha,Ya,Ga={"-":"",_:" ",0:"0"},Va=/^\s*\d+/,Ja=/^%/,Xa=/[\\^$*+?|[\]().{}]/g;function Za(t,e,n){var r=t<0?"-":"",l=(r?-t:t)+"",i=l.length;return r+(i[t.toLowerCase(),e])))}function ns(t,e,n){var r=Va.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function rs(t,e,n){var r=Va.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function ls(t,e,n){var r=Va.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function is(t,e,n){var r=Va.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function os(t,e,n){var r=Va.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function as(t,e,n){var r=Va.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function ss(t,e,n){var r=Va.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function us(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function cs(t,e,n){var r=Va.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function hs(t,e,n){var r=Va.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function ds(t,e,n){var r=Va.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function fs(t,e,n){var r=Va.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function ps(t,e,n){var r=Va.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function ms(t,e,n){var r=Va.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function gs(t,e,n){var r=Va.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function ys(t,e,n){var r=Va.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function bs(t,e,n){var r=Va.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function _s(t,e,n){var r=Ja.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function xs(t,e,n){var r=Va.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Cs(t,e,n){var r=Va.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function vs(t,e){return Za(t.getDate(),e,2)}function ws(t,e){return Za(t.getHours(),e,2)}function ks(t,e){return Za(t.getHours()%12||12,e,2)}function Ts(t,e){return Za(1+pa.count($a(t),t),e,3)}function Ss(t,e){return Za(t.getMilliseconds(),e,3)}function Ks(t,e){return Ss(t,e)+"000"}function As(t,e){return Za(t.getMonth()+1,e,2)}function Bs(t,e){return Za(t.getMinutes(),e,2)}function Fs(t,e){return Za(t.getSeconds(),e,2)}function Es(t){var e=t.getDay();return 0===e?7:e}function Ls(t,e){return Za(ba.count($a(t)-1,t),e,2)}function Ms(t){var e=t.getDay();return e>=4||0===e?va(t):va.ceil(t)}function Os(t,e){return t=Ms(t),Za(va.count($a(t),t)+(4===$a(t).getDay()),e,2)}function $s(t){return t.getDay()}function Is(t,e){return Za(_a.count($a(t)-1,t),e,2)}function Ds(t,e){return Za(t.getFullYear()%100,e,2)}function Ns(t,e){return Za((t=Ms(t)).getFullYear()%100,e,2)}function Ps(t,e){return Za(t.getFullYear()%1e4,e,4)}function js(t,e){var n=t.getDay();return Za((t=n>=4||0===n?va(t):va.ceil(t)).getFullYear()%1e4,e,4)}function zs(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Za(e/60|0,"0",2)+Za(e%60,"0",2)}function qs(t,e){return Za(t.getUTCDate(),e,2)}function Rs(t,e){return Za(t.getUTCHours(),e,2)}function Ws(t,e){return Za(t.getUTCHours()%12||12,e,2)}function Us(t,e){return Za(1+ma.count(Ia(t),t),e,3)}function Hs(t,e){return Za(t.getUTCMilliseconds(),e,3)}function Ys(t,e){return Hs(t,e)+"000"}function Gs(t,e){return Za(t.getUTCMonth()+1,e,2)}function Vs(t,e){return Za(t.getUTCMinutes(),e,2)}function Js(t,e){return Za(t.getUTCSeconds(),e,2)}function Xs(t){var e=t.getUTCDay();return 0===e?7:e}function Zs(t,e){return Za(Sa.count(Ia(t)-1,t),e,2)}function Qs(t){var e=t.getUTCDay();return e>=4||0===e?Fa(t):Fa.ceil(t)}function tu(t,e){return t=Qs(t),Za(Fa.count(Ia(t),t)+(4===Ia(t).getUTCDay()),e,2)}function eu(t){return t.getUTCDay()}function nu(t,e){return Za(Ka.count(Ia(t)-1,t),e,2)}function ru(t,e){return Za(t.getUTCFullYear()%100,e,2)}function lu(t,e){return Za((t=Qs(t)).getUTCFullYear()%100,e,2)}function iu(t,e){return Za(t.getUTCFullYear()%1e4,e,4)}function ou(t,e){var n=t.getUTCDay();return Za((t=n>=4||0===n?Fa(t):Fa.ceil(t)).getUTCFullYear()%1e4,e,4)}function au(){return"+0000"}function su(){return"%"}function uu(t){return+t}function cu(t){return Math.floor(+t/1e3)}function hu(t){return Ha=Ua(t),Ya=Ha.format,Ha.parse,Ha.utcFormat,Ha.utcParse,Ha}function du(t,e){var n,r=0,l=(t=t.slice()).length-1,i=t[r],o=t[l];return o1?0:t<-1?Bu:Math.acos(t)}function Mu(t){return t>=1?Fu:t<=-1?-Fu:Math.asin(t)}(0,r.K2)(Lu,"acos"),(0,r.K2)(Mu,"asin");var Ou=Math.PI,$u=2*Ou,Iu=1e-6,Du=$u-Iu;function Nu(t){this._+=t[0];for(let e=1,n=t.length;e=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Nu;const n=10**e;return function(t){this._+=t[0];for(let e=1,r=t.length;eIu)if(Math.abs(c*a-s*u)>Iu&&l){let d=n-i,f=r-o,p=a*a+s*s,m=d*d+f*f,g=Math.sqrt(p),y=Math.sqrt(h),b=l*Math.tan((Ou-Math.acos((p+h-m)/(2*g*y)))/2),_=b/y,x=b/g;Math.abs(_-1)>Iu&&this._append`L${t+_*u},${e+_*c}`,this._append`A${l},${l},0,0,${+(c*d>u*f)},${this._x1=t+x*a},${this._y1=e+x*s}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,n,r,l,i){if(t=+t,e=+e,i=!!i,(n=+n)<0)throw new Error(`negative radius: ${n}`);let o=n*Math.cos(r),a=n*Math.sin(r),s=t+o,u=e+a,c=1^i,h=i?r-l:l-r;null===this._x1?this._append`M${s},${u}`:(Math.abs(this._x1-s)>Iu||Math.abs(this._y1-u)>Iu)&&this._append`L${s},${u}`,n&&(h<0&&(h=h%$u+$u),h>Du?this._append`A${n},${n},0,1,${c},${t-o},${e-a}A${n},${n},0,1,${c},${this._x1=s},${this._y1=u}`:h>Iu&&this._append`A${n},${n},0,${+(h>=Ou)},${c},${this._x1=t+n*Math.cos(l)},${this._y1=e+n*Math.sin(l)}`)}rect(t,e,n,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};function zu(){return new ju}function qu(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(null==n)e=null;else{const t=Math.floor(n);if(!(t>=0))throw new RangeError(`invalid digits: ${n}`);e=t}return t},()=>new ju(e)}function Ru(t){return t.innerRadius}function Wu(t){return t.outerRadius}function Uu(t){return t.startAngle}function Hu(t){return t.endAngle}function Yu(t){return t&&t.padAngle}function Gu(t,e,n,r,l,i,o,a){var s=n-t,u=r-e,c=o-l,h=a-i,d=h*s-c*u;if(!(d*dF*F+E*E&&(k=S,T=K),{cx:k,cy:T,x01:-c,y01:-h,x11:k*(l/C-1),y11:T*(l/C-1)}}function Ju(){var t=Ru,e=Wu,n=xu(0),l=null,i=Uu,o=Hu,a=Yu,s=null,u=qu(c);function c(){var r,c,h=+t.apply(this,arguments),d=+e.apply(this,arguments),f=i.apply(this,arguments)-Fu,p=o.apply(this,arguments)-Fu,m=Cu(p-f),g=p>f;if(s||(s=r=u()),dAu)if(m>Eu-Au)s.moveTo(d*wu(f),d*Su(f)),s.arc(0,0,d,f,p,!g),h>Au&&(s.moveTo(h*wu(p),h*Su(p)),s.arc(0,0,h,p,f,g));else{var y,b,_=f,x=p,C=f,v=p,w=m,k=m,T=a.apply(this,arguments)/2,S=T>Au&&(l?+l.apply(this,arguments):Ku(h*h+d*d)),K=Tu(Cu(d-h)/2,+n.apply(this,arguments)),A=K,B=K;if(S>Au){var F=Mu(S/h*Su(T)),E=Mu(S/d*Su(T));(w-=2*F)>Au?(C+=F*=g?1:-1,v-=F):(w=0,C=v=(f+p)/2),(k-=2*E)>Au?(_+=E*=g?1:-1,x-=E):(k=0,_=x=(f+p)/2)}var L=d*wu(_),M=d*Su(_),O=h*wu(v),$=h*Su(v);if(K>Au){var I,D=d*wu(x),N=d*Su(x),P=h*wu(C),j=h*Su(C);if(mAu?B>Au?(y=Vu(P,j,L,M,d,B,g),b=Vu(D,N,O,$,d,B,g),s.moveTo(y.cx+y.x01,y.cy+y.y01),BAu&&w>Au?A>Au?(y=Vu(O,$,D,N,h,-A,g),b=Vu(L,M,P,j,h,-A,g),s.lineTo(y.cx+y.x01,y.cy+y.y01),At?1:e>=t?0:NaN}function lc(t){return t}function ic(){var t=lc,e=rc,n=null,l=xu(0),i=xu(Eu),o=xu(0);function a(r){var a,s,u,c,h,d=(r=Qu(r)).length,f=0,p=new Array(d),m=new Array(d),g=+l.apply(this,arguments),y=Math.min(Eu,Math.max(-Eu,i.apply(this,arguments)-g)),b=Math.min(Math.abs(y)/d,o.apply(this,arguments)),_=b*(y<0?-1:1);for(a=0;a0&&(f+=h);for(null!=e?p.sort((function(t,n){return e(m[t],m[n])})):null!=n&&p.sort((function(t,e){return n(r[t],r[e])})),a=0,u=f?(y-d*_)/f:0;a0?h*u:0)+_,m[s]={data:r[s],index:a,value:h,startAngle:g,endAngle:c,padAngle:b};return m}return(0,r.K2)(a,"pie"),a.value=function(e){return arguments.length?(t="function"==typeof e?e:xu(+e),a):t},a.sortValues=function(t){return arguments.length?(e=t,n=null,a):e},a.sort=function(t){return arguments.length?(n=t,e=null,a):n},a.startAngle=function(t){return arguments.length?(l="function"==typeof t?t:xu(+t),a):l},a.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:xu(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:xu(+t),a):o},a}(0,r.K2)(zu,"path"),zu.prototype=ju.prototype,(0,r.K2)(qu,"withPath"),(0,r.K2)(Ru,"arcInnerRadius"),(0,r.K2)(Wu,"arcOuterRadius"),(0,r.K2)(Uu,"arcStartAngle"),(0,r.K2)(Hu,"arcEndAngle"),(0,r.K2)(Yu,"arcPadAngle"),(0,r.K2)(Gu,"intersect"),(0,r.K2)(Vu,"cornerTangents"),(0,r.K2)(Ju,"default"),(0,r.K2)(Xu,"Linear"),Xu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},(0,r.K2)(Zu,"default"),Array.prototype.slice,(0,r.K2)(Qu,"default"),(0,r.K2)(tc,"x"),(0,r.K2)(ec,"y"),(0,r.K2)(nc,"default"),(0,r.K2)(rc,"default"),(0,r.K2)(lc,"default"),(0,r.K2)(ic,"default");var oc=class{static{(0,r.K2)(this,"Bump")}constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}};function ac(t){return new oc(t,!0)}function sc(t){return new oc(t,!1)}function uc(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function cc(t){this._context=t}function hc(t){return new cc(t)}function dc(){}function fc(t){this._context=t}function pc(t){return new fc(t)}function mc(t){this._context=t}function gc(t){return new mc(t)}function yc(t,e){this._basis=new cc(t),this._beta=e}(0,r.K2)(ac,"bumpX"),(0,r.K2)(sc,"bumpY"),(0,r.K2)(uc,"point"),(0,r.K2)(cc,"Basis"),cc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:uc(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:uc(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},(0,r.K2)(hc,"default"),(0,r.K2)(dc,"default"),(0,r.K2)(fc,"BasisClosed"),fc.prototype={areaStart:dc,areaEnd:dc,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:uc(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},(0,r.K2)(pc,"default"),(0,r.K2)(mc,"BasisOpen"),mc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:uc(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},(0,r.K2)(gc,"default"),(0,r.K2)(yc,"Bundle"),yc.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,l=t[0],i=e[0],o=t[n]-l,a=e[n]-i,s=-1;++s<=n;)r=s/n,this._basis.point(this._beta*t[s]+(1-this._beta)*(l+r*o),this._beta*e[s]+(1-this._beta)*(i+r*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var bc=(0,r.K2)((function t(e){function n(t){return 1===e?new cc(t):new yc(t,e)}return(0,r.K2)(n,"bundle"),n.beta=function(e){return t(+e)},n}),"custom")(.85);function _c(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function xc(t,e){this._context=t,this._k=(1-e)/6}(0,r.K2)(_c,"point"),(0,r.K2)(xc,"Cardinal"),xc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:_c(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:_c(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Cc=(0,r.K2)((function t(e){function n(t){return new xc(t,e)}return(0,r.K2)(n,"cardinal"),n.tension=function(e){return t(+e)},n}),"custom")(0);function vc(t,e){this._context=t,this._k=(1-e)/6}(0,r.K2)(vc,"CardinalClosed"),vc.prototype={areaStart:dc,areaEnd:dc,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:_c(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var wc=(0,r.K2)((function t(e){function n(t){return new vc(t,e)}return(0,r.K2)(n,"cardinal"),n.tension=function(e){return t(+e)},n}),"custom")(0);function kc(t,e){this._context=t,this._k=(1-e)/6}(0,r.K2)(kc,"CardinalOpen"),kc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:_c(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Tc=(0,r.K2)((function t(e){function n(t){return new kc(t,e)}return(0,r.K2)(n,"cardinal"),n.tension=function(e){return t(+e)},n}),"custom")(0);function Sc(t,e,n){var r=t._x1,l=t._y1,i=t._x2,o=t._y2;if(t._l01_a>Au){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,s=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/s,l=(l*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/s}if(t._l23_a>Au){var u=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,c=3*t._l23_a*(t._l23_a+t._l12_a);i=(i*u+t._x1*t._l23_2a-e*t._l12_2a)/c,o=(o*u+t._y1*t._l23_2a-n*t._l12_2a)/c}t._context.bezierCurveTo(r,l,i,o,t._x2,t._y2)}function Kc(t,e){this._context=t,this._alpha=e}(0,r.K2)(Sc,"point"),(0,r.K2)(Kc,"CatmullRom"),Kc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Sc(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Ac=(0,r.K2)((function t(e){function n(t){return e?new Kc(t,e):new xc(t,0)}return(0,r.K2)(n,"catmullRom"),n.alpha=function(e){return t(+e)},n}),"custom")(.5);function Bc(t,e){this._context=t,this._alpha=e}(0,r.K2)(Bc,"CatmullRomClosed"),Bc.prototype={areaStart:dc,areaEnd:dc,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Sc(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Fc=(0,r.K2)((function t(e){function n(t){return e?new Bc(t,e):new vc(t,0)}return(0,r.K2)(n,"catmullRom"),n.alpha=function(e){return t(+e)},n}),"custom")(.5);function Ec(t,e){this._context=t,this._alpha=e}(0,r.K2)(Ec,"CatmullRomOpen"),Ec.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Sc(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Lc=(0,r.K2)((function t(e){function n(t){return e?new Ec(t,e):new kc(t,0)}return(0,r.K2)(n,"catmullRom"),n.alpha=function(e){return t(+e)},n}),"custom")(.5);function Mc(t){this._context=t}function Oc(t){return new Mc(t)}function $c(t){return t<0?-1:1}function Ic(t,e,n){var r=t._x1-t._x0,l=e-t._x1,i=(t._y1-t._y0)/(r||l<0&&-0),o=(n-t._y1)/(l||r<0&&-0),a=(i*l+o*r)/(r+l);return($c(i)+$c(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(a))||0}function Dc(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Nc(t,e,n){var r=t._x0,l=t._y0,i=t._x1,o=t._y1,a=(i-r)/3;t._context.bezierCurveTo(r+a,l+a*e,i-a,o-a*n,i,o)}function Pc(t){this._context=t}function jc(t){this._context=new zc(t)}function zc(t){this._context=t}function qc(t){return new Pc(t)}function Rc(t){return new jc(t)}function Wc(t){this._context=t}function Uc(t){var e,n,r=t.length-1,l=new Array(r),i=new Array(r),o=new Array(r);for(l[0]=0,i[0]=2,o[0]=t[0]+2*t[1],e=1;e=0;--e)l[e]=(o[e]-l[e+1])/i[e];for(i[r-1]=(t[r]+l[r-1])/2,e=0;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}},(0,r.K2)(Gc,"default"),(0,r.K2)(Vc,"stepBefore"),(0,r.K2)(Jc,"stepAfter");var Xc={value:()=>{}};function Zc(){for(var t,e=0,n=arguments.length,r={};e=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function eh(t,e){for(var n,r=0,l=t.length;r0)for(var n,r,l=new Array(n),i=0;i=0&&e._call.call(void 0,t),e=e._next;--oh}function xh(){hh=(ch=fh.now())+dh,oh=ah=0;try{_h()}finally{oh=0,vh(),hh=0}}function Ch(){var t=fh.now(),e=t-ch;e>uh&&(dh-=e,ch=t)}function vh(){for(var t,e,n=rh,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:rh=e);lh=t,wh(r)}function wh(t){oh||(ah&&(ah=clearTimeout(ah)),t-hh>24?(t<1/0&&(ah=setTimeout(xh,t-fh.now()-dh)),sh&&(sh=clearInterval(sh))):(sh||(ch=fh.now(),sh=setInterval(Ch,uh)),oh=1,ph(xh)))}function kh(t,e,n){var r=new yh;return e=null==e?0:+e,r.restart((n=>{r.stop(),t(n+e)}),e,n),r}(0,r.K2)(mh,"now"),(0,r.K2)(gh,"clearNow"),(0,r.K2)(yh,"Timer"),yh.prototype=bh.prototype={constructor:yh,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?mh():+n)+(null==e?0:+e),this._next||lh===this||(lh?lh._next=this:rh=this,lh=this),this._call=t,this._time=n,wh()},stop:function(){this._call&&(this._call=null,this._time=1/0,wh())}},(0,r.K2)(bh,"timer"),(0,r.K2)(_h,"timerFlush"),(0,r.K2)(xh,"wake"),(0,r.K2)(Ch,"poke"),(0,r.K2)(vh,"nap"),(0,r.K2)(wh,"sleep"),(0,r.K2)(kh,"default");var Th=ih("start","end","cancel","interrupt"),Sh=[],Kh=0,Ah=1,Bh=2,Fh=3,Eh=4,Lh=5,Mh=6;function Oh(t,e,n,r,l,i){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};Nh(t,n,{name:e,index:r,group:l,on:Th,tween:Sh,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:Kh})}function $h(t,e){var n=Dh(t,e);if(n.state>Kh)throw new Error("too late; already scheduled");return n}function Ih(t,e){var n=Dh(t,e);if(n.state>Fh)throw new Error("too late; already running");return n}function Dh(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Nh(t,e,n){var l,i=t.__transition;function o(t){n.state=Ah,n.timer.restart(a,n.delay,n.time),n.delay<=t&&a(t-n.delay)}function a(r){var o,c,h,d;if(n.state!==Ah)return u();for(o in i)if((d=i[o]).name===n.name){if(d.state===Fh)return kh(a);d.state===Eh?(d.state=Mh,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete i[o]):+oBh&&n.state=0&&(t=t.slice(0,e)),!t||"start"===t}))}function yd(t,e,n){var r,l,i=gd(e)?$h:Ih;return function(){var o=i(this,t),a=o.on;a!==r&&(l=(r=a).copy()).on(e,n),o.on=l}}function bd(t,e){var n=this._id;return arguments.length<2?Dh(this.node(),n).on.on(t):this.each(yd(n,t,e))}function _d(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function xd(){return this.on("end.remove",_d(this._id))}function Cd(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=kn(t));for(var r=this._groups,l=r.length,i=new Array(l),o=0;orf(e,n).then((e=>(new DOMParser).parseFromString(e,t)))}(0,r.K2)(tf,"number1"),(0,r.K2)((function(t){return[tf(t[0]),tf(t[1])]}),"number2"),["w","e"].map(ef),["n","s"].map(ef),["n","w","e","s","nw","ne","sw","se"].map(ef),(0,r.K2)(ef,"type"),(0,r.K2)(nf,"responseText"),(0,r.K2)(rf,"default"),(0,r.K2)(lf,"parser"),lf("application/xml"),lf("text/html");var of=lf("image/svg+xml");function af(t,e,n){this.k=t,this.x=e,this.y=n}(0,r.K2)(af,"Transform"),af.prototype={constructor:af,scale:function(t){return 1===t?this:new af(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new af(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var sf=new af(1,0,0);function uf(t){for(;!t.__zoom;)if(!(t=t.parentNode))return sf;return t.__zoom}uf.prototype=af.prototype,(0,r.K2)(uf,"transform")},5070:(t,e,n)=>{"use strict";n.d(e,{F:()=>i});var r=n(6009),l=(0,r.P$)({"../../node_modules/.pnpm/@braintree+sanitize-url@7.0.1/node_modules/@braintree/sanitize-url/dist/constants.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.BLANK_URL=t.relativeFirstCharacters=t.urlSchemeRegex=t.ctrlCharactersRegex=t.htmlCtrlEntityRegex=t.htmlEntitiesRegex=t.invalidProtocolRegex=void 0,t.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,t.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,t.htmlCtrlEntityRegex=/&(newline|tab);/gi,t.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,t.urlSchemeRegex=/^.+(:|:)/gim,t.relativeFirstCharacters=[".","/"],t.BLANK_URL="about:blank"}}),i=(0,r.P$)({"../../node_modules/.pnpm/@braintree+sanitize-url@7.0.1/node_modules/@braintree/sanitize-url/dist/index.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.sanitizeUrl=void 0;var e=l();function n(t){return e.relativeFirstCharacters.indexOf(t[0])>-1}function i(t){return t.replace(e.ctrlCharactersRegex,"").replace(e.htmlEntitiesRegex,(function(t,e){return String.fromCharCode(e)}))}function o(t){if(!t)return e.BLANK_URL;var r,l=t;do{r=(l=i(l).replace(e.htmlCtrlEntityRegex,"").replace(e.ctrlCharactersRegex,"").trim()).match(e.ctrlCharactersRegex)||l.match(e.htmlEntitiesRegex)||l.match(e.htmlCtrlEntityRegex)}while(r&&r.length>0);var o=l;if(!o)return e.BLANK_URL;if(n(o))return o;var a=o.match(e.urlSchemeRegex);if(!a)return o;var s=a[0];return e.invalidProtocolRegex.test(s)?e.BLANK_URL:o}(0,r.K2)(n,"isRelativeUrlWithoutProtocol"),(0,r.K2)(i,"decodeHtmlCharacters"),(0,r.K2)(o,"sanitizeUrl"),t.sanitizeUrl=o}})},6009:(t,e,n)=>{"use strict";n.d(e,{K2:()=>u,P$:()=>c,VA:()=>h,f1:()=>p,ie:()=>f});var r=Object.create,l=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,u=(t,e)=>l(t,"name",{value:e,configurable:!0}),c=(t,e)=>function(){return e||(0,t[o(t)[0]])((e={exports:{}}).exports,e),e.exports},h=(t,e)=>{for(var n in e)l(t,n,{get:e[n],enumerable:!0})},d=(t,e,n,r)=>{if(e&&"object"==typeof e||"function"==typeof e)for(let a of o(e))s.call(t,a)||a===n||l(t,a,{get:()=>e[a],enumerable:!(r=i(e,a))||r.enumerable});return t},f=(t,e,n)=>(d(t,e,"default"),n&&d(n,e,"default")),p=(t,e,n)=>(n=null!=t?r(a(t)):{},d(!e&&t&&t.__esModule?n:l(n,"default",{value:t,enumerable:!0}),t))},57:(t,e,n)=>{"use strict";n.d(e,{$C:()=>K,$t:()=>R,C4:()=>U,I5:()=>q,Ib:()=>m,Sm:()=>H,Un:()=>$,_K:()=>W,bH:()=>L,dq:()=>j,pe:()=>s,rY:()=>Y,ru:()=>O,sM:()=>T,vU:()=>f,yT:()=>B});var r=n(5070),l=n(772),i=n(8605),o=n(6009),a=(0,o.f1)((0,r.F)(),1),s="​",u={curveBasis:l.J1,curveBasisClosed:l.h$,curveBasisOpen:l.Bp,curveBumpX:l.dJ,curveBumpY:l.kl,curveBundle:l.D6,curveCardinalClosed:l.jU,curveCardinalOpen:l.Jj,curveCardinal:l.Jp,curveCatmullRomClosed:l.J9,curveCatmullRomOpen:l.Jl,curveCatmullRom:l.NN,curveLinear:l.AS,curveLinearClosed:l.yF,curveMonotoneX:l.Gh,curveMonotoneY:l.Nk,curveNatural:l.Y7,curveStep:l.z1,curveStepAfter:l.Ps,curveStepBefore:l.Ko},c=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,h=(0,o.K2)((function(t,e){const n=d(t,/(?:init\b)|(?:initialize\b)/);let r={};if(Array.isArray(n)){const t=n.map((t=>t.args));(0,l.$i)(t),r=(0,l.hH)(r,[...t])}else r=n.args;if(!r)return;let i=(0,l.Ch)(t,e);const o="config";return void 0!==r[o]&&("flowchart-v2"===i&&(i="flowchart"),r[i]=r[o],delete r[o]),r}),"detectInit"),d=(0,o.K2)((function(t,e=null){try{const n=new RegExp(`[%]{2}(?![{]${c.source})(?=[}][%]{2}).*\n`,"ig");let r;t=t.trim().replace(n,"").replace(/'/gm,'"'),l.Rm.debug(`Detecting diagram directive${null!==e?" type:"+e:""} based on the text:${t}`);const i=[];for(;null!==(r=l.DB.exec(t));)if(r.index===l.DB.lastIndex&&l.DB.lastIndex++,r&&!e||e&&r[1]&&r[1].match(e)||e&&r[2]&&r[2].match(e)){const t=r[1]?r[1]:r[2],e=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;i.push({type:t,args:e})}return 0===i.length?{type:t,args:null}:1===i.length?i[0]:i}catch(n){return l.Rm.error(`ERROR: ${n.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}}),"detectDirective"),f=(0,o.K2)((function(t){return t.replace(l.DB,"")}),"removeDirectives"),p=(0,o.K2)((function(t,e){for(const[n,r]of e.entries())if(r.match(t))return n;return-1}),"isSubstringInArray");function m(t,e){if(!t)return e;const n=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return u[n]??e}function g(t,e){const n=t.trim();if(n)return"loose"!==e.securityLevel?(0,a.sanitizeUrl)(n):n}(0,o.K2)(m,"interpolateToCurve"),(0,o.K2)(g,"formatUrl");var y=(0,o.K2)(((t,...e)=>{const n=t.split("."),r=n.length-1,i=n[r];let o=window;for(let e=0;e{n+=b(t,e),e=t})),v(t,n/2)}function x(t){return 1===t.length?t[0]:_(t)}(0,o.K2)(b,"distance"),(0,o.K2)(_,"traverseEdge"),(0,o.K2)(x,"calcLabelPosition");var C=(0,o.K2)(((t,e=2)=>{const n=Math.pow(10,e);return Math.round(t*n)/n}),"roundNumber"),v=(0,o.K2)(((t,e)=>{let n,r=e;for(const e of t){if(n){const t=b(e,n);if(t=1)return{x:e.x,y:e.y};if(l>0&&l<1)return{x:C((1-l)*n.x+l*e.x,5),y:C((1-l)*n.y+l*e.y,5)}}}n=e}throw new Error("Could not find a suitable point for the given distance")}),"calculatePoint"),w=(0,o.K2)(((t,e,n)=>{l.Rm.info(`our points ${JSON.stringify(e)}`),e[0]!==n&&(e=e.reverse());const r=v(e,25),i=t?10:5,o=Math.atan2(e[0].y-r.y,e[0].x-r.x),a={x:0,y:0};return a.x=Math.sin(o)*i+(e[0].x+r.x)/2,a.y=-Math.cos(o)*i+(e[0].y+r.y)/2,a}),"calcCardinalityPosition");function k(t,e,n){const r=structuredClone(n);l.Rm.info("our points",r),"start_left"!==e&&"start_right"!==e&&r.reverse();const i=v(r,25+t),o=10+.5*t,a=Math.atan2(r[0].y-i.y,r[0].x-i.x),s={x:0,y:0};return"start_left"===e?(s.x=Math.sin(a+Math.PI)*o+(r[0].x+i.x)/2,s.y=-Math.cos(a+Math.PI)*o+(r[0].y+i.y)/2):"end_right"===e?(s.x=Math.sin(a-Math.PI)*o+(r[0].x+i.x)/2-5,s.y=-Math.cos(a-Math.PI)*o+(r[0].y+i.y)/2-5):"end_left"===e?(s.x=Math.sin(a)*o+(r[0].x+i.x)/2-5,s.y=-Math.cos(a)*o+(r[0].y+i.y)/2-5):(s.x=Math.sin(a)*o+(r[0].x+i.x)/2,s.y=-Math.cos(a)*o+(r[0].y+i.y)/2),s}function T(t){let e="",n="";for(const r of t)void 0!==r&&(r.startsWith("color:")||r.startsWith("text-align:")?n=n+r+";":e=e+r+";");return{style:e,labelStyle:n}}(0,o.K2)(k,"calcTerminalLabelPosition"),(0,o.K2)(T,"getStylesFromArray");var S=0,K=(0,o.K2)((()=>(S++,"id-"+Math.random().toString(36).substr(2,12)+"-"+S)),"generateId");function A(t){let e="";for(let n=0;nA(t.length)),"random"),F=(0,o.K2)((function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}}),"getTextObj"),E=(0,o.K2)((function(t,e){const n=e.text.replace(l.Y2.lineBreakRegex," "),[,r]=q(e.fontSize),i=t.append("text");i.attr("x",e.x),i.attr("y",e.y),i.style("text-anchor",e.anchor),i.style("font-family",e.fontFamily),i.style("font-size",r),i.style("font-weight",e.fontWeight),i.attr("fill",e.fill),void 0!==e.class&&i.attr("class",e.class);const o=i.append("tspan");return o.attr("x",e.x+2*e.textMargin),o.attr("fill",e.fill),o.text(n),i}),"drawSimpleText"),L=(0,i.Dr)(((t,e,n)=>{if(!t)return t;if(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
"},n),l.Y2.lineBreakRegex.test(t))return t;const r=t.split(" "),i=[];let o="";return r.forEach(((t,l)=>{const a=$(`${t} `,n),s=$(o,n);if(a>e){const{hyphenatedStrings:r,remainingWord:l}=M(t,e,"-",n);i.push(o,...r),o=l}else s+a>=e?(i.push(o),o=t):o=[o,t].filter(Boolean).join(" ");l+1===r.length&&i.push(o)})),i.filter((t=>""!==t)).join(n.joinWith)}),((t,e,n)=>`${t}${e}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`)),M=(0,i.Dr)(((t,e,n="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const l=[...t],i=[];let o="";return l.forEach(((t,a)=>{const s=`${o}${t}`;if($(s,r)>=e){const t=a+1,e=l.length===t,r=`${s}${n}`;i.push(e?s:r),o=""}else o=s})),{hyphenatedStrings:i,remainingWord:o}}),((t,e,n="-",r)=>`${t}${e}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`));function O(t,e){return D(t,e).height}function $(t,e){return D(t,e).width}(0,o.K2)(O,"calculateTextHeight"),(0,o.K2)($,"calculateTextWidth");var I,D=(0,i.Dr)(((t,e)=>{const{fontSize:n=12,fontFamily:r="Arial",fontWeight:i=400}=e;if(!t)return{width:0,height:0};const[,o]=q(n),a=["sans-serif",r],u=t.split(l.Y2.lineBreakRegex),c=[],h=(0,l.df)("body");if(!h.remove)return{width:0,height:0,lineHeight:0};const d=h.append("svg");for(const t of a){let e=0;const n={width:0,height:0,lineHeight:0};for(const r of u){const l=F();l.text=r||s;const a=E(d,l).style("font-size",o).style("font-weight",i).style("font-family",t),u=(a._groups||a)[0][0].getBBox();if(0===u.width&&0===u.height)throw new Error("svg element not in render tree");n.width=Math.round(Math.max(n.width,u.width)),e=Math.round(u.height),n.height+=e,n.lineHeight=Math.round(Math.max(n.lineHeight,e))}c.push(n)}return d.remove(),c[isNaN(c[1].height)||isNaN(c[1].width)||isNaN(c[1].lineHeight)||c[0].height>c[1].height&&c[0].width>c[1].width&&c[0].lineHeight>c[1].lineHeight?0:1]}),((t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`)),N=class{constructor(t=!1,e){this.count=0,this.count=e?e.length:0,this.next=t?()=>this.count++:()=>Date.now()}static{(0,o.K2)(this,"InitIDGenerator")}},P=(0,o.K2)((function(t){return I=I||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),I.innerHTML=t,unescape(I.textContent)}),"entityDecode");function j(t){return"str"in t}(0,o.K2)(j,"isDetailedError");var z=(0,o.K2)(((t,e,n,r)=>{if(!r)return;const l=t.node()?.getBBox();l&&t.append("text").text(r).attr("x",l.x+l.width/2).attr("y",-n).attr("class",e)}),"insertTitle"),q=(0,o.K2)((t=>{if("number"==typeof t)return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]}),"parseFontSize");function R(t,e){return(0,i.ds)({},t,e)}(0,o.K2)(R,"cleanAndMerge");var W={assignWithDepth:l.hH,wrapLabel:L,calculateTextHeight:O,calculateTextWidth:$,calculateTextDimensions:D,cleanAndMerge:R,detectInit:h,detectDirective:d,isSubstringInArray:p,interpolateToCurve:m,calcLabelPosition:x,calcCardinalityPosition:w,calcTerminalLabelPosition:k,formatUrl:g,getStylesFromArray:T,generateId:K,random:B,runFunc:y,entityDecode:P,insertTitle:z,parseFontSize:q,InitIDGenerator:N},U=(0,o.K2)((function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,(function(t){return t.substring(0,t.length-1)})),e=e.replace(/classDef.*:\S*#.*;/g,(function(t){return t.substring(0,t.length-1)})),e=e.replace(/#\w+;/g,(function(t){const e=t.substring(1,t.length-1);return/^\+?\d+$/.test(e)?"fl°°"+e+"¶ß":"fl°"+e+"¶ß"})),e}),"encodeEntities"),H=(0,o.K2)((function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")}),"decodeEntities"),Y=(0,o.K2)(((t,e,{counter:n=0,prefix:r,suffix:l})=>`${r?`${r}_`:""}${t}_${e}_${n}${l?`_${l}`:""}`),"getEdgeId")},8605:(t,e,n)=>{"use strict";n.d(e,{$q:()=>E,A$:()=>ee,A6:()=>nn,Bx:()=>Fe,DA:()=>o,Dr:()=>jt,EE:()=>de,FX:()=>Vn,GT:()=>_,HI:()=>Se,JH:()=>_n,KO:()=>rr,M$:()=>Re,NJ:()=>Bn,NY:()=>Ve,Nc:()=>we,Ni:()=>Ae,On:()=>R,T1:()=>ge,Th:()=>Ie,To:()=>ve,Wg:()=>In,Yi:()=>ir,_$:()=>he,_i:()=>De,aB:()=>pn,bT:()=>sn,bt:()=>Wn,dZ:()=>dn,ds:()=>sr,ii:()=>C,jL:()=>er,jk:()=>a,l1:()=>Pe,l7:()=>pe,lI:()=>Zt,lr:()=>ze,nD:()=>ar,nJ:()=>ie,nO:()=>be,pI:()=>st,pP:()=>Nt,pp:()=>Xn,uQ:()=>Sn,vX:()=>Cn,zI:()=>vt,zw:()=>k});var r=n(6009),l="object"==typeof global&&global&&global.Object===Object&&global,i="object"==typeof self&&self&&self.Object===Object&&self,o=l||i||Function("return this")(),a=o.Symbol,s=Object.prototype,u=s.hasOwnProperty,c=s.toString,h=a?a.toStringTag:void 0;function d(t){var e=u.call(t,h),n=t[h];try{t[h]=void 0;var r=!0}catch(t){}var l=c.call(t);return r&&(e?t[h]=n:delete t[h]),l}(0,r.K2)(d,"getRawTag");var f=d,p=Object.prototype.toString;function m(t){return p.call(t)}(0,r.K2)(m,"objectToString");var g=m,y=a?a.toStringTag:void 0;function b(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":y&&y in Object(t)?f(t):g(t)}(0,r.K2)(b,"baseGetTag");var _=b;function x(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}(0,r.K2)(x,"isObject");var C=x;function v(t){if(!C(t))return!1;var e=_(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}(0,r.K2)(v,"isFunction");var w,k=v,T=o["__core-js_shared__"],S=(w=/[^.]+$/.exec(T&&T.keys&&T.keys.IE_PROTO||""))?"Symbol(src)_1."+w:"";function K(t){return!!S&&S in t}(0,r.K2)(K,"isMasked");var A=K,B=Function.prototype.toString;function F(t){if(null!=t){try{return B.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(0,r.K2)(F,"toSource");var E=F,L=/^\[object .+?Constructor\]$/,M=Function.prototype,O=Object.prototype,$=M.toString,I=O.hasOwnProperty,D=RegExp("^"+$.call(I).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function N(t){return!(!C(t)||A(t))&&(k(t)?D:L).test(E(t))}(0,r.K2)(N,"baseIsNative");var P=N;function j(t,e){return null==t?void 0:t[e]}(0,r.K2)(j,"getValue");var z=j;function q(t,e){var n=z(t,e);return P(n)?n:void 0}(0,r.K2)(q,"getNative");var R=q,W=R(Object,"create");function U(){this.__data__=W?W(null):{},this.size=0}(0,r.K2)(U,"hashClear");var H=U;function Y(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}(0,r.K2)(Y,"hashDelete");var G=Y,V=Object.prototype.hasOwnProperty;function J(t){var e=this.__data__;if(W){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return V.call(e,t)?e[t]:void 0}(0,r.K2)(J,"hashGet");var X=J,Z=Object.prototype.hasOwnProperty;function Q(t){var e=this.__data__;return W?void 0!==e[t]:Z.call(e,t)}(0,r.K2)(Q,"hashHas");var tt=Q;function et(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=W&&void 0===e?"__lodash_hash_undefined__":e,this}(0,r.K2)(et,"hashSet");var nt=et;function rt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1}(0,r.K2)(gt,"listCacheHas");var yt=gt;function bt(t,e){var n=this.__data__,r=ct(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}(0,r.K2)(bt,"listCacheSet");var _t=bt;function xt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1&&t%1==0&&t<=9007199254740991}(0,r.K2)(Ne,"isLength");var Pe=Ne;function je(t){return null!=t&&Pe(t.length)&&!k(t)}(0,r.K2)(je,"isArrayLike");var ze=je;function qe(t){return Fe(t)&&ze(t)}(0,r.K2)(qe,"isArrayLikeObject");var Re=qe;function We(){return!1}(0,r.K2)(We,"stubFalse");var Ue=We,He="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ye=He&&"object"==typeof module&&module&&!module.nodeType&&module,Ge=Ye&&Ye.exports===He?o.Buffer:void 0,Ve=(Ge?Ge.isBuffer:void 0)||Ue,Je=Function.prototype,Xe=Object.prototype,Ze=Je.toString,Qe=Xe.hasOwnProperty,tn=Ze.call(Object);function en(t){if(!Fe(t)||"[object Object]"!=_(t))return!1;var e=we(t);if(null===e)return!0;var n=Qe.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Ze.call(n)==tn}(0,r.K2)(en,"isPlainObject");var nn=en,rn={};function ln(t){return Fe(t)&&Pe(t.length)&&!!rn[_(t)]}rn["[object Float32Array]"]=rn["[object Float64Array]"]=rn["[object Int8Array]"]=rn["[object Int16Array]"]=rn["[object Int32Array]"]=rn["[object Uint8Array]"]=rn["[object Uint8ClampedArray]"]=rn["[object Uint16Array]"]=rn["[object Uint32Array]"]=!0,rn["[object Arguments]"]=rn["[object Array]"]=rn["[object ArrayBuffer]"]=rn["[object Boolean]"]=rn["[object DataView]"]=rn["[object Date]"]=rn["[object Error]"]=rn["[object Function]"]=rn["[object Map]"]=rn["[object Number]"]=rn["[object Object]"]=rn["[object RegExp]"]=rn["[object Set]"]=rn["[object String]"]=rn["[object WeakMap]"]=!1,(0,r.K2)(ln,"baseIsTypedArray");var on=ln;function an(t){return function(e){return t(e)}}(0,r.K2)(an,"baseUnary");var sn=an,un="object"==typeof exports&&exports&&!exports.nodeType&&exports,cn=un&&"object"==typeof module&&module&&!module.nodeType&&module,hn=cn&&cn.exports===un&&l.process,dn=function(){try{return cn&&cn.require&&cn.require("util").types||hn&&hn.binding&&hn.binding("util")}catch(t){}}(),fn=dn&&dn.isTypedArray,pn=fn?sn(fn):on;function mn(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}(0,r.K2)(mn,"safeGet");var gn=mn,yn=Object.prototype.hasOwnProperty;function bn(t,e,n){var r=t[e];yn.call(t,e)&&st(r,n)&&(void 0!==n||e in t)||ee(t,e,n)}(0,r.K2)(bn,"assignValue");var _n=bn;function xn(t,e,n,r){var l=!n;n||(n={});for(var i=-1,o=e.length;++i-1&&t%1==0&&t0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(0,r.K2)(tr,"shortOut");var er=tr(Zn);function nr(t,e){return er(Vn(t,e,Wn),t+"")}(0,r.K2)(nr,"baseRest");var rr=nr;function lr(t,e,n){if(!C(n))return!1;var r=typeof e;return!!("number"==r?ze(n)&&Sn(e,n.length):"string"==r&&e in n)&&st(n[e],t)}(0,r.K2)(lr,"isIterateeCall");var ir=lr;function or(t){return rr((function(e,n){var r=-1,l=n.length,i=l>1?n[l-1]:void 0,o=l>2?n[2]:void 0;for(i=t.length>3&&"function"==typeof i?(l--,i):void 0,o&&ir(n[0],n[1],o)&&(i=l<3?void 0:i,l=1),e=Object(e);++r{"use strict";n.d(e,{r:()=>r});var r="11.0.0-alpha.7"},7484:(t,e,n)=>{"use strict";n.d(e,{n:()=>i});var r=n(1098),l=n(3026);function i(t){const e=new r.Parser(r.Grammar.fromCompiled(l));return e.feed(t),e.results[0]}}},t=>{t.O(0,[3771],(()=>t(t.s=6897))),t.O()}]); \ No newline at end of file