orbitchat 3.10.7 → 3.10.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/dist/assets/{ChartRenderer-9FnwPEBX.js → ChartRenderer-DmEe5ux0.js} +1 -1
- package/dist/assets/MermaidRenderer-BNgxU_bM.js +312 -0
- package/dist/assets/architectureDiagram-3BPJPVTR-Bfi6eFLn.js +36 -0
- package/dist/assets/blockDiagram-GPEHLZMM-C_xOdSW3.js +132 -0
- package/dist/assets/{c4Diagram-LMCZKHZV-BUftbNWY.js → c4Diagram-AAUBKEIU-CfvQYM_q.js} +1 -1
- package/dist/assets/channel-zLwrxaPB.js +1 -0
- package/dist/assets/{chunk-VR4S4FIN-uT68_7rT.js → chunk-2J33WTMH-DeY8TrNw.js} +1 -1
- package/dist/assets/{chunk-JWPE2WC7-BjHi_aEM.js → chunk-4BX2VUAB-DIj3bLrU.js} +1 -1
- package/dist/assets/{chunk-XXDRQBXY-BrvJt-u-.js → chunk-55IACEB6-I4-oEJEd.js} +1 -1
- package/dist/assets/{chunk-V7JOEXUC-hSR6fEWT.js → chunk-727SXJPM-DCx2l0Oh.js} +4 -4
- package/dist/assets/chunk-AQP2D5EJ-D4KlRvHF.js +231 -0
- package/dist/assets/{chunk-5VM5RSS4-CQacO1HV.js → chunk-FMBD7UC4-CqHLqk3L.js} +1 -1
- package/dist/assets/{chunk-32BRIVSS-DnDG740s.js → chunk-ND2GUHAM-CHJjdC0m.js} +1 -1
- package/dist/assets/{chunk-2Q5K7J3B-CdU2Q6YZ.js → chunk-QZHKN3VN-slcsUOxD.js} +1 -1
- package/dist/assets/classDiagram-4FO5ZUOK-CDbYhIhU.js +1 -0
- package/dist/assets/classDiagram-v2-Q7XG4LA2-CDbYhIhU.js +1 -0
- package/dist/assets/{cose-bilkent-JH36ORCC-C0vhiJLV.js → cose-bilkent-S5V4N54A-HnZrIUzr.js} +1 -1
- package/dist/assets/{cynefin-VYW2F7L2-CyM6ijR6.js → cynefin-VYW2F7L2-CPNTSJVR.js} +1 -1
- package/dist/assets/dagre-BM42HDAG-Cl88doFf.js +4 -0
- package/dist/assets/diagram-2AECGRRQ-2lPidS0l.js +43 -0
- package/dist/assets/diagram-5GNKFQAL-_tROgYB3.js +10 -0
- package/dist/assets/{diagram-FQU43EPY-IlESJ0wh.js → diagram-KO2AKTUF-7mueA6fZ.js} +3 -3
- package/dist/assets/{diagram-NH7WQ7WH-B63W-pyC.js → diagram-LMA3HP47-BxKOasa5.js} +2 -2
- package/dist/assets/diagram-OG6HWLK6-Bwf3i6eI.js +24 -0
- package/dist/assets/erDiagram-TEJ5UH35-hortthG_.js +85 -0
- package/dist/assets/flowDiagram-I6XJVG4X-DgvKpDc5.js +162 -0
- package/dist/assets/ganttDiagram-6RSMTGT7-DR5xWqhT.js +292 -0
- package/dist/assets/{gitGraphDiagram-IHSO6WYX-DsT87XU7.js → gitGraphDiagram-PVQCEYII-RJLy0nV8.js} +7 -7
- package/dist/assets/{graph-C9eacEi8.js → graph-CAnANduQ.js} +1 -1
- package/dist/assets/{index-DfypiZL2.js → index-DnyY0OCY.js} +3 -3
- package/dist/assets/{infoDiagram-FWYZ7A6U-CkLm2oOh.js → infoDiagram-5YYISTIA-CdzF2MjL.js} +2 -2
- package/dist/assets/{ishikawaDiagram-FXEZZL3T-BEPnPebm.js → ishikawaDiagram-YF4QCWOH-8YrFferA.js} +5 -5
- package/dist/assets/{journeyDiagram-5HDEW3XC-B3Sx5g-O.js → journeyDiagram-JHISSGLW-Bix7jj_6.js} +1 -1
- package/dist/assets/{kanban-definition-HUTT4EX6-BZwqoKM8.js → kanban-definition-UN3LZRKU-CJP7JJpX.js} +6 -6
- package/dist/assets/layout-DGIYPm2g.js +1 -0
- package/dist/assets/{mindmap-definition-LN4V7U3C-CyjRWos4.js → mindmap-definition-RKZ34NQL-Dk78wf-k.js} +9 -9
- package/dist/assets/pieDiagram-4H26LBE5-DkAjb9PV.js +30 -0
- package/dist/assets/{quadrantDiagram-ABIIQ3AL-DW4gRbec.js → quadrantDiagram-W4KKPZXB-DhA3Ltj3.js} +3 -3
- package/dist/assets/{requirementDiagram-TGXJPOKE-D898qBnU.js → requirementDiagram-4Y6WPE33-BwRKT1Ti.js} +1 -1
- package/dist/assets/sankeyDiagram-5OEKKPKP-Cq7Z3xZr.js +40 -0
- package/dist/assets/sequenceDiagram-3UESZ5HK-IjZb9M7w.js +162 -0
- package/dist/assets/stateDiagram-AJRCARHV-CbH0JxsR.js +1 -0
- package/dist/assets/stateDiagram-v2-BHNVJYJU-CzKw24Ws.js +1 -0
- package/dist/assets/{timeline-definition-FHXFAJF6-CgFiawCT.js → timeline-definition-PNZ67QCA-ZZ8vXqsw.js} +3 -3
- package/dist/assets/vennDiagram-CIIHVFJN-Dqi0_zje.js +34 -0
- package/dist/assets/{wardleyDiagram-EHGQE667-CtRzQ3q6.js → wardleyDiagram-YWT4CUSO-D7_vAxp3.js} +3 -3
- package/dist/assets/xychartDiagram-2RQKCTM6-BgFNWh3u.js +7 -0
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/MermaidRenderer-CnzIvTlj.js +0 -317
- package/dist/assets/abnfDiagram-VRR7QNED-DChuAW5u.js +0 -1
- package/dist/assets/architectureDiagram-ZJ3FMSHR-DHJZWJhu.js +0 -36
- package/dist/assets/blockDiagram-677ZJIJ3-H_CNYF5m.js +0 -132
- package/dist/assets/channel-Cfw3OpIn.js +0 -1
- package/dist/assets/chunk-EX3LRPZG-Bq0HhB2B.js +0 -231
- package/dist/assets/chunk-MOJQB5TN-D2zfH4wm.js +0 -88
- package/dist/assets/chunk-RYQCIY6F-DSJh0d2F.js +0 -1
- package/dist/assets/classDiagram-OUVF2IWQ-BkFPBJiF.js +0 -1
- package/dist/assets/classDiagram-v2-EOCWNBFH-BkFPBJiF.js +0 -1
- package/dist/assets/cynefinDiagram-TSTJHNR4-MevACWGH.js +0 -62
- package/dist/assets/dagre-VKFMJZFB-BqR7tzk8.js +0 -4
- package/dist/assets/diagram-G47NLZAW-Bqjk3ZYu.js +0 -24
- package/dist/assets/diagram-OA4YK3LP-B0THRF0G.js +0 -30
- package/dist/assets/diagram-WEI45ONY-IZZ69bsz.js +0 -41
- package/dist/assets/ebnfDiagram-CCIWWBDH-B_U7c6VT.js +0 -1
- package/dist/assets/erDiagram-Q63AITRT-oGWxlmE8.js +0 -85
- package/dist/assets/flowDiagram-23GEKE2U-0scCMi71.js +0 -156
- package/dist/assets/ganttDiagram-NO4QXBWP-DIS-iO_q.js +0 -292
- package/dist/assets/layout-DEXfKzaS.js +0 -1
- package/dist/assets/map-Czzmt4hB.js +0 -1
- package/dist/assets/pegDiagram-2B236MQR-DItVX4G3.js +0 -1
- package/dist/assets/pieDiagram-ENE6RG2P-CTRyME0H.js +0 -39
- package/dist/assets/railroadDiagram-RFXS5EU6-_rBw9Q9b.js +0 -1
- package/dist/assets/sankeyDiagram-HTMAVEWB-doAkRLNI.js +0 -40
- package/dist/assets/sequenceDiagram-DBY2YBRQ-D4HUsfB2.js +0 -162
- package/dist/assets/sizeCapture-X5ZJPWSS-DJJLR6R7.js +0 -1
- package/dist/assets/stateDiagram-2N3HPSRC-0IOXcLaP.js +0 -1
- package/dist/assets/stateDiagram-v2-6OUMAXLB-BjcuRalB.js +0 -1
- package/dist/assets/swimlanes-5IMT3BWC-HIPL1mdx.js +0 -2
- package/dist/assets/swimlanesDiagram-G3AALYLV-usVEFD6y.js +0 -8
- package/dist/assets/vennDiagram-L72KCM5P-DiY3ySIT.js +0 -34
- package/dist/assets/xychartDiagram-FW5EYKEG-OjszPLMV.js +0 -7
|
@@ -1,292 +0,0 @@
|
|
|
1
|
-
import{g as Re,s as He,o as Be,n as qe,a as Xe,b as Ge,_ as l,c as ht,d as bt,e as je,at as U,l as lt,k as Ue,j as Ze,p as Qe,x as Ke}from"./MermaidRenderer-CnzIvTlj.js";import{g as Ft}from"./vendor-markdown-BRX1CUPf.js";import{t as Je,m as tr,a as er,b as ae,c as oe,d as rr,e as nr,f as ir,g as sr,h as ar,i as or,j as cr,k as ce,l as le,n as ue,s as de,o as fe}from"./time-DJ0lCX4i.js";import{l as lr}from"./linear-BGneeY6s.js";import{R as Te,S as ur,T as be,U as we,V as _e,W as Ot,X as dr}from"./isPrototype-DezZrpQP.js";import"./vendor-syntax-DG6Vo7Ci.js";import"./purify.es-D6gMnemd.js";import"./init-Dmth1JHB.js";import"./defaultLocale-DX6XiGOO.js";function fr(t){return t}var _t=1,Wt=2,Ht=3,wt=4,he=1e-6;function hr(t){return"translate("+t+",0)"}function mr(t){return"translate(0,"+t+")"}function kr(t){return e=>+t(e)}function yr(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}function gr(){return!this.__axis}function De(t,e){var r=[],n=null,s=null,m=6,f=6,b=3,C=typeof window<"u"&&window.devicePixelRatio>1?0:.5,L=t===_t||t===wt?-1:1,w=t===wt||t===Wt?"x":"y",P=t===_t||t===Ht?hr:mr;function _(D){var X=n??(e.ticks?e.ticks.apply(e,r):e.domain()),R=s??(e.tickFormat?e.tickFormat.apply(e,r):fr),g=Math.max(m,0)+b,M=e.range(),W=+M[0]+C,O=+M[M.length-1]+C,H=(e.bandwidth?yr:kr)(e.copy(),C),z=D.selection?D.selection():D,I=z.selectAll(".domain").data([null]),x=z.selectAll(".tick").data(X,e).order(),k=x.exit(),E=x.enter().append("g").attr("class","tick"),h=x.select("line"),T=x.select("text");I=I.merge(I.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),x=x.merge(E),h=h.merge(E.append("line").attr("stroke","currentColor").attr(w+"2",L*m)),T=T.merge(E.append("text").attr("fill","currentColor").attr(w,L*g).attr("dy",t===_t?"0em":t===Ht?"0.71em":"0.32em")),D!==z&&(I=I.transition(D),x=x.transition(D),h=h.transition(D),T=T.transition(D),k=k.transition(D).attr("opacity",he).attr("transform",function(v){return isFinite(v=H(v))?P(v+C):this.getAttribute("transform")}),E.attr("opacity",he).attr("transform",function(v){var p=this.parentNode.__axis;return P((p&&isFinite(p=p(v))?p:H(v))+C)})),k.remove(),I.attr("d",t===wt||t===Wt?f?"M"+L*f+","+W+"H"+C+"V"+O+"H"+L*f:"M"+C+","+W+"V"+O:f?"M"+W+","+L*f+"V"+C+"H"+O+"V"+L*f:"M"+W+","+C+"H"+O),x.attr("opacity",1).attr("transform",function(v){return P(H(v)+C)}),h.attr(w+"2",L*m),T.attr(w,L*g).text(R),z.filter(gr).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Wt?"start":t===wt?"end":"middle"),z.each(function(){this.__axis=H})}return _.scale=function(D){return arguments.length?(e=D,_):e},_.ticks=function(){return r=Array.from(arguments),_},_.tickArguments=function(D){return arguments.length?(r=D==null?[]:Array.from(D),_):r.slice()},_.tickValues=function(D){return arguments.length?(n=D==null?null:Array.from(D),_):n&&n.slice()},_.tickFormat=function(D){return arguments.length?(s=D,_):s},_.tickSize=function(D){return arguments.length?(m=f=+D,_):m},_.tickSizeInner=function(D){return arguments.length?(m=+D,_):m},_.tickSizeOuter=function(D){return arguments.length?(f=+D,_):f},_.tickPadding=function(D){return arguments.length?(b=+D,_):b},_.offset=function(D){return arguments.length?(C=+D,_):C},_}function pr(t){return De(_t,t)}function vr(t){return De(Ht,t)}const xr=Math.PI/180,Tr=180/Math.PI,Yt=18,Se=.96422,Ce=1,Me=.82521,Ee=4/29,mt=6/29,Ie=3*mt*mt,br=mt*mt*mt;function Ye(t){if(t instanceof rt)return new rt(t.l,t.a,t.b,t.opacity);if(t instanceof it)return $e(t);t instanceof Te||(t=ur(t));var e=zt(t.r),r=zt(t.g),n=zt(t.b),s=Pt((.2225045*e+.7168786*r+.0606169*n)/Ce),m,f;return e===r&&r===n?m=f=s:(m=Pt((.4360747*e+.3850649*r+.1430804*n)/Se),f=Pt((.0139322*e+.0971045*r+.7141733*n)/Me)),new rt(116*s-16,500*(m-s),200*(s-f),t.opacity)}function wr(t,e,r,n){return arguments.length===1?Ye(t):new rt(t,e,r,n??1)}function rt(t,e,r,n){this.l=+t,this.a=+e,this.b=+r,this.opacity=+n}be(rt,wr,we(_e,{brighter(t){return new rt(this.l+Yt*(t??1),this.a,this.b,this.opacity)},darker(t){return new rt(this.l-Yt*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return e=Se*Vt(e),t=Ce*Vt(t),r=Me*Vt(r),new Te(Nt(3.1338561*e-1.6168667*t-.4906146*r),Nt(-.9787684*e+1.9161415*t+.033454*r),Nt(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}}));function Pt(t){return t>br?Math.pow(t,1/3):t/Ie+Ee}function Vt(t){return t>mt?t*t*t:Ie*(t-Ee)}function Nt(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function zt(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function _r(t){if(t instanceof it)return new it(t.h,t.c,t.l,t.opacity);if(t instanceof rt||(t=Ye(t)),t.a===0&&t.b===0)return new it(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*Tr;return new it(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Bt(t,e,r,n){return arguments.length===1?_r(t):new it(t,e,r,n??1)}function it(t,e,r,n){this.h=+t,this.c=+e,this.l=+r,this.opacity=+n}function $e(t){if(isNaN(t.h))return new rt(t.l,0,0,t.opacity);var e=t.h*xr;return new rt(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}be(it,Bt,we(_e,{brighter(t){return new it(this.h,this.c,this.l+Yt*(t??1),this.opacity)},darker(t){return new it(this.h,this.c,this.l-Yt*(t??1),this.opacity)},rgb(){return $e(this).rgb()}}));function Dr(t){return function(e,r){var n=t((e=Bt(e)).h,(r=Bt(r)).h),s=Ot(e.c,r.c),m=Ot(e.l,r.l),f=Ot(e.opacity,r.opacity);return function(b){return e.h=n(b),e.c=s(b),e.l=m(b),e.opacity=f(b),e+""}}}const Sr=Dr(dr);var Dt={exports:{}},Cr=Dt.exports,me;function Mr(){return me||(me=1,(function(t,e){(function(r,n){t.exports=n()})(Cr,(function(){var r="day";return function(n,s,m){var f=function(L){return L.add(4-L.isoWeekday(),r)},b=s.prototype;b.isoWeekYear=function(){return f(this).year()},b.isoWeek=function(L){if(!this.$utils().u(L))return this.add(7*(L-this.isoWeek()),r);var w,P,_,D,X=f(this),R=(w=this.isoWeekYear(),P=this.$u,_=(P?m.utc:m)().year(w).startOf("year"),D=4-_.isoWeekday(),_.isoWeekday()>4&&(D+=7),_.add(D,r));return X.diff(R,"week")+1},b.isoWeekday=function(L){return this.$utils().u(L)?this.day()||7:this.day(this.day()%7?L:L-7)};var C=b.startOf;b.startOf=function(L,w){var P=this.$utils(),_=!!P.u(w)||w;return P.p(L)==="isoweek"?_?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):C.bind(this)(L,w)}}}))})(Dt)),Dt.exports}var Er=Mr();const Ir=Ft(Er);var St={exports:{}},Yr=St.exports,ke;function $r(){return ke||(ke=1,(function(t,e){(function(r,n){t.exports=n()})(Yr,(function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,s=/\d/,m=/\d\d/,f=/\d\d?/,b=/\d*[^-_:/,()\s\d]+/,C={},L=function(g){return(g=+g)+(g>68?1900:2e3)},w=function(g){return function(M){this[g]=+M}},P=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=(function(M){if(!M||M==="Z")return 0;var W=M.match(/([+-]|\d\d)/g),O=60*W[1]+(+W[2]||0);return O===0?0:W[0]==="+"?-O:O})(g)}],_=function(g){var M=C[g];return M&&(M.indexOf?M:M.s.concat(M.f))},D=function(g,M){var W,O=C.meridiem;if(O){for(var H=1;H<=24;H+=1)if(g.indexOf(O(H,0,M))>-1){W=H>12;break}}else W=g===(M?"pm":"PM");return W},X={A:[b,function(g){this.afternoon=D(g,!1)}],a:[b,function(g){this.afternoon=D(g,!0)}],Q:[s,function(g){this.month=3*(g-1)+1}],S:[s,function(g){this.milliseconds=100*+g}],SS:[m,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[f,w("seconds")],ss:[f,w("seconds")],m:[f,w("minutes")],mm:[f,w("minutes")],H:[f,w("hours")],h:[f,w("hours")],HH:[f,w("hours")],hh:[f,w("hours")],D:[f,w("day")],DD:[m,w("day")],Do:[b,function(g){var M=C.ordinal,W=g.match(/\d+/);if(this.day=W[0],M)for(var O=1;O<=31;O+=1)M(O).replace(/\[|\]/g,"")===g&&(this.day=O)}],w:[f,w("week")],ww:[m,w("week")],M:[f,w("month")],MM:[m,w("month")],MMM:[b,function(g){var M=_("months"),W=(_("monthsShort")||M.map((function(O){return O.slice(0,3)}))).indexOf(g)+1;if(W<1)throw new Error;this.month=W%12||W}],MMMM:[b,function(g){var M=_("months").indexOf(g)+1;if(M<1)throw new Error;this.month=M%12||M}],Y:[/[+-]?\d+/,w("year")],YY:[m,function(g){this.year=L(g)}],YYYY:[/\d{4}/,w("year")],Z:P,ZZ:P};function R(g){var M,W;M=g,W=C&&C.formats;for(var O=(g=M.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(h,T,v){var p=v&&v.toUpperCase();return T||W[v]||r[v]||W[p].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(a,d,y){return d||y.slice(1)}))}))).match(n),H=O.length,z=0;z<H;z+=1){var I=O[z],x=X[I],k=x&&x[0],E=x&&x[1];O[z]=E?{regex:k,parser:E}:I.replace(/^\[|\]$/g,"")}return function(h){for(var T={},v=0,p=0;v<H;v+=1){var a=O[v];if(typeof a=="string")p+=a.length;else{var d=a.regex,y=a.parser,u=h.slice(p),S=d.exec(u)[0];y.call(T,S),h=h.replace(S,"")}}return(function(i){var Y=i.afternoon;if(Y!==void 0){var o=i.hours;Y?o<12&&(i.hours+=12):o===12&&(i.hours=0),delete i.afternoon}})(T),T}}return function(g,M,W){W.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(L=g.parseTwoDigitYear);var O=M.prototype,H=O.parse;O.parse=function(z){var I=z.date,x=z.utc,k=z.args;this.$u=x;var E=k[1];if(typeof E=="string"){var h=k[2]===!0,T=k[3]===!0,v=h||T,p=k[2];T&&(p=k[2]),C=this.$locale(),!h&&p&&(C=W.Ls[p]),this.$d=(function(u,S,i,Y){try{if(["x","X"].indexOf(S)>-1)return new Date((S==="X"?1e3:1)*u);var o=R(S)(u),q=o.year,c=o.month,$=o.day,A=o.hours,N=o.minutes,F=o.seconds,B=o.milliseconds,V=o.zone,st=o.week,ot=new Date,vt=$||(q||c?1:ot.getDate()),dt=q||ot.getFullYear(),G=0;q&&!c||(G=c>0?c-1:ot.getMonth());var K,Z=A||0,ct=N||0,J=F||0,at=B||0;return V?new Date(Date.UTC(dt,G,vt,Z,ct,J,at+60*V.offset*1e3)):i?new Date(Date.UTC(dt,G,vt,Z,ct,J,at)):(K=new Date(dt,G,vt,Z,ct,J,at),st&&(K=Y(K).week(st).toDate()),K)}catch{return new Date("")}})(I,E,x,W),this.init(),p&&p!==!0&&(this.$L=this.locale(p).$L),v&&I!=this.format(E)&&(this.$d=new Date("")),C={}}else if(E instanceof Array)for(var a=E.length,d=1;d<=a;d+=1){k[1]=E[d-1];var y=W.apply(this,k);if(y.isValid()){this.$d=y.$d,this.$L=y.$L,this.init();break}d===a&&(this.$d=new Date(""))}else H.call(this,z)}}}))})(St)),St.exports}var Ar=$r();const Fr=Ft(Ar);var Ct={exports:{}},Lr=Ct.exports,ye;function Or(){return ye||(ye=1,(function(t,e){(function(r,n){t.exports=n()})(Lr,(function(){return function(r,n){var s=n.prototype,m=s.format;s.format=function(f){var b=this,C=this.$locale();if(!this.isValid())return m.bind(this)(f);var L=this.$utils(),w=(f||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(P){switch(P){case"Q":return Math.ceil((b.$M+1)/3);case"Do":return C.ordinal(b.$D);case"gggg":return b.weekYear();case"GGGG":return b.isoWeekYear();case"wo":return C.ordinal(b.week(),"W");case"w":case"ww":return L.s(b.week(),P==="w"?1:2,"0");case"W":case"WW":return L.s(b.isoWeek(),P==="W"?1:2,"0");case"k":case"kk":return L.s(String(b.$H===0?24:b.$H),P==="k"?1:2,"0");case"X":return Math.floor(b.$d.getTime()/1e3);case"x":return b.$d.getTime();case"z":return"["+b.offsetName()+"]";case"zzz":return"["+b.offsetName("long")+"]";default:return P}}));return m.bind(this)(w)}}}))})(Ct)),Ct.exports}var Wr=Or();const Pr=Ft(Wr);var Mt={exports:{}},Vr=Mt.exports,ge;function Nr(){return ge||(ge=1,(function(t,e){(function(r,n){t.exports=n()})(Vr,(function(){var r,n,s=1e3,m=6e4,f=36e5,b=864e5,C=31536e6,L=2628e6,w=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,P=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,_={years:C,months:L,days:b,hours:f,minutes:m,seconds:s,milliseconds:1,weeks:6048e5},D=function(I){return I instanceof H},X=function(I,x,k){return new H(I,k,x.$l)},R=function(I){return n.p(I)+"s"},g=function(I){return I<0},M=function(I){return g(I)?Math.ceil(I):Math.floor(I)},W=function(I){return Math.abs(I)},O=function(I,x){return I?g(I)?{negative:!0,format:""+W(I)+x}:{negative:!1,format:""+I+x}:{negative:!1,format:""}},H=(function(){function I(k,E,h){var T=this;if(this.$d={},this.$l=h,k===void 0&&(this.$ms=0,this.parseFromMilliseconds()),E)return X(k*_[R(E)],this);if(typeof k=="number")return this.$ms=k,this.parseFromMilliseconds(),this;if(typeof k=="object")return Object.keys(k).forEach((function(a){T.$d[R(a)]=k[a]})),this.calMilliseconds(),this;if(typeof k=="string"){var v=k.match(w);if(v){var p=v.slice(2).map((function(a){return a!=null?Number(a):0}));return this.$d.years=p[0],this.$d.months=p[1],this.$d.weeks=p[2],this.$d.days=p[3],this.$d.hours=p[4],this.$d.minutes=p[5],this.$d.seconds=p[6],this.calMilliseconds(),this}}return this}var x=I.prototype;return x.calMilliseconds=function(){var k=this;this.$ms=Object.keys(this.$d).reduce((function(E,h){return E+(k.$d[h]||0)*_[h]}),0)},x.parseFromMilliseconds=function(){var k=this.$ms;this.$d.years=M(k/C),k%=C,this.$d.months=M(k/L),k%=L,this.$d.days=M(k/b),k%=b,this.$d.hours=M(k/f),k%=f,this.$d.minutes=M(k/m),k%=m,this.$d.seconds=M(k/s),k%=s,this.$d.milliseconds=k},x.toISOString=function(){var k=O(this.$d.years,"Y"),E=O(this.$d.months,"M"),h=+this.$d.days||0;this.$d.weeks&&(h+=7*this.$d.weeks);var T=O(h,"D"),v=O(this.$d.hours,"H"),p=O(this.$d.minutes,"M"),a=this.$d.seconds||0;this.$d.milliseconds&&(a+=this.$d.milliseconds/1e3,a=Math.round(1e3*a)/1e3);var d=O(a,"S"),y=k.negative||E.negative||T.negative||v.negative||p.negative||d.negative,u=v.format||p.format||d.format?"T":"",S=(y?"-":"")+"P"+k.format+E.format+T.format+u+v.format+p.format+d.format;return S==="P"||S==="-P"?"P0D":S},x.toJSON=function(){return this.toISOString()},x.format=function(k){var E=k||"YYYY-MM-DDTHH:mm:ss",h={Y:this.$d.years,YY:n.s(this.$d.years,2,"0"),YYYY:n.s(this.$d.years,4,"0"),M:this.$d.months,MM:n.s(this.$d.months,2,"0"),D:this.$d.days,DD:n.s(this.$d.days,2,"0"),H:this.$d.hours,HH:n.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:n.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:n.s(this.$d.seconds,2,"0"),SSS:n.s(this.$d.milliseconds,3,"0")};return E.replace(P,(function(T,v){return v||String(h[T])}))},x.as=function(k){return this.$ms/_[R(k)]},x.get=function(k){var E=this.$ms,h=R(k);return h==="milliseconds"?E%=1e3:E=h==="weeks"?M(E/_[h]):this.$d[h],E||0},x.add=function(k,E,h){var T;return T=E?k*_[R(E)]:D(k)?k.$ms:X(k,this).$ms,X(this.$ms+T*(h?-1:1),this)},x.subtract=function(k,E){return this.add(k,E,!0)},x.locale=function(k){var E=this.clone();return E.$l=k,E},x.clone=function(){return X(this.$ms,this)},x.humanize=function(k){return r().add(this.$ms,"ms").locale(this.$l).fromNow(!k)},x.valueOf=function(){return this.asMilliseconds()},x.milliseconds=function(){return this.get("milliseconds")},x.asMilliseconds=function(){return this.as("milliseconds")},x.seconds=function(){return this.get("seconds")},x.asSeconds=function(){return this.as("seconds")},x.minutes=function(){return this.get("minutes")},x.asMinutes=function(){return this.as("minutes")},x.hours=function(){return this.get("hours")},x.asHours=function(){return this.as("hours")},x.days=function(){return this.get("days")},x.asDays=function(){return this.as("days")},x.weeks=function(){return this.get("weeks")},x.asWeeks=function(){return this.as("weeks")},x.months=function(){return this.get("months")},x.asMonths=function(){return this.as("months")},x.years=function(){return this.get("years")},x.asYears=function(){return this.as("years")},I})(),z=function(I,x,k){return I.add(x.years()*k,"y").add(x.months()*k,"M").add(x.days()*k,"d").add(x.hours()*k,"h").add(x.minutes()*k,"m").add(x.seconds()*k,"s").add(x.milliseconds()*k,"ms")};return function(I,x,k){r=k,n=k().$utils(),k.duration=function(T,v){var p=k.locale();return X(T,{$l:p},v)},k.isDuration=D;var E=x.prototype.add,h=x.prototype.subtract;x.prototype.add=function(T,v){return D(T)?z(this,T,1):E.bind(this)(T,v)},x.prototype.subtract=function(T,v){return D(T)?z(this,T,-1):h.bind(this)(T,v)}}}))})(Mt)),Mt.exports}var zr=Nr();const Rr=Ft(zr);var qt=(function(){var t=l(function(p,a,d,y){for(d=d||{},y=p.length;y--;d[p[y]]=a);return d},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],r=[1,26],n=[1,27],s=[1,28],m=[1,29],f=[1,30],b=[1,31],C=[1,32],L=[1,33],w=[1,34],P=[1,9],_=[1,10],D=[1,11],X=[1,12],R=[1,13],g=[1,14],M=[1,15],W=[1,16],O=[1,19],H=[1,20],z=[1,21],I=[1,22],x=[1,23],k=[1,25],E=[1,35],h={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:l(function(a,d,y,u,S,i,Y){var o=i.length-1;switch(S){case 1:return i[o-1];case 2:this.$=[];break;case 3:i[o-1].push(i[o]),this.$=i[o-1];break;case 4:case 5:this.$=i[o];break;case 6:case 7:this.$=[];break;case 8:u.setWeekday("monday");break;case 9:u.setWeekday("tuesday");break;case 10:u.setWeekday("wednesday");break;case 11:u.setWeekday("thursday");break;case 12:u.setWeekday("friday");break;case 13:u.setWeekday("saturday");break;case 14:u.setWeekday("sunday");break;case 15:u.setWeekend("friday");break;case 16:u.setWeekend("saturday");break;case 17:u.setDateFormat(i[o].substr(11)),this.$=i[o].substr(11);break;case 18:u.enableInclusiveEndDates(),this.$=i[o].substr(18);break;case 19:u.TopAxis(),this.$=i[o].substr(8);break;case 20:u.setAxisFormat(i[o].substr(11)),this.$=i[o].substr(11);break;case 21:u.setTickInterval(i[o].substr(13)),this.$=i[o].substr(13);break;case 22:u.setExcludes(i[o].substr(9)),this.$=i[o].substr(9);break;case 23:u.setIncludes(i[o].substr(9)),this.$=i[o].substr(9);break;case 24:u.setTodayMarker(i[o].substr(12)),this.$=i[o].substr(12);break;case 27:u.setDiagramTitle(i[o].substr(6)),this.$=i[o].substr(6);break;case 28:this.$=i[o].trim(),u.setAccTitle(this.$);break;case 29:case 30:this.$=i[o].trim(),u.setAccDescription(this.$);break;case 31:u.addSection(i[o].substr(8)),this.$=i[o].substr(8);break;case 33:u.addTask(i[o-1],i[o]),this.$="task";break;case 34:this.$=i[o-1],u.setClickEvent(i[o-1],i[o],null);break;case 35:this.$=i[o-2],u.setClickEvent(i[o-2],i[o-1],i[o]);break;case 36:this.$=i[o-2],u.setClickEvent(i[o-2],i[o-1],null),u.setLink(i[o-2],i[o]);break;case 37:this.$=i[o-3],u.setClickEvent(i[o-3],i[o-2],i[o-1]),u.setLink(i[o-3],i[o]);break;case 38:this.$=i[o-2],u.setClickEvent(i[o-2],i[o],null),u.setLink(i[o-2],i[o-1]);break;case 39:this.$=i[o-3],u.setClickEvent(i[o-3],i[o-1],i[o]),u.setLink(i[o-3],i[o-2]);break;case 40:this.$=i[o-1],u.setLink(i[o-1],i[o]);break;case 41:case 47:this.$=i[o-1]+" "+i[o];break;case 42:case 43:case 45:this.$=i[o-2]+" "+i[o-1]+" "+i[o];break;case 44:case 46:this.$=i[o-3]+" "+i[o-2]+" "+i[o-1]+" "+i[o];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:r,13:n,14:s,15:m,16:f,17:b,18:C,19:18,20:L,21:w,22:P,23:_,24:D,25:X,26:R,27:g,28:M,29:W,30:O,31:H,33:z,35:I,36:x,37:24,38:k,40:E},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:r,13:n,14:s,15:m,16:f,17:b,18:C,19:18,20:L,21:w,22:P,23:_,24:D,25:X,26:R,27:g,28:M,29:W,30:O,31:H,33:z,35:I,36:x,37:24,38:k,40:E},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:l(function(a,d){if(d.recoverable)this.trace(a);else{var y=new Error(a);throw y.hash=d,y}},"parseError"),parse:l(function(a){var d=this,y=[0],u=[],S=[null],i=[],Y=this.table,o="",q=0,c=0,$=2,A=1,N=i.slice.call(arguments,1),F=Object.create(this.lexer),B={yy:{}};for(var V in this.yy)Object.prototype.hasOwnProperty.call(this.yy,V)&&(B.yy[V]=this.yy[V]);F.setInput(a,B.yy),B.yy.lexer=F,B.yy.parser=this,typeof F.yylloc>"u"&&(F.yylloc={});var st=F.yylloc;i.push(st);var ot=F.options&&F.options.ranges;typeof B.yy.parseError=="function"?this.parseError=B.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function vt(Q){y.length=y.length-2*Q,S.length=S.length-Q,i.length=i.length-Q}l(vt,"popStack");function dt(){var Q;return Q=u.pop()||F.lex()||A,typeof Q!="number"&&(Q instanceof Array&&(u=Q,Q=u.pop()),Q=d.symbols_[Q]||Q),Q}l(dt,"lex");for(var G,K,Z,ct,J={},at,tt,se,Tt;;){if(K=y[y.length-1],this.defaultActions[K]?Z=this.defaultActions[K]:((G===null||typeof G>"u")&&(G=dt()),Z=Y[K]&&Y[K][G]),typeof Z>"u"||!Z.length||!Z[0]){var Lt="";Tt=[];for(at in Y[K])this.terminals_[at]&&at>$&&Tt.push("'"+this.terminals_[at]+"'");F.showPosition?Lt="Parse error on line "+(q+1)+`:
|
|
2
|
-
`+F.showPosition()+`
|
|
3
|
-
Expecting `+Tt.join(", ")+", got '"+(this.terminals_[G]||G)+"'":Lt="Parse error on line "+(q+1)+": Unexpected "+(G==A?"end of input":"'"+(this.terminals_[G]||G)+"'"),this.parseError(Lt,{text:F.match,token:this.terminals_[G]||G,line:F.yylineno,loc:st,expected:Tt})}if(Z[0]instanceof Array&&Z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+K+", token: "+G);switch(Z[0]){case 1:y.push(G),S.push(F.yytext),i.push(F.yylloc),y.push(Z[1]),G=null,c=F.yyleng,o=F.yytext,q=F.yylineno,st=F.yylloc;break;case 2:if(tt=this.productions_[Z[1]][1],J.$=S[S.length-tt],J._$={first_line:i[i.length-(tt||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(tt||1)].first_column,last_column:i[i.length-1].last_column},ot&&(J._$.range=[i[i.length-(tt||1)].range[0],i[i.length-1].range[1]]),ct=this.performAction.apply(J,[o,c,q,B.yy,Z[1],S,i].concat(N)),typeof ct<"u")return ct;tt&&(y=y.slice(0,-1*tt*2),S=S.slice(0,-1*tt),i=i.slice(0,-1*tt)),y.push(this.productions_[Z[1]][0]),S.push(J.$),i.push(J._$),se=Y[y[y.length-2]][y[y.length-1]],y.push(se);break;case 3:return!0}}return!0},"parse")},T=(function(){var p={EOF:1,parseError:l(function(d,y){if(this.yy.parser)this.yy.parser.parseError(d,y);else throw new Error(d)},"parseError"),setInput:l(function(a,d){return this.yy=d||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:l(function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var d=a.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:l(function(a){var d=a.length,y=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),y.length-1&&(this.yylineno-=y.length-1);var S=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:y?(y.length===u.length?this.yylloc.first_column:0)+u[u.length-y.length].length-y[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[S[0],S[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:l(function(a){this.unput(this.match.slice(a))},"less"),pastInput:l(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:l(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:l(function(){var a=this.pastInput(),d=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
|
|
5
|
-
`+d+"^"},"showPosition"),test_match:l(function(a,d){var y,u,S;if(this.options.backtrack_lexer&&(S={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(S.yylloc.range=this.yylloc.range.slice(0))),u=a[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],y=this.performAction.call(this,this.yy,this,d,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),y)return y;if(this._backtrack){for(var i in S)this[i]=S[i];return!1}return!1},"test_match"),next:l(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var a,d,y,u;this._more||(this.yytext="",this.match="");for(var S=this._currentRules(),i=0;i<S.length;i++)if(y=this._input.match(this.rules[S[i]]),y&&(!d||y[0].length>d[0].length)){if(d=y,u=i,this.options.backtrack_lexer){if(a=this.test_match(y,S[i]),a!==!1)return a;if(this._backtrack){d=!1;continue}else return!1}else if(!this.options.flex)break}return d?(a=this.test_match(d,S[u]),a!==!1?a:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:l(function(){var d=this.next();return d||this.lex()},"lex"),begin:l(function(d){this.conditionStack.push(d)},"begin"),popState:l(function(){var d=this.conditionStack.length-1;return d>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:l(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:l(function(d){return d=this.conditionStack.length-1-Math.abs(d||0),d>=0?this.conditionStack[d]:"INITIAL"},"topState"),pushState:l(function(d){this.begin(d)},"pushState"),stateStackSize:l(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:l(function(d,y,u,S){switch(u){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),31;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),33;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return p})();h.lexer=T;function v(){this.yy={}}return l(v,"Parser"),v.prototype=h,h.Parser=v,new v})();qt.parser=qt;var Hr=qt;U.extend(Ir);U.extend(Fr);U.extend(Pr);var pe={friday:5,saturday:6},et="",Ut="",Zt=void 0,Qt="",yt=[],gt=[],Kt=new Map,Jt=[],$t=[],pt="",te="",Ae=["active","done","crit","milestone","vert"],ee=[],ft="",xt=!1,re=!1,ne="sunday",At="saturday",Xt=0,Br=l(function(){Jt=[],$t=[],pt="",ee=[],Et=0,jt=void 0,It=void 0,j=[],et="",Ut="",te="",Zt=void 0,Qt="",yt=[],gt=[],xt=!1,re=!1,Xt=0,Kt=new Map,ft="",Qe(),ne="sunday",At="saturday"},"clear"),qr=l(function(t){ft=t},"setDiagramId"),Xr=l(function(t){Ut=t},"setAxisFormat"),Gr=l(function(){return Ut},"getAxisFormat"),jr=l(function(t){Zt=t},"setTickInterval"),Ur=l(function(){return Zt},"getTickInterval"),Zr=l(function(t){Qt=t},"setTodayMarker"),Qr=l(function(){return Qt},"getTodayMarker"),Kr=l(function(t){et=t},"setDateFormat"),Jr=l(function(){xt=!0},"enableInclusiveEndDates"),tn=l(function(){return xt},"endDatesAreInclusive"),en=l(function(){re=!0},"enableTopAxis"),rn=l(function(){return re},"topAxisEnabled"),nn=l(function(t){te=t},"setDisplayMode"),sn=l(function(){return te},"getDisplayMode"),an=l(function(){return et},"getDateFormat"),Fe=l((t,e)=>{const r=e.toLowerCase().split(/[\s,]+/).filter(n=>n!=="");return[...new Set([...t,...r])]},"mergeTokens"),on=l(function(t){yt=Fe(yt,t)},"setIncludes"),cn=l(function(){return yt},"getIncludes"),ln=l(function(t){gt=Fe(gt,t)},"setExcludes"),un=l(function(){return gt},"getExcludes"),dn=l(function(){return Kt},"getLinks"),fn=l(function(t){pt=t,Jt.push(t)},"addSection"),hn=l(function(){return Jt},"getSections"),mn=l(function(){let t=ve();const e=10;let r=0;for(;!t&&r<e;)t=ve(),r++;return $t=j,$t},"getTasks"),Le=l(function(t,e,r,n){const s=t.format(e.trim()),m=t.format("YYYY-MM-DD");return n.includes(s)||n.includes(m)?!1:r.includes("weekends")&&(t.isoWeekday()===pe[At]||t.isoWeekday()===pe[At]+1)||r.includes(t.format("dddd").toLowerCase())?!0:r.includes(s)||r.includes(m)},"isInvalidDate"),kn=l(function(t){ne=t},"setWeekday"),yn=l(function(){return ne},"getWeekday"),gn=l(function(t){At=t},"setWeekend"),Oe=l(function(t,e,r,n){if(!r.length||t.manualEndTime)return;let s;t.startTime instanceof Date?s=U(t.startTime):s=U(t.startTime,e,!0),s=s.add(1,"d");let m;t.endTime instanceof Date?m=U(t.endTime):m=U(t.endTime,e,!0);const[f,b]=pn(s,m,e,r,n);t.endTime=f.toDate(),t.renderEndTime=b},"checkTaskDates"),pn=l(function(t,e,r,n,s){let m=!1,f=null;const b=e.add(1e4,"d");for(;t<=e;){if(m||(f=e.toDate()),m=Le(t,r,n,s),m&&(e=e.add(1,"d"),e>b))throw new Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.");t=t.add(1,"d")}return[e,f]},"fixTaskDates"),Gt=l(function(t,e,r){if(r=r.trim(),l(b=>{const C=b.trim();return C==="x"||C==="X"},"isTimestampFormat")(e)&&/^\d+$/.test(r))return new Date(Number(r));const m=/^after\s+(?<ids>[\d\w- ]+)/.exec(r);if(m!==null){let b=null;for(const L of m.groups.ids.split(" ")){let w=ut(L);w!==void 0&&(!b||w.endTime>b.endTime)&&(b=w)}if(b)return b.endTime;const C=new Date;return C.setHours(0,0,0,0),C}let f=U(r,e.trim(),!0);if(f.isValid())return f.toDate();{lt.debug("Invalid date:"+r),lt.debug("With date format:"+e.trim());const b=new Date(r);if(b===void 0||isNaN(b.getTime())||b.getFullYear()<-1e4||b.getFullYear()>1e4)throw new Error("Invalid date:"+r);return b}},"getStartDate"),We=l(function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return e!==null?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},"parseDuration"),Pe=l(function(t,e,r,n=!1){r=r.trim();const m=/^until\s+(?<ids>[\d\w- ]+)/.exec(r);if(m!==null){let w=null;for(const _ of m.groups.ids.split(" ")){let D=ut(_);D!==void 0&&(!w||D.startTime<w.startTime)&&(w=D)}if(w)return w.startTime;const P=new Date;return P.setHours(0,0,0,0),P}let f=U(r,e.trim(),!0);if(f.isValid())return n&&(f=f.add(1,"d")),f.toDate();let b=U(t);const[C,L]=We(r);if(!Number.isNaN(C)){const w=b.add(C,L);w.isValid()&&(b=w)}return b.toDate()},"getEndDate"),Et=0,kt=l(function(t){return t===void 0?(Et=Et+1,"task"+Et):t},"parseId"),vn=l(function(t,e){let r;e.substr(0,1)===":"?r=e.substr(1,e.length):r=e;const n=r.split(","),s={};ie(n,s,Ae);for(let f=0;f<n.length;f++)n[f]=n[f].trim();let m="";switch(n.length){case 1:s.id=kt(),s.startTime=t.endTime,m=n[0];break;case 2:s.id=kt(),s.startTime=Gt(void 0,et,n[0]),m=n[1];break;case 3:s.id=kt(n[0]),s.startTime=Gt(void 0,et,n[1]),m=n[2];break}return m&&(s.endTime=Pe(s.startTime,et,m,xt),s.manualEndTime=U(m,"YYYY-MM-DD",!0).isValid(),Oe(s,et,gt,yt)),s},"compileData"),xn=l(function(t,e){let r;e.substr(0,1)===":"?r=e.substr(1,e.length):r=e;const n=r.split(","),s={};ie(n,s,Ae);for(let m=0;m<n.length;m++)n[m]=n[m].trim();switch(n.length){case 1:s.id=kt(),s.startTime={type:"prevTaskEnd",id:t},s.endTime={data:n[0]};break;case 2:s.id=kt(),s.startTime={type:"getStartDate",startData:n[0]},s.endTime={data:n[1]};break;case 3:s.id=kt(n[0]),s.startTime={type:"getStartDate",startData:n[1]},s.endTime={data:n[2]};break}return s},"parseData"),jt,It,j=[],Ve={},Tn=l(function(t,e){const r={section:pt,type:pt,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},n=xn(It,e);r.raw.startTime=n.startTime,r.raw.endTime=n.endTime,r.id=n.id,r.prevTaskId=It,r.active=n.active,r.done=n.done,r.crit=n.crit,r.milestone=n.milestone,r.vert=n.vert,r.vert?r.order=-1:(r.order=Xt,Xt++);const s=j.push(r);It=r.id,Ve[r.id]=s-1},"addTask"),ut=l(function(t){const e=Ve[t];return j[e]},"findTaskById"),bn=l(function(t,e){const r={section:pt,type:pt,description:t,task:t,classes:[]},n=vn(jt,e);r.startTime=n.startTime,r.endTime=n.endTime,r.id=n.id,r.active=n.active,r.done=n.done,r.crit=n.crit,r.milestone=n.milestone,r.vert=n.vert,jt=r,$t.push(r)},"addTaskOrg"),ve=l(function(){const t=l(function(r){const n=j[r];let s="";switch(j[r].raw.startTime.type){case"prevTaskEnd":{const m=ut(n.prevTaskId);n.startTime=m.endTime;break}case"getStartDate":s=Gt(void 0,et,j[r].raw.startTime.startData),s&&(j[r].startTime=s);break}return j[r].startTime&&(j[r].endTime=Pe(j[r].startTime,et,j[r].raw.endTime.data,xt),j[r].endTime&&(j[r].processed=!0,j[r].manualEndTime=U(j[r].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),Oe(j[r],et,gt,yt))),j[r].processed},"compileTask");let e=!0;for(const[r,n]of j.entries())t(r),e=e&&n.processed;return e},"compileTasks"),wn=l(function(t,e){let r=e;ht().securityLevel!=="loose"&&(r=Ze.sanitizeUrl(e)),t.split(",").forEach(function(n){ut(n)!==void 0&&(ze(n,()=>{window.open(r,"_self")}),Kt.set(n,r))}),Ne(t,"clickable")},"setLink"),Ne=l(function(t,e){t.split(",").forEach(function(r){let n=ut(r);n!==void 0&&n.classes.push(e)})},"setClass"),_n=l(function(t,e,r){if(ht().securityLevel!=="loose"||e===void 0)return;let n=[];if(typeof r=="string"){n=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let m=0;m<n.length;m++){let f=n[m].trim();f.startsWith('"')&&f.endsWith('"')&&(f=f.substr(1,f.length-2)),n[m]=f}}n.length===0&&n.push(t),ut(t)!==void 0&&ze(t,()=>{Ke.runFunc(e,...n)})},"setClickFun"),ze=l(function(t,e){ee.push(function(){const r=ft?`${ft}-${t}`:t,n=document.querySelector(`[id="${r}"]`);n!==null&&n.addEventListener("click",function(){e()})},function(){const r=ft?`${ft}-${t}`:t,n=document.querySelector(`[id="${r}-text"]`);n!==null&&n.addEventListener("click",function(){e()})})},"pushFun"),Dn=l(function(t,e,r){t.split(",").forEach(function(n){_n(n,e,r)}),Ne(t,"clickable")},"setClickEvent"),Sn=l(function(t){ee.forEach(function(e){e(t)})},"bindFunctions"),Cn={getConfig:l(()=>ht().gantt,"getConfig"),clear:Br,setDateFormat:Kr,getDateFormat:an,enableInclusiveEndDates:Jr,endDatesAreInclusive:tn,enableTopAxis:en,topAxisEnabled:rn,setAxisFormat:Xr,getAxisFormat:Gr,setTickInterval:jr,getTickInterval:Ur,setTodayMarker:Zr,getTodayMarker:Qr,setAccTitle:Ge,getAccTitle:Xe,setDiagramTitle:qe,getDiagramTitle:Be,setDiagramId:qr,setDisplayMode:nn,getDisplayMode:sn,setAccDescription:He,getAccDescription:Re,addSection:fn,getSections:hn,getTasks:mn,addTask:Tn,findTaskById:ut,addTaskOrg:bn,setIncludes:on,getIncludes:cn,setExcludes:ln,getExcludes:un,setClickEvent:Dn,setLink:wn,getLinks:dn,bindFunctions:Sn,parseDuration:We,isInvalidDate:Le,setWeekday:kn,getWeekday:yn,setWeekend:gn};function ie(t,e,r){let n=!0;for(;n;)n=!1,r.forEach(function(s){const m="^\\s*"+s+"\\s*$",f=new RegExp(m);t[0].match(f)&&(e[s]=!0,t.shift(1),n=!0)})}l(ie,"getTaskTags");U.extend(Rr);var Mn=l(function(){lt.debug("Something is calling, setConf, remove the call")},"setConf"),xe={monday:cr,tuesday:or,wednesday:ar,thursday:sr,friday:ir,saturday:nr,sunday:rr},En=l((t,e)=>{let r=[...t].map(()=>-1/0),n=[...t].sort((m,f)=>m.startTime-f.startTime||m.order-f.order),s=0;for(const m of n)for(let f=0;f<r.length;f++)if(m.startTime>=r[f]){r[f]=m.endTime,m.order=f+e,f>s&&(s=f);break}return s},"getMaxIntersections"),nt,Rt=1e4,In=l(function(t,e,r,n){const s=ht().gantt;n.db.setDiagramId(e);const m=ht().securityLevel;let f;m==="sandbox"&&(f=bt("#i"+e));const b=m==="sandbox"?bt(f.nodes()[0].contentDocument.body):bt("body"),C=m==="sandbox"?f.nodes()[0].contentDocument:document,L=C.getElementById(e);nt=L.parentElement.offsetWidth,nt===void 0&&(nt=1200),s.useWidth!==void 0&&(nt=s.useWidth);const w=n.db.getTasks(),P=w.filter(h=>!h.vert);let _=[];for(const h of P)_.push(h.type);_=E(_);const D={};let X=2*s.topPadding;if(n.db.getDisplayMode()==="compact"||s.displayMode==="compact"){const h={};for(const v of P)h[v.section]===void 0?h[v.section]=[v]:h[v.section].push(v);let T=0;for(const v of Object.keys(h)){const p=En(h[v],T)+1;T+=p,X+=p*(s.barHeight+s.barGap),D[v]=p}}else{X+=P.length*(s.barHeight+s.barGap);for(const h of _)D[h]=P.filter(T=>T.type===h).length}L.setAttribute("viewBox","0 0 "+nt+" "+X);const R=b.select(`[id="${e}"]`),g=Je().domain([tr(w,function(h){return h.startTime}),er(w,function(h){return h.endTime})]).rangeRound([0,nt-s.leftPadding-s.rightPadding]);function M(h,T){const v=h.startTime,p=T.startTime;let a=0;return v>p?a=1:v<p&&(a=-1),a}l(M,"taskCompare"),w.sort(M),W(w,nt,X),je(R,X,nt,s.useMaxWidth),R.append("text").text(n.db.getDiagramTitle()).attr("x",nt/2).attr("y",s.titleTopMargin).attr("class","titleText");function W(h,T,v){const p=s.barHeight,a=p+s.barGap,d=s.topPadding,y=s.leftPadding,u=lr().domain([0,_.length]).range(["#00B9FA","#F95002"]).interpolate(Sr);H(a,d,y,T,v,h,n.db.getExcludes(),n.db.getIncludes()),I(y,d,T,v),O(h,a,d,y,p,u,T),x(a,d),k(y,d,T,v)}l(W,"makeGantt");function O(h,T,v,p,a,d,y){h.sort((c,$)=>c.vert===$.vert?0:c.vert?1:-1);const u=h.filter(c=>!c.vert),i=[...new Set(u.map(c=>c.order))].map(c=>u.find($=>$.order===c));R.append("g").selectAll("rect").data(i).enter().append("rect").attr("x",0).attr("y",function(c,$){return $=c.order,$*T+v-2}).attr("width",function(){return y-s.rightPadding/2}).attr("height",T).attr("class",function(c){for(const[$,A]of _.entries())if(c.type===A)return"section section"+$%s.numberSectionStyles;return"section section0"}).enter();const Y=R.append("g").selectAll("rect").data(h).enter(),o=n.db.getLinks();if(Y.append("rect").attr("id",function(c){return e+"-"+c.id}).attr("rx",3).attr("ry",3).attr("x",function(c){return c.milestone?g(c.startTime)+p+.5*(g(c.endTime)-g(c.startTime))-.5*a:g(c.startTime)+p}).attr("y",function(c,$){return $=c.order,c.vert?s.gridLineStartPadding:$*T+v}).attr("width",function(c){return c.milestone?a:c.vert?.08*a:g(c.renderEndTime||c.endTime)-g(c.startTime)}).attr("height",function(c){return c.vert?u.length*(s.barHeight+s.barGap)+s.barHeight*2:a}).attr("transform-origin",function(c,$){return $=c.order,(g(c.startTime)+p+.5*(g(c.endTime)-g(c.startTime))).toString()+"px "+($*T+v+.5*a).toString()+"px"}).attr("class",function(c){const $="task";let A="";c.classes.length>0&&(A=c.classes.join(" "));let N=0;for(const[B,V]of _.entries())c.type===V&&(N=B%s.numberSectionStyles);let F="";return c.active?c.crit?F+=" activeCrit":F=" active":c.done?c.crit?F=" doneCrit":F=" done":c.crit&&(F+=" crit"),F.length===0&&(F=" task"),c.milestone&&(F=" milestone "+F),c.vert&&(F=" vert "+F),F+=N,F+=" "+A,$+F}),Y.append("text").attr("id",function(c){return e+"-"+c.id+"-text"}).text(function(c){return c.task}).attr("font-size",s.fontSize).attr("x",function(c){let $=g(c.startTime),A=g(c.renderEndTime||c.endTime);if(c.milestone&&($+=.5*(g(c.endTime)-g(c.startTime))-.5*a,A=$+a),c.vert)return g(c.startTime)+p;const N=this.getBBox().width;return N>A-$?A+N+1.5*s.leftPadding>y?$+p-5:A+p+5:(A-$)/2+$+p}).attr("y",function(c,$){return c.vert?s.gridLineStartPadding+u.length*(s.barHeight+s.barGap)+60:($=c.order,$*T+s.barHeight/2+(s.fontSize/2-2)+v)}).attr("text-height",a).attr("class",function(c){const $=g(c.startTime);let A=g(c.endTime);c.milestone&&(A=$+a);const N=this.getBBox().width;let F="";c.classes.length>0&&(F=c.classes.join(" "));let B=0;for(const[st,ot]of _.entries())c.type===ot&&(B=st%s.numberSectionStyles);let V="";return c.active&&(c.crit?V="activeCritText"+B:V="activeText"+B),c.done?c.crit?V=V+" doneCritText"+B:V=V+" doneText"+B:c.crit&&(V=V+" critText"+B),c.milestone&&(V+=" milestoneText"),c.vert&&(V+=" vertText"),N>A-$?A+N+1.5*s.leftPadding>y?F+" taskTextOutsideLeft taskTextOutside"+B+" "+V:F+" taskTextOutsideRight taskTextOutside"+B+" "+V+" width-"+N:F+" taskText taskText"+B+" "+V+" width-"+N}),ht().securityLevel==="sandbox"){let c;c=bt("#i"+e);const $=c.nodes()[0].contentDocument;Y.filter(function(A){return o.has(A.id)}).each(function(A){var N=$.querySelector("#"+CSS.escape(e+"-"+A.id)),F=$.querySelector("#"+CSS.escape(e+"-"+A.id+"-text"));const B=N.parentNode;var V=$.createElement("a");V.setAttribute("xlink:href",o.get(A.id)),V.setAttribute("target","_top"),B.appendChild(V),V.appendChild(N),V.appendChild(F)})}}l(O,"drawRects");function H(h,T,v,p,a,d,y,u){if(y.length===0&&u.length===0)return;let S,i;for(const{startTime:A,endTime:N}of d)(S===void 0||A<S)&&(S=A),(i===void 0||N>i)&&(i=N);if(!S||!i)return;if(U(i).diff(U(S),"year")>5){lt.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}const Y=n.db.getDateFormat(),o=[];let q=null,c=U(S);for(;c.valueOf()<=i;)n.db.isInvalidDate(c,Y,y,u)?q?q.end=c:q={start:c,end:c}:q&&(o.push(q),q=null),c=c.add(1,"d");R.append("g").selectAll("rect").data(o).enter().append("rect").attr("id",A=>e+"-exclude-"+A.start.format("YYYY-MM-DD")).attr("x",A=>g(A.start.startOf("day"))+v).attr("y",s.gridLineStartPadding).attr("width",A=>g(A.end.endOf("day"))-g(A.start.startOf("day"))).attr("height",a-T-s.gridLineStartPadding).attr("transform-origin",function(A,N){return(g(A.start)+v+.5*(g(A.end)-g(A.start))).toString()+"px "+(N*h+.5*a).toString()+"px"}).attr("class","exclude-range")}l(H,"drawExcludeDays");function z(h,T,v,p){if(v<=0||h>T)return 1/0;const a=T-h,d=U.duration({[p??"day"]:v}).asMilliseconds();return d<=0?1/0:Math.ceil(a/d)}l(z,"getEstimatedTickCount");function I(h,T,v,p){const a=n.db.getDateFormat(),d=n.db.getAxisFormat();let y;d?y=d:a==="D"?y="%d":y=s.axisFormat??"%Y-%m-%d";let u=vr(g).tickSize(-p+T+s.gridLineStartPadding).tickFormat(ae(y));const i=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(n.db.getTickInterval()||s.tickInterval);if(i!==null){const Y=parseInt(i[1],10);if(isNaN(Y)||Y<=0)lt.warn(`Invalid tick interval value: "${i[1]}". Skipping custom tick interval.`);else{const o=i[2],q=n.db.getWeekday()||s.weekday,c=g.domain(),$=c[0],A=c[1],N=z($,A,Y,o);if(N>Rt)lt.warn(`The tick interval "${Y}${o}" would generate ${N} ticks, which exceeds the maximum allowed (${Rt}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(o){case"millisecond":u.ticks(fe.every(Y));break;case"second":u.ticks(de.every(Y));break;case"minute":u.ticks(ue.every(Y));break;case"hour":u.ticks(le.every(Y));break;case"day":u.ticks(ce.every(Y));break;case"week":u.ticks(xe[q].every(Y));break;case"month":u.ticks(oe.every(Y));break}}}if(R.append("g").attr("class","grid").attr("transform","translate("+h+", "+(p-50)+")").call(u).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),n.db.topAxisEnabled()||s.topAxis){let Y=pr(g).tickSize(-p+T+s.gridLineStartPadding).tickFormat(ae(y));if(i!==null){const o=parseInt(i[1],10);if(isNaN(o)||o<=0)lt.warn(`Invalid tick interval value: "${i[1]}". Skipping custom tick interval.`);else{const q=i[2],c=n.db.getWeekday()||s.weekday,$=g.domain(),A=$[0],N=$[1];if(z(A,N,o,q)<=Rt)switch(q){case"millisecond":Y.ticks(fe.every(o));break;case"second":Y.ticks(de.every(o));break;case"minute":Y.ticks(ue.every(o));break;case"hour":Y.ticks(le.every(o));break;case"day":Y.ticks(ce.every(o));break;case"week":Y.ticks(xe[c].every(o));break;case"month":Y.ticks(oe.every(o));break}}}R.append("g").attr("class","grid").attr("transform","translate("+h+", "+T+")").call(Y).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}l(I,"makeGrid");function x(h,T){let v=0;const p=Object.keys(D).map(a=>[a,D[a]]);R.append("g").selectAll("text").data(p).enter().append(function(a){const d=a[0].split(Ue.lineBreakRegex),y=-(d.length-1)/2,u=C.createElementNS("http://www.w3.org/2000/svg","text");u.setAttribute("dy",y+"em");for(const[S,i]of d.entries()){const Y=C.createElementNS("http://www.w3.org/2000/svg","tspan");Y.setAttribute("alignment-baseline","central"),Y.setAttribute("x","10"),S>0&&Y.setAttribute("dy","1em"),Y.textContent=i,u.appendChild(Y)}return u}).attr("x",10).attr("y",function(a,d){if(d>0)for(let y=0;y<d;y++)return v+=p[d-1][1],a[1]*h/2+v*h+T;else return a[1]*h/2+T}).attr("font-size",s.sectionFontSize).attr("class",function(a){for(const[d,y]of _.entries())if(a[0]===y)return"sectionTitle sectionTitle"+d%s.numberSectionStyles;return"sectionTitle"})}l(x,"vertLabels");function k(h,T,v,p){const a=n.db.getTodayMarker();if(a==="off")return;const d=R.append("g").attr("class","today"),y=new Date,u=d.append("line");u.attr("x1",g(y)+h).attr("x2",g(y)+h).attr("y1",s.titleTopMargin).attr("y2",p-s.titleTopMargin).attr("class","today"),a!==""&&u.attr("style",a.replace(/,/g,";"))}l(k,"drawToday");function E(h){const T={},v=[];for(let p=0,a=h.length;p<a;++p)Object.prototype.hasOwnProperty.call(T,h[p])||(T[h[p]]=!0,v.push(h[p]));return v}l(E,"checkUnique")},"draw"),Yn={setConf:Mn,draw:In},$n=l(t=>`
|
|
7
|
-
.mermaid-main-font {
|
|
8
|
-
font-family: ${t.fontFamily};
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.exclude-range {
|
|
12
|
-
fill: ${t.excludeBkgColor};
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.section {
|
|
16
|
-
stroke: none;
|
|
17
|
-
opacity: 0.2;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.section0 {
|
|
21
|
-
fill: ${t.sectionBkgColor};
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.section2 {
|
|
25
|
-
fill: ${t.sectionBkgColor2};
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.section1,
|
|
29
|
-
.section3 {
|
|
30
|
-
fill: ${t.altSectionBkgColor};
|
|
31
|
-
opacity: 0.2;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.sectionTitle0 {
|
|
35
|
-
fill: ${t.titleColor};
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.sectionTitle1 {
|
|
39
|
-
fill: ${t.titleColor};
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.sectionTitle2 {
|
|
43
|
-
fill: ${t.titleColor};
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.sectionTitle3 {
|
|
47
|
-
fill: ${t.titleColor};
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.sectionTitle {
|
|
51
|
-
text-anchor: start;
|
|
52
|
-
font-family: ${t.fontFamily};
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
/* Grid and axis */
|
|
57
|
-
|
|
58
|
-
.grid .tick {
|
|
59
|
-
stroke: ${t.gridColor};
|
|
60
|
-
opacity: 0.8;
|
|
61
|
-
shape-rendering: crispEdges;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.grid .tick text {
|
|
65
|
-
font-family: ${t.fontFamily};
|
|
66
|
-
fill: ${t.textColor};
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.grid path {
|
|
70
|
-
stroke-width: 0;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
/* Today line */
|
|
75
|
-
|
|
76
|
-
.today {
|
|
77
|
-
fill: none;
|
|
78
|
-
stroke: ${t.todayLineColor};
|
|
79
|
-
stroke-width: 2px;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
/* Task styling */
|
|
84
|
-
|
|
85
|
-
/* Default task */
|
|
86
|
-
|
|
87
|
-
.task {
|
|
88
|
-
stroke-width: 2;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.taskText {
|
|
92
|
-
text-anchor: middle;
|
|
93
|
-
font-family: ${t.fontFamily};
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.taskTextOutsideRight {
|
|
97
|
-
fill: ${t.taskTextDarkColor};
|
|
98
|
-
text-anchor: start;
|
|
99
|
-
font-family: ${t.fontFamily};
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.taskTextOutsideLeft {
|
|
103
|
-
fill: ${t.taskTextDarkColor};
|
|
104
|
-
text-anchor: end;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
/* Special case clickable */
|
|
109
|
-
|
|
110
|
-
.task.clickable {
|
|
111
|
-
cursor: pointer;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.taskText.clickable {
|
|
115
|
-
cursor: pointer;
|
|
116
|
-
fill: ${t.taskTextClickableColor} !important;
|
|
117
|
-
font-weight: bold;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.taskTextOutsideLeft.clickable {
|
|
121
|
-
cursor: pointer;
|
|
122
|
-
fill: ${t.taskTextClickableColor} !important;
|
|
123
|
-
font-weight: bold;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.taskTextOutsideRight.clickable {
|
|
127
|
-
cursor: pointer;
|
|
128
|
-
fill: ${t.taskTextClickableColor} !important;
|
|
129
|
-
font-weight: bold;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
/* Specific task settings for the sections*/
|
|
134
|
-
|
|
135
|
-
.taskText0,
|
|
136
|
-
.taskText1,
|
|
137
|
-
.taskText2,
|
|
138
|
-
.taskText3 {
|
|
139
|
-
fill: ${t.taskTextColor};
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.task0,
|
|
143
|
-
.task1,
|
|
144
|
-
.task2,
|
|
145
|
-
.task3 {
|
|
146
|
-
fill: ${t.taskBkgColor};
|
|
147
|
-
stroke: ${t.taskBorderColor};
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.taskTextOutside0,
|
|
151
|
-
.taskTextOutside2
|
|
152
|
-
{
|
|
153
|
-
fill: ${t.taskTextOutsideColor};
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.taskTextOutside1,
|
|
157
|
-
.taskTextOutside3 {
|
|
158
|
-
fill: ${t.taskTextOutsideColor};
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
/* Active task */
|
|
163
|
-
|
|
164
|
-
.active0,
|
|
165
|
-
.active1,
|
|
166
|
-
.active2,
|
|
167
|
-
.active3 {
|
|
168
|
-
fill: ${t.activeTaskBkgColor};
|
|
169
|
-
stroke: ${t.activeTaskBorderColor};
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
.activeText0,
|
|
173
|
-
.activeText1,
|
|
174
|
-
.activeText2,
|
|
175
|
-
.activeText3 {
|
|
176
|
-
fill: ${t.taskTextDarkColor} !important;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
/* Completed task */
|
|
181
|
-
|
|
182
|
-
.done0,
|
|
183
|
-
.done1,
|
|
184
|
-
.done2,
|
|
185
|
-
.done3 {
|
|
186
|
-
stroke: ${t.doneTaskBorderColor};
|
|
187
|
-
fill: ${t.doneTaskBkgColor};
|
|
188
|
-
stroke-width: 2;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
.doneText0,
|
|
192
|
-
.doneText1,
|
|
193
|
-
.doneText2,
|
|
194
|
-
.doneText3 {
|
|
195
|
-
fill: ${t.taskTextDarkColor} !important;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
/* Done task text displayed outside the bar sits against the diagram background,
|
|
199
|
-
not against the done-task bar, so it must use the outside/contrast color. */
|
|
200
|
-
.doneText0.taskTextOutsideLeft,
|
|
201
|
-
.doneText0.taskTextOutsideRight,
|
|
202
|
-
.doneText1.taskTextOutsideLeft,
|
|
203
|
-
.doneText1.taskTextOutsideRight,
|
|
204
|
-
.doneText2.taskTextOutsideLeft,
|
|
205
|
-
.doneText2.taskTextOutsideRight,
|
|
206
|
-
.doneText3.taskTextOutsideLeft,
|
|
207
|
-
.doneText3.taskTextOutsideRight {
|
|
208
|
-
fill: ${t.taskTextOutsideColor} !important;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
/* Tasks on the critical line */
|
|
213
|
-
|
|
214
|
-
.crit0,
|
|
215
|
-
.crit1,
|
|
216
|
-
.crit2,
|
|
217
|
-
.crit3 {
|
|
218
|
-
stroke: ${t.critBorderColor};
|
|
219
|
-
fill: ${t.critBkgColor};
|
|
220
|
-
stroke-width: 2;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
.activeCrit0,
|
|
224
|
-
.activeCrit1,
|
|
225
|
-
.activeCrit2,
|
|
226
|
-
.activeCrit3 {
|
|
227
|
-
stroke: ${t.critBorderColor};
|
|
228
|
-
fill: ${t.activeTaskBkgColor};
|
|
229
|
-
stroke-width: 2;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
.doneCrit0,
|
|
233
|
-
.doneCrit1,
|
|
234
|
-
.doneCrit2,
|
|
235
|
-
.doneCrit3 {
|
|
236
|
-
stroke: ${t.critBorderColor};
|
|
237
|
-
fill: ${t.doneTaskBkgColor};
|
|
238
|
-
stroke-width: 2;
|
|
239
|
-
cursor: pointer;
|
|
240
|
-
shape-rendering: crispEdges;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
.milestone {
|
|
244
|
-
transform: rotate(45deg) scale(0.8,0.8);
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
.milestoneText {
|
|
248
|
-
font-style: italic;
|
|
249
|
-
}
|
|
250
|
-
.doneCritText0,
|
|
251
|
-
.doneCritText1,
|
|
252
|
-
.doneCritText2,
|
|
253
|
-
.doneCritText3 {
|
|
254
|
-
fill: ${t.taskTextDarkColor} !important;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
/* Done-crit task text outside the bar — same reasoning as doneText above. */
|
|
258
|
-
.doneCritText0.taskTextOutsideLeft,
|
|
259
|
-
.doneCritText0.taskTextOutsideRight,
|
|
260
|
-
.doneCritText1.taskTextOutsideLeft,
|
|
261
|
-
.doneCritText1.taskTextOutsideRight,
|
|
262
|
-
.doneCritText2.taskTextOutsideLeft,
|
|
263
|
-
.doneCritText2.taskTextOutsideRight,
|
|
264
|
-
.doneCritText3.taskTextOutsideLeft,
|
|
265
|
-
.doneCritText3.taskTextOutsideRight {
|
|
266
|
-
fill: ${t.taskTextOutsideColor} !important;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
.vert {
|
|
270
|
-
stroke: ${t.vertLineColor};
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
.vertText {
|
|
274
|
-
font-size: 15px;
|
|
275
|
-
text-anchor: middle;
|
|
276
|
-
fill: ${t.vertLineColor} !important;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
.activeCritText0,
|
|
280
|
-
.activeCritText1,
|
|
281
|
-
.activeCritText2,
|
|
282
|
-
.activeCritText3 {
|
|
283
|
-
fill: ${t.taskTextDarkColor} !important;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
.titleText {
|
|
287
|
-
text-anchor: middle;
|
|
288
|
-
font-size: 18px;
|
|
289
|
-
fill: ${t.titleColor||t.textColor};
|
|
290
|
-
font-family: ${t.fontFamily};
|
|
291
|
-
}
|
|
292
|
-
`,"getStyles"),An=$n,Hn={parser:Hr,db:Cn,renderer:Yn,styles:An};export{Hn as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A as F,a as y,c as kn,B as Pn,e as Q,C as nn,D as Nn,E as Qn,F as ne,l as ee,H as re,q as te,I as ie,v as A,J as ae,K as cn,L as oe,M as Ln,t as ue,y as R,k as de,N as fe,O as _n,P as Cn,Q as se,R as en,T as In,V as ce,W as Rn,z as D,n as le,X as he,Y as ve,G as g,Z as c,_ as pe,i as m,$ as T,a0 as O,a1 as G}from"./graph-C9eacEi8.js";import{g as we,b as be,k as V,a as Tn,c as me,d as ge,e as ye,f as xe,i as Ee,h as Mn,j as Oe,m as w}from"./map-Czzmt4hB.js";var ke=/\s/;function Pe(n){for(var e=n.length;e--&&ke.test(n.charAt(e)););return e}var Ne=/^\s+/;function Le(n){return n&&n.slice(0,Pe(n)+1).replace(Ne,"")}var ln=NaN,_e=/^[-+]0x[0-9a-f]+$/i,Ce=/^0b[01]+$/i,Ie=/^0o[0-7]+$/i,Re=parseInt;function Te(n){if(typeof n=="number")return n;if(F(n))return ln;if(y(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=y(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=Le(n);var r=Ce.test(n);return r||Ie.test(n)?Re(n.slice(2),r?2:8):_e.test(n)?ln:+n}var hn=1/0,Me=17976931348623157e292;function S(n){if(!n)return n===0?n:0;if(n=Te(n),n===hn||n===-hn){var e=n<0?-1:1;return e*Me}return n===n?n:0}function Se(n){var e=S(n),r=e%1;return e===e?r?e-r:e:0}function _(n,e,r){if(!y(r))return!1;var t=typeof e;return(t=="number"?kn(r)&&Pn(e,r.length):t=="string"&&e in r)?Q(r[e],n):!1}function Fe(n){return nn(function(e,r){var t=-1,i=r.length,o=i>1?r[i-1]:void 0,a=i>2?r[2]:void 0;for(o=n.length>3&&typeof o=="function"?(i--,o):void 0,a&&_(r[0],r[1],a)&&(o=i<3?void 0:o,i=1),e=Object(e);++t<i;){var u=r[t];u&&n(e,u,t,o)}return e})}function P(n){var e=n==null?0:n.length;return e?Nn(n):[]}function Ae(n){return Qn(ne(n,void 0,P),n+"")}var Be="[object Object]",je=Function.prototype,Ge=Object.prototype,Sn=je.toString,Ve=Ge.hasOwnProperty,Ye=Sn.call(Object);function $e(n){if(!ee(n)||re(n)!=Be)return!1;var e=we(n);if(e===null)return!0;var r=Ve.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Sn.call(r)==Ye}var De=1,qe=4;function We(n){return be(n,De|qe)}var Fn=Object.prototype,Xe=Fn.hasOwnProperty,He=nn(function(n,e){n=Object(n);var r=-1,t=e.length,i=t>2?e[2]:void 0;for(i&&_(e[0],e[1],i)&&(t=1);++r<t;)for(var o=e[r],a=V(o),u=-1,d=a.length;++u<d;){var f=a[u],s=n[f];(s===void 0||Q(s,Fn[f])&&!Xe.call(n,f))&&(n[f]=o[f])}return n});function U(n,e,r){(r!==void 0&&!Q(n[e],r)||r===void 0&&!(e in n))&&Tn(n,e,r)}function J(n,e){if(!(e==="constructor"&&typeof n[e]=="function")&&e!="__proto__")return n[e]}function ze(n){return me(n,V(n))}function Ue(n,e,r,t,i,o,a){var u=J(n,r),d=J(e,r),f=a.get(d);if(f){U(n,r,f);return}var s=o?o(u,d,r+"",n,e,a):void 0,l=s===void 0;if(l){var h=A(d),v=!h&&te(d),p=!h&&!v&&ie(d);s=d,h||v||p?A(u)?s=u:ae(u)?s=ge(u):v?(l=!1,s=ye(d,!0)):p?(l=!1,s=xe(d,!0)):s=[]:$e(d)||cn(d)?(s=u,cn(u)?s=ze(u):(!y(u)||oe(u))&&(s=Ee(d))):l=!1}l&&(a.set(d,s),i(s,d,t,o,a),a.delete(d)),U(n,r,s)}function An(n,e,r,t,i){n!==e&&Ln(e,function(o,a){if(i||(i=new ue),y(o))Ue(n,e,a,r,An,t,i);else{var u=t?t(J(n,a),o,a+"",n,e,i):void 0;u===void 0&&(u=o),U(n,a,u)}},V)}function B(n){var e=n==null?0:n.length;return e?n[e-1]:void 0}function Je(n){return function(e,r,t){var i=Object(e);if(!kn(e)){var o=R(r);e=de(e),r=function(u){return o(i[u],u,i)}}var a=n(e,r,t);return a>-1?i[o?e[a]:a]:void 0}}var Ke=Math.max;function Ze(n,e,r){var t=n==null?0:n.length;if(!t)return-1;var i=r==null?0:Se(r);return i<0&&(i=Ke(t+i,0)),fe(n,R(e),i)}var rn=Je(Ze);function Qe(n,e){return n==null?n:Ln(n,_n(e),V)}function nr(n,e){return n&&Cn(n,_n(e))}function er(n,e){return n>e}var rr=Object.prototype,tr=rr.hasOwnProperty;function ir(n,e){return n!=null&&tr.call(n,e)}function Bn(n,e){return n!=null&&se(n,e,ir)}function jn(n,e){return n<e}function Y(n,e){var r={};return e=R(e),Cn(n,function(t,i,o){Tn(r,i,e(t,i,o))}),r}function tn(n,e,r){for(var t=-1,i=n.length;++t<i;){var o=n[t],a=e(o);if(a!=null&&(u===void 0?a===a&&!F(a):r(a,u)))var u=a,d=o}return d}function x(n){return n&&n.length?tn(n,en,er):void 0}var K=Fe(function(n,e,r){An(n,e,r)});function C(n){return n&&n.length?tn(n,en,jn):void 0}function an(n,e){return n&&n.length?tn(n,R(e),jn):void 0}function ar(n,e,r,t){if(!y(n))return n;e=In(e,n);for(var i=-1,o=e.length,a=o-1,u=n;u!=null&&++i<o;){var d=ce(e[i]),f=r;if(d==="__proto__"||d==="constructor"||d==="prototype")return n;if(i!=a){var s=u[d];f=void 0,f===void 0&&(f=y(s)?s:Pn(e[i+1])?[]:{})}Mn(u,d,f),u=u[d]}return n}function or(n,e,r){for(var t=-1,i=e.length,o={};++t<i;){var a=e[t],u=Rn(n,a);r(u,a)&&ar(o,In(a,n),u)}return o}function ur(n,e){var r=n.length;for(n.sort(e);r--;)n[r]=n[r].value;return n}function dr(n,e){if(n!==e){var r=n!==void 0,t=n===null,i=n===n,o=F(n),a=e!==void 0,u=e===null,d=e===e,f=F(e);if(!u&&!f&&!o&&n>e||o&&a&&d&&!u&&!f||t&&a&&d||!r&&d||!i)return 1;if(!t&&!o&&!f&&n<e||f&&r&&i&&!t&&!o||u&&r&&i||!a&&i||!d)return-1}return 0}function fr(n,e,r){for(var t=-1,i=n.criteria,o=e.criteria,a=i.length,u=r.length;++t<a;){var d=dr(i[t],o[t]);if(d){if(t>=u)return d;var f=r[t];return d*(f=="desc"?-1:1)}}return n.index-e.index}function sr(n,e,r){e.length?e=D(e,function(o){return A(o)?function(a){return Rn(a,o.length===1?o[0]:o)}:o}):e=[en];var t=-1;e=D(e,le(R));var i=Oe(n,function(o,a,u){var d=D(e,function(f){return f(o)});return{criteria:d,index:++t,value:o}});return ur(i,function(o,a){return fr(o,a,r)})}function cr(n,e){return or(n,e,function(r,t){return he(n,t)})}var j=Ae(function(n,e){return n==null?{}:cr(n,e)}),lr=Math.ceil,hr=Math.max;function vr(n,e,r,t){for(var i=-1,o=hr(lr((e-n)/(r||1)),0),a=Array(o);o--;)a[++i]=n,n+=r;return a}function pr(n){return function(e,r,t){return t&&typeof t!="number"&&_(e,r,t)&&(r=t=void 0),e=S(e),r===void 0?(r=e,e=0):r=S(r),t=t===void 0?e<r?1:-1:S(t),vr(e,r,t)}}var k=pr(),M=nn(function(n,e){if(n==null)return[];var r=e.length;return r>1&&_(n,e[0],e[1])?e=[]:r>2&&_(e[0],e[1],e[2])&&(e=[e[0]]),sr(n,Nn(e),[])}),wr=0;function on(n){var e=++wr;return ve(n)+e}function br(n,e,r){for(var t=-1,i=n.length,o=e.length,a={};++t<i;){var u=t<o?e[t]:void 0;r(a,n[t],u)}return a}function mr(n,e){return br(n||[],e||[],Mn)}class gr{constructor(){var e={};e._next=e._prev=e,this._sentinel=e}dequeue(){var e=this._sentinel,r=e._prev;if(r!==e)return vn(r),r}enqueue(e){var r=this._sentinel;e._prev&&e._next&&vn(e),e._next=r._next,r._next._prev=e,r._next=e,e._prev=r}toString(){for(var e=[],r=this._sentinel,t=r._prev;t!==r;)e.push(JSON.stringify(t,yr)),t=t._prev;return"["+e.join(", ")+"]"}}function vn(n){n._prev._next=n._next,n._next._prev=n._prev,delete n._next,delete n._prev}function yr(n,e){if(n!=="_next"&&n!=="_prev")return e}var xr=pe(1);function Er(n,e){if(n.nodeCount()<=1)return[];var r=kr(n,e||xr),t=Or(r.graph,r.buckets,r.zeroIdx);return P(w(t,function(i){return n.outEdges(i.v,i.w)}))}function Or(n,e,r){for(var t=[],i=e[e.length-1],o=e[0],a;n.nodeCount();){for(;a=o.dequeue();)q(n,e,r,a);for(;a=i.dequeue();)q(n,e,r,a);if(n.nodeCount()){for(var u=e.length-2;u>0;--u)if(a=e[u].dequeue(),a){t=t.concat(q(n,e,r,a,!0));break}}}return t}function q(n,e,r,t,i){var o=i?[]:void 0;return c(n.inEdges(t.v),function(a){var u=n.edge(a),d=n.node(a.v);i&&o.push({v:a.v,w:a.w}),d.out-=u,Z(e,r,d)}),c(n.outEdges(t.v),function(a){var u=n.edge(a),d=a.w,f=n.node(d);f.in-=u,Z(e,r,f)}),n.removeNode(t.v),o}function kr(n,e){var r=new g,t=0,i=0;c(n.nodes(),function(u){r.setNode(u,{v:u,in:0,out:0})}),c(n.edges(),function(u){var d=r.edge(u.v,u.w)||0,f=e(u),s=d+f;r.setEdge(u.v,u.w,s),i=Math.max(i,r.node(u.v).out+=f),t=Math.max(t,r.node(u.w).in+=f)});var o=k(i+t+3).map(function(){return new gr}),a=t+1;return c(r.nodes(),function(u){Z(o,a,r.node(u))}),{graph:r,buckets:o,zeroIdx:a}}function Z(n,e,r){r.out?r.in?n[r.out-r.in+e].enqueue(r):n[n.length-1].enqueue(r):n[0].enqueue(r)}function Pr(n){var e=n.graph().acyclicer==="greedy"?Er(n,r(n)):Nr(n);c(e,function(t){var i=n.edge(t);n.removeEdge(t),i.forwardName=t.name,i.reversed=!0,n.setEdge(t.w,t.v,i,on("rev"))});function r(t){return function(i){return t.edge(i).weight}}}function Nr(n){var e=[],r={},t={};function i(o){Object.prototype.hasOwnProperty.call(t,o)||(t[o]=!0,r[o]=!0,c(n.outEdges(o),function(a){Object.prototype.hasOwnProperty.call(r,a.w)?e.push(a):i(a.w)}),delete r[o])}return c(n.nodes(),i),e}function Lr(n){c(n.edges(),function(e){var r=n.edge(e);if(r.reversed){n.removeEdge(e);var t=r.forwardName;delete r.reversed,delete r.forwardName,n.setEdge(e.w,e.v,r,t)}})}function N(n,e,r,t){var i;do i=on(t);while(n.hasNode(i));return r.dummy=e,n.setNode(i,r),i}function _r(n){var e=new g().setGraph(n.graph());return c(n.nodes(),function(r){e.setNode(r,n.node(r))}),c(n.edges(),function(r){var t=e.edge(r.v,r.w)||{weight:0,minlen:1},i=n.edge(r);e.setEdge(r.v,r.w,{weight:t.weight+i.weight,minlen:Math.max(t.minlen,i.minlen)})}),e}function Gn(n){var e=new g({multigraph:n.isMultigraph()}).setGraph(n.graph());return c(n.nodes(),function(r){n.children(r).length||e.setNode(r,n.node(r))}),c(n.edges(),function(r){e.setEdge(r,n.edge(r))}),e}function pn(n,e){var r=n.x,t=n.y,i=e.x-r,o=e.y-t,a=n.width/2,u=n.height/2;if(!i&&!o)throw new Error("Not possible to find intersection inside of the rectangle");var d,f;return Math.abs(o)*a>Math.abs(i)*u?(o<0&&(u=-u),d=u*i/o,f=u):(i<0&&(a=-a),d=a,f=a*o/i),{x:r+d,y:t+f}}function $(n){var e=w(k(Vn(n)+1),function(){return[]});return c(n.nodes(),function(r){var t=n.node(r),i=t.rank;m(i)||(e[i][t.order]=r)}),e}function Cr(n){var e=C(w(n.nodes(),function(r){return n.node(r).rank}));c(n.nodes(),function(r){var t=n.node(r);Bn(t,"rank")&&(t.rank-=e)})}function Ir(n){var e=C(w(n.nodes(),function(o){return n.node(o).rank})),r=[];c(n.nodes(),function(o){var a=n.node(o).rank-e;r[a]||(r[a]=[]),r[a].push(o)});var t=0,i=n.graph().nodeRankFactor;c(r,function(o,a){m(o)&&a%i!==0?--t:t&&c(o,function(u){n.node(u).rank+=t})})}function wn(n,e,r,t){var i={width:0,height:0};return arguments.length>=4&&(i.rank=r,i.order=t),N(n,"border",i,e)}function Vn(n){return x(w(n.nodes(),function(e){var r=n.node(e).rank;if(!m(r))return r}))}function Rr(n,e){var r={lhs:[],rhs:[]};return c(n,function(t){e(t)?r.lhs.push(t):r.rhs.push(t)}),r}function Tr(n,e){return e()}function Mr(n){function e(r){var t=n.children(r),i=n.node(r);if(t.length&&c(t,e),Object.prototype.hasOwnProperty.call(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var o=i.minRank,a=i.maxRank+1;o<a;++o)bn(n,"borderLeft","_bl",r,i,o),bn(n,"borderRight","_br",r,i,o)}}c(n.children(),e)}function bn(n,e,r,t,i,o){var a={width:0,height:0,rank:o,borderType:e},u=i[e][o-1],d=N(n,"border",a,r);i[e][o]=d,n.setParent(d,t),u&&n.setEdge(u,d,{weight:1})}function Sr(n){var e=n.graph().rankdir.toLowerCase();(e==="lr"||e==="rl")&&Yn(n)}function Fr(n){var e=n.graph().rankdir.toLowerCase();(e==="bt"||e==="rl")&&Ar(n),(e==="lr"||e==="rl")&&(Br(n),Yn(n))}function Yn(n){c(n.nodes(),function(e){mn(n.node(e))}),c(n.edges(),function(e){mn(n.edge(e))})}function mn(n){var e=n.width;n.width=n.height,n.height=e}function Ar(n){c(n.nodes(),function(e){W(n.node(e))}),c(n.edges(),function(e){var r=n.edge(e);c(r.points,W),Object.prototype.hasOwnProperty.call(r,"y")&&W(r)})}function W(n){n.y=-n.y}function Br(n){c(n.nodes(),function(e){X(n.node(e))}),c(n.edges(),function(e){var r=n.edge(e);c(r.points,X),Object.prototype.hasOwnProperty.call(r,"x")&&X(r)})}function X(n){var e=n.x;n.x=n.y,n.y=e}function jr(n){n.graph().dummyChains=[],c(n.edges(),function(e){Gr(n,e)})}function Gr(n,e){var r=e.v,t=n.node(r).rank,i=e.w,o=n.node(i).rank,a=e.name,u=n.edge(e),d=u.labelRank;if(o!==t+1){n.removeEdge(e);var f=void 0,s,l;for(l=0,++t;t<o;++l,++t)u.points=[],f={width:0,height:0,edgeLabel:u,edgeObj:e,rank:t},s=N(n,"edge",f,"_d"),t===d&&(f.width=u.width,f.height=u.height,f.dummy="edge-label",f.labelpos=u.labelpos),n.setEdge(r,s,{weight:u.weight},a),l===0&&n.graph().dummyChains.push(s),r=s;n.setEdge(r,i,{weight:u.weight},a)}}function Vr(n){c(n.graph().dummyChains,function(e){var r=n.node(e),t=r.edgeLabel,i;for(n.setEdge(r.edgeObj,t);r.dummy;)i=n.successors(e)[0],n.removeNode(e),t.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height),e=i,r=n.node(e)})}function un(n){var e={};function r(t){var i=n.node(t);if(Object.prototype.hasOwnProperty.call(e,t))return i.rank;e[t]=!0;var o=C(w(n.outEdges(t),function(a){return r(a.w)-n.edge(a).minlen}));return(o===Number.POSITIVE_INFINITY||o===void 0||o===null)&&(o=0),i.rank=o}c(n.sources(),r)}function I(n,e){return n.node(e.w).rank-n.node(e.v).rank-n.edge(e).minlen}function $n(n){var e=new g({directed:!1}),r=n.nodes()[0],t=n.nodeCount();e.setNode(r,{});for(var i,o;Yr(e,n)<t;)i=$r(e,n),o=e.hasNode(i.v)?I(n,i):-I(n,i),Dr(e,n,o);return e}function Yr(n,e){function r(t){c(e.nodeEdges(t),function(i){var o=i.v,a=t===o?i.w:o;!n.hasNode(a)&&!I(e,i)&&(n.setNode(a,{}),n.setEdge(t,a,{}),r(a))})}return c(n.nodes(),r),n.nodeCount()}function $r(n,e){return an(e.edges(),function(r){if(n.hasNode(r.v)!==n.hasNode(r.w))return I(e,r)})}function Dr(n,e,r){c(n.nodes(),function(t){e.node(t).rank+=r})}function qr(){}qr.prototype=new Error;function Dn(n,e,r){A(e)||(e=[e]);var t=(n.isDirected()?n.successors:n.neighbors).bind(n),i=[],o={};return c(e,function(a){if(!n.hasNode(a))throw new Error("Graph does not have node: "+a);qn(n,a,r==="post",o,t,i)}),i}function qn(n,e,r,t,i,o){Object.prototype.hasOwnProperty.call(t,e)||(t[e]=!0,r||o.push(e),c(i(e),function(a){qn(n,a,r,t,i,o)}),r&&o.push(e))}function Wr(n,e){return Dn(n,e,"post")}function Xr(n,e){return Dn(n,e,"pre")}E.initLowLimValues=fn;E.initCutValues=dn;E.calcCutValue=Wn;E.leaveEdge=Hn;E.enterEdge=zn;E.exchangeEdges=Un;function E(n){n=_r(n),un(n);var e=$n(n);fn(e),dn(e,n);for(var r,t;r=Hn(e);)t=zn(e,n,r),Un(e,n,r,t)}function dn(n,e){var r=Wr(n,n.nodes());r=r.slice(0,r.length-1),c(r,function(t){Hr(n,e,t)})}function Hr(n,e,r){var t=n.node(r),i=t.parent;n.edge(r,i).cutvalue=Wn(n,e,r)}function Wn(n,e,r){var t=n.node(r),i=t.parent,o=!0,a=e.edge(r,i),u=0;return a||(o=!1,a=e.edge(i,r)),u=a.weight,c(e.nodeEdges(r),function(d){var f=d.v===r,s=f?d.w:d.v;if(s!==i){var l=f===o,h=e.edge(d).weight;if(u+=l?h:-h,Ur(n,r,s)){var v=n.edge(r,s).cutvalue;u+=l?-v:v}}}),u}function fn(n,e){arguments.length<2&&(e=n.nodes()[0]),Xn(n,{},1,e)}function Xn(n,e,r,t,i){var o=r,a=n.node(t);return e[t]=!0,c(n.neighbors(t),function(u){Object.prototype.hasOwnProperty.call(e,u)||(r=Xn(n,e,r,u,t))}),a.low=o,a.lim=r++,i?a.parent=i:delete a.parent,r}function Hn(n){return rn(n.edges(),function(e){return n.edge(e).cutvalue<0})}function zn(n,e,r){var t=r.v,i=r.w;e.hasEdge(t,i)||(t=r.w,i=r.v);var o=n.node(t),a=n.node(i),u=o,d=!1;o.lim>a.lim&&(u=a,d=!0);var f=T(e.edges(),function(s){return d===gn(n,n.node(s.v),u)&&d!==gn(n,n.node(s.w),u)});return an(f,function(s){return I(e,s)})}function Un(n,e,r,t){var i=r.v,o=r.w;n.removeEdge(i,o),n.setEdge(t.v,t.w,{}),fn(n),dn(n,e),zr(n,e)}function zr(n,e){var r=rn(n.nodes(),function(i){return!e.node(i).parent}),t=Xr(n,r);t=t.slice(1),c(t,function(i){var o=n.node(i).parent,a=e.edge(i,o),u=!1;a||(a=e.edge(o,i),u=!0),e.node(i).rank=e.node(o).rank+(u?a.minlen:-a.minlen)})}function Ur(n,e,r){return n.hasEdge(e,r)}function gn(n,e,r){return r.low<=e.lim&&e.lim<=r.lim}function Jr(n){switch(n.graph().ranker){case"network-simplex":yn(n);break;case"tight-tree":Zr(n);break;case"longest-path":Kr(n);break;default:yn(n)}}var Kr=un;function Zr(n){un(n),$n(n)}function yn(n){E(n)}function Qr(n){var e=N(n,"root",{},"_root"),r=nt(n),t=x(O(r))-1,i=2*t+1;n.graph().nestingRoot=e,c(n.edges(),function(a){n.edge(a).minlen*=i});var o=et(n)+1;c(n.children(),function(a){Jn(n,e,i,o,t,r,a)}),n.graph().nodeRankFactor=i}function Jn(n,e,r,t,i,o,a){var u=n.children(a);if(!u.length){a!==e&&n.setEdge(e,a,{weight:0,minlen:r});return}var d=wn(n,"_bt"),f=wn(n,"_bb"),s=n.node(a);n.setParent(d,a),s.borderTop=d,n.setParent(f,a),s.borderBottom=f,c(u,function(l){Jn(n,e,r,t,i,o,l);var h=n.node(l),v=h.borderTop?h.borderTop:l,p=h.borderBottom?h.borderBottom:l,b=h.borderTop?t:2*t,L=v!==p?1:i-o[a]+1;n.setEdge(d,v,{weight:b,minlen:L,nestingEdge:!0}),n.setEdge(p,f,{weight:b,minlen:L,nestingEdge:!0})}),n.parent(a)||n.setEdge(e,d,{weight:0,minlen:i+o[a]})}function nt(n){var e={};function r(t,i){var o=n.children(t);o&&o.length&&c(o,function(a){r(a,i+1)}),e[t]=i}return c(n.children(),function(t){r(t,1)}),e}function et(n){return G(n.edges(),function(e,r){return e+n.edge(r).weight},0)}function rt(n){var e=n.graph();n.removeNode(e.nestingRoot),delete e.nestingRoot,c(n.edges(),function(r){var t=n.edge(r);t.nestingEdge&&n.removeEdge(r)})}function tt(n,e,r){var t={},i;c(r,function(o){for(var a=n.parent(o),u,d;a;){if(u=n.parent(a),u?(d=t[u],t[u]=a):(d=i,i=a),d&&d!==a){e.setEdge(d,a);return}a=u}})}function it(n,e,r){var t=at(n),i=new g({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(o){return n.node(o)});return c(n.nodes(),function(o){var a=n.node(o),u=n.parent(o);(a.rank===e||a.minRank<=e&&e<=a.maxRank)&&(i.setNode(o),i.setParent(o,u||t),c(n[r](o),function(d){var f=d.v===o?d.w:d.v,s=i.edge(f,o),l=m(s)?0:s.weight;i.setEdge(f,o,{weight:n.edge(d).weight+l})}),Object.prototype.hasOwnProperty.call(a,"minRank")&&i.setNode(o,{borderLeft:a.borderLeft[e],borderRight:a.borderRight[e]}))}),i}function at(n){for(var e;n.hasNode(e=on("_root")););return e}function ot(n,e){for(var r=0,t=1;t<e.length;++t)r+=ut(n,e[t-1],e[t]);return r}function ut(n,e,r){for(var t=mr(r,w(r,function(f,s){return s})),i=P(w(e,function(f){return M(w(n.outEdges(f),function(s){return{pos:t[s.w],weight:n.edge(s).weight}}),"pos")})),o=1;o<r.length;)o<<=1;var a=2*o-1;o-=1;var u=w(new Array(a),function(){return 0}),d=0;return c(i.forEach(function(f){var s=f.pos+o;u[s]+=f.weight;for(var l=0;s>0;)s%2&&(l+=u[s+1]),s=s-1>>1,u[s]+=f.weight;d+=f.weight*l})),d}function dt(n){var e={},r=T(n.nodes(),function(u){return!n.children(u).length}),t=x(w(r,function(u){return n.node(u).rank})),i=w(k(t+1),function(){return[]});function o(u){if(!Bn(e,u)){e[u]=!0;var d=n.node(u);i[d.rank].push(u),c(n.successors(u),o)}}var a=M(r,function(u){return n.node(u).rank});return c(a,o),i}function ft(n,e){return w(e,function(r){var t=n.inEdges(r);if(t.length){var i=G(t,function(o,a){var u=n.edge(a),d=n.node(a.v);return{sum:o.sum+u.weight*d.order,weight:o.weight+u.weight}},{sum:0,weight:0});return{v:r,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:r}})}function st(n,e){var r={};c(n,function(i,o){var a=r[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:o};m(i.barycenter)||(a.barycenter=i.barycenter,a.weight=i.weight)}),c(e.edges(),function(i){var o=r[i.v],a=r[i.w];!m(o)&&!m(a)&&(a.indegree++,o.out.push(r[i.w]))});var t=T(r,function(i){return!i.indegree});return ct(t)}function ct(n){var e=[];function r(o){return function(a){a.merged||(m(a.barycenter)||m(o.barycenter)||a.barycenter>=o.barycenter)&<(o,a)}}function t(o){return function(a){a.in.push(o),--a.indegree===0&&n.push(a)}}for(;n.length;){var i=n.pop();e.push(i),c(i.in.reverse(),r(i)),c(i.out,t(i))}return w(T(e,function(o){return!o.merged}),function(o){return j(o,["vs","i","barycenter","weight"])})}function lt(n,e){var r=0,t=0;n.weight&&(r+=n.barycenter*n.weight,t+=n.weight),e.weight&&(r+=e.barycenter*e.weight,t+=e.weight),n.vs=e.vs.concat(n.vs),n.barycenter=r/t,n.weight=t,n.i=Math.min(e.i,n.i),e.merged=!0}function ht(n,e){var r=Rr(n,function(s){return Object.prototype.hasOwnProperty.call(s,"barycenter")}),t=r.lhs,i=M(r.rhs,function(s){return-s.i}),o=[],a=0,u=0,d=0;t.sort(vt(!!e)),d=xn(o,i,d),c(t,function(s){d+=s.vs.length,o.push(s.vs),a+=s.barycenter*s.weight,u+=s.weight,d=xn(o,i,d)});var f={vs:P(o)};return u&&(f.barycenter=a/u,f.weight=u),f}function xn(n,e,r){for(var t;e.length&&(t=B(e)).i<=r;)e.pop(),n.push(t.vs),r++;return r}function vt(n){return function(e,r){return e.barycenter<r.barycenter?-1:e.barycenter>r.barycenter?1:n?r.i-e.i:e.i-r.i}}function Kn(n,e,r,t){var i=n.children(e),o=n.node(e),a=o?o.borderLeft:void 0,u=o?o.borderRight:void 0,d={};a&&(i=T(i,function(p){return p!==a&&p!==u}));var f=ft(n,i);c(f,function(p){if(n.children(p.v).length){var b=Kn(n,p.v,r,t);d[p.v]=b,Object.prototype.hasOwnProperty.call(b,"barycenter")&&wt(p,b)}});var s=st(f,r);pt(s,d);var l=ht(s,t);if(a&&(l.vs=P([a,l.vs,u]),n.predecessors(a).length)){var h=n.node(n.predecessors(a)[0]),v=n.node(n.predecessors(u)[0]);Object.prototype.hasOwnProperty.call(l,"barycenter")||(l.barycenter=0,l.weight=0),l.barycenter=(l.barycenter*l.weight+h.order+v.order)/(l.weight+2),l.weight+=2}return l}function pt(n,e){c(n,function(r){r.vs=P(r.vs.map(function(t){return e[t]?e[t].vs:t}))})}function wt(n,e){m(n.barycenter)?(n.barycenter=e.barycenter,n.weight=e.weight):(n.barycenter=(n.barycenter*n.weight+e.barycenter*e.weight)/(n.weight+e.weight),n.weight+=e.weight)}function bt(n){var e=Vn(n),r=En(n,k(1,e+1),"inEdges"),t=En(n,k(e-1,-1,-1),"outEdges"),i=dt(n);On(n,i);for(var o=Number.POSITIVE_INFINITY,a,u=0,d=0;d<4;++u,++d){mt(u%2?r:t,u%4>=2),i=$(n);var f=ot(n,i);f<o&&(d=0,a=We(i),o=f)}On(n,a)}function En(n,e,r){return w(e,function(t){return it(n,t,r)})}function mt(n,e){var r=new g;c(n,function(t){var i=t.graph().root,o=Kn(t,i,r,e);c(o.vs,function(a,u){t.node(a).order=u}),tt(t,r,o.vs)})}function On(n,e){c(e,function(r){c(r,function(t,i){n.node(t).order=i})})}function gt(n){var e=xt(n);c(n.graph().dummyChains,function(r){for(var t=n.node(r),i=t.edgeObj,o=yt(n,e,i.v,i.w),a=o.path,u=o.lca,d=0,f=a[d],s=!0;r!==i.w;){if(t=n.node(r),s){for(;(f=a[d])!==u&&n.node(f).maxRank<t.rank;)d++;f===u&&(s=!1)}if(!s){for(;d<a.length-1&&n.node(f=a[d+1]).minRank<=t.rank;)d++;f=a[d]}n.setParent(r,f),r=n.successors(r)[0]}})}function yt(n,e,r,t){var i=[],o=[],a=Math.min(e[r].low,e[t].low),u=Math.max(e[r].lim,e[t].lim),d,f;d=r;do d=n.parent(d),i.push(d);while(d&&(e[d].low>a||u>e[d].lim));for(f=d,d=t;(d=n.parent(d))!==f;)o.push(d);return{path:i.concat(o.reverse()),lca:f}}function xt(n){var e={},r=0;function t(i){var o=r;c(n.children(i),t),e[i]={low:o,lim:r++}}return c(n.children(),t),e}function Et(n,e){var r={};function t(i,o){var a=0,u=0,d=i.length,f=B(o);return c(o,function(s,l){var h=kt(n,s),v=h?n.node(h).order:d;(h||s===f)&&(c(o.slice(u,l+1),function(p){c(n.predecessors(p),function(b){var L=n.node(b),sn=L.order;(sn<a||v<sn)&&!(L.dummy&&n.node(p).dummy)&&Zn(r,b,p)})}),u=l+1,a=v)}),o}return G(e,t),r}function Ot(n,e){var r={};function t(o,a,u,d,f){var s;c(k(a,u),function(l){s=o[l],n.node(s).dummy&&c(n.predecessors(s),function(h){var v=n.node(h);v.dummy&&(v.order<d||v.order>f)&&Zn(r,h,s)})})}function i(o,a){var u=-1,d,f=0;return c(a,function(s,l){if(n.node(s).dummy==="border"){var h=n.predecessors(s);h.length&&(d=n.node(h[0]).order,t(a,f,l,u,d),f=l,u=d)}t(a,f,a.length,d,o.length)}),a}return G(e,i),r}function kt(n,e){if(n.node(e).dummy)return rn(n.predecessors(e),function(r){return n.node(r).dummy})}function Zn(n,e,r){if(e>r){var t=e;e=r,r=t}Object.prototype.hasOwnProperty.call(n,e)||Object.defineProperty(n,e,{enumerable:!0,configurable:!0,value:{},writable:!0});var i=n[e];Object.defineProperty(i,r,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function Pt(n,e,r){if(e>r){var t=e;e=r,r=t}return!!n[e]&&Object.prototype.hasOwnProperty.call(n[e],r)}function Nt(n,e,r,t){var i={},o={},a={};return c(e,function(u){c(u,function(d,f){i[d]=d,o[d]=d,a[d]=f})}),c(e,function(u){var d=-1;c(u,function(f){var s=t(f);if(s.length){s=M(s,function(b){return a[b]});for(var l=(s.length-1)/2,h=Math.floor(l),v=Math.ceil(l);h<=v;++h){var p=s[h];o[f]===f&&d<a[p]&&!Pt(r,f,p)&&(o[p]=f,o[f]=i[f]=i[p],d=a[p])}}})}),{root:i,align:o}}function Lt(n,e,r,t,i){var o={},a=_t(n,e,r,i),u=i?"borderLeft":"borderRight";function d(l,h){for(var v=a.nodes(),p=v.pop(),b={};p;)b[p]?l(p):(b[p]=!0,v.push(p),v=v.concat(h(p))),p=v.pop()}function f(l){o[l]=a.inEdges(l).reduce(function(h,v){return Math.max(h,o[v.v]+a.edge(v))},0)}function s(l){var h=a.outEdges(l).reduce(function(p,b){return Math.min(p,o[b.w]-a.edge(b))},Number.POSITIVE_INFINITY),v=n.node(l);h!==Number.POSITIVE_INFINITY&&v.borderType!==u&&(o[l]=Math.max(o[l],h))}return d(f,a.predecessors.bind(a)),d(s,a.successors.bind(a)),c(t,function(l){o[l]=o[r[l]]}),o}function _t(n,e,r,t){var i=new g,o=n.graph(),a=Mt(o.nodesep,o.edgesep,t);return c(e,function(u){var d;c(u,function(f){var s=r[f];if(i.setNode(s),d){var l=r[d],h=i.edge(l,s);i.setEdge(l,s,Math.max(a(n,f,d),h||0))}d=f})}),i}function Ct(n,e){return an(O(e),function(r){var t=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return Qe(r,function(o,a){var u=St(n,a)/2;t=Math.max(o+u,t),i=Math.min(o-u,i)}),t-i})}function It(n,e){var r=O(e),t=C(r),i=x(r);c(["u","d"],function(o){c(["l","r"],function(a){var u=o+a,d=n[u],f;if(d!==e){var s=O(d);f=a==="l"?t-C(s):i-x(s),f&&(n[u]=Y(d,function(l){return l+f}))}})})}function Rt(n,e){return Y(n.ul,function(r,t){if(e)return n[e.toLowerCase()][t];var i=M(w(n,t));return(i[1]+i[2])/2})}function Tt(n){var e=$(n),r=K(Et(n,e),Ot(n,e)),t={},i;c(["u","d"],function(a){i=a==="u"?e:O(e).reverse(),c(["l","r"],function(u){u==="r"&&(i=w(i,function(l){return O(l).reverse()}));var d=(a==="u"?n.predecessors:n.successors).bind(n),f=Nt(n,i,r,d),s=Lt(n,i,f.root,f.align,u==="r");u==="r"&&(s=Y(s,function(l){return-l})),t[a+u]=s})});var o=Ct(n,t);return It(t,o),Rt(t,n.graph().align)}function Mt(n,e,r){return function(t,i,o){var a=t.node(i),u=t.node(o),d=0,f;if(d+=a.width/2,Object.prototype.hasOwnProperty.call(a,"labelpos"))switch(a.labelpos.toLowerCase()){case"l":f=-a.width/2;break;case"r":f=a.width/2;break}if(f&&(d+=r?f:-f),f=0,d+=(a.dummy?e:n)/2,d+=(u.dummy?e:n)/2,d+=u.width/2,Object.prototype.hasOwnProperty.call(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":f=u.width/2;break;case"r":f=-u.width/2;break}return f&&(d+=r?f:-f),f=0,d}}function St(n,e){return n.node(e).width}function Ft(n){n=Gn(n),At(n),nr(Tt(n),function(e,r){n.node(r).x=e})}function At(n){var e=$(n),r=n.graph().ranksep,t=0;c(e,function(i){var o=x(w(i,function(a){return n.node(a).height}));c(i,function(a){n.node(a).y=t+o/2}),t+=o+r})}function di(n,e){var r=Tr;r("layout",()=>{var t=r(" buildLayoutGraph",()=>Ht(n));r(" runLayout",()=>Bt(t,r)),r(" updateInputGraph",()=>jt(n,t))})}function Bt(n,e){e(" makeSpaceForEdgeLabels",()=>zt(n)),e(" removeSelfEdges",()=>ti(n)),e(" acyclic",()=>Pr(n)),e(" nestingGraph.run",()=>Qr(n)),e(" rank",()=>Jr(Gn(n))),e(" injectEdgeLabelProxies",()=>Ut(n)),e(" removeEmptyRanks",()=>Ir(n)),e(" nestingGraph.cleanup",()=>rt(n)),e(" normalizeRanks",()=>Cr(n)),e(" assignRankMinMax",()=>Jt(n)),e(" removeEdgeLabelProxies",()=>Kt(n)),e(" normalize.run",()=>jr(n)),e(" parentDummyChains",()=>gt(n)),e(" addBorderSegments",()=>Mr(n)),e(" order",()=>bt(n)),e(" insertSelfEdges",()=>ii(n)),e(" adjustCoordinateSystem",()=>Sr(n)),e(" position",()=>Ft(n)),e(" positionSelfEdges",()=>ai(n)),e(" removeBorderNodes",()=>ri(n)),e(" normalize.undo",()=>Vr(n)),e(" fixupEdgeLabelCoords",()=>ni(n)),e(" undoCoordinateSystem",()=>Fr(n)),e(" translateGraph",()=>Zt(n)),e(" assignNodeIntersects",()=>Qt(n)),e(" reversePoints",()=>ei(n)),e(" acyclic.undo",()=>Lr(n))}function jt(n,e){c(n.nodes(),function(r){var t=n.node(r),i=e.node(r);t&&(t.x=i.x,t.y=i.y,e.children(r).length&&(t.width=i.width,t.height=i.height))}),c(n.edges(),function(r){var t=n.edge(r),i=e.edge(r);t.points=i.points,Object.prototype.hasOwnProperty.call(i,"x")&&(t.x=i.x,t.y=i.y)}),n.graph().width=e.graph().width,n.graph().height=e.graph().height}var Gt=["nodesep","edgesep","ranksep","marginx","marginy"],Vt={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},Yt=["acyclicer","ranker","rankdir","align"],$t=["width","height"],Dt={width:0,height:0},qt=["minlen","weight","width","height","labeloffset"],Wt={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Xt=["labelpos"];function Ht(n){var e=new g({multigraph:!0,compound:!0}),r=z(n.graph());return e.setGraph(K({},Vt,H(r,Gt),j(r,Yt))),c(n.nodes(),function(t){var i=z(n.node(t));e.setNode(t,He(H(i,$t),Dt)),e.setParent(t,n.parent(t))}),c(n.edges(),function(t){var i=z(n.edge(t));e.setEdge(t,K({},Wt,H(i,qt),j(i,Xt)))}),e}function zt(n){var e=n.graph();e.ranksep/=2,c(n.edges(),function(r){var t=n.edge(r);t.minlen*=2,t.labelpos.toLowerCase()!=="c"&&(e.rankdir==="TB"||e.rankdir==="BT"?t.width+=t.labeloffset:t.height+=t.labeloffset)})}function Ut(n){c(n.edges(),function(e){var r=n.edge(e);if(r.width&&r.height){var t=n.node(e.v),i=n.node(e.w),o={rank:(i.rank-t.rank)/2+t.rank,e};N(n,"edge-proxy",o,"_ep")}})}function Jt(n){var e=0;c(n.nodes(),function(r){var t=n.node(r);t.borderTop&&(t.minRank=n.node(t.borderTop).rank,t.maxRank=n.node(t.borderBottom).rank,e=x(e,t.maxRank))}),n.graph().maxRank=e}function Kt(n){c(n.nodes(),function(e){var r=n.node(e);r.dummy==="edge-proxy"&&(n.edge(r.e).labelRank=r.rank,n.removeNode(e))})}function Zt(n){var e=Number.POSITIVE_INFINITY,r=0,t=Number.POSITIVE_INFINITY,i=0,o=n.graph(),a=o.marginx||0,u=o.marginy||0;function d(f){var s=f.x,l=f.y,h=f.width,v=f.height;e=Math.min(e,s-h/2),r=Math.max(r,s+h/2),t=Math.min(t,l-v/2),i=Math.max(i,l+v/2)}c(n.nodes(),function(f){d(n.node(f))}),c(n.edges(),function(f){var s=n.edge(f);Object.prototype.hasOwnProperty.call(s,"x")&&d(s)}),e-=a,t-=u,c(n.nodes(),function(f){var s=n.node(f);s.x-=e,s.y-=t}),c(n.edges(),function(f){var s=n.edge(f);c(s.points,function(l){l.x-=e,l.y-=t}),Object.prototype.hasOwnProperty.call(s,"x")&&(s.x-=e),Object.prototype.hasOwnProperty.call(s,"y")&&(s.y-=t)}),o.width=r-e+a,o.height=i-t+u}function Qt(n){c(n.edges(),function(e){var r=n.edge(e),t=n.node(e.v),i=n.node(e.w),o,a;r.points?(o=r.points[0],a=r.points[r.points.length-1]):(r.points=[],o=i,a=t),r.points.unshift(pn(t,o)),r.points.push(pn(i,a))})}function ni(n){c(n.edges(),function(e){var r=n.edge(e);if(Object.prototype.hasOwnProperty.call(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function ei(n){c(n.edges(),function(e){var r=n.edge(e);r.reversed&&r.points.reverse()})}function ri(n){c(n.nodes(),function(e){if(n.children(e).length){var r=n.node(e),t=n.node(r.borderTop),i=n.node(r.borderBottom),o=n.node(B(r.borderLeft)),a=n.node(B(r.borderRight));r.width=Math.abs(a.x-o.x),r.height=Math.abs(i.y-t.y),r.x=o.x+r.width/2,r.y=t.y+r.height/2}}),c(n.nodes(),function(e){n.node(e).dummy==="border"&&n.removeNode(e)})}function ti(n){c(n.edges(),function(e){if(e.v===e.w){var r=n.node(e.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e,label:n.edge(e)}),n.removeEdge(e)}})}function ii(n){var e=$(n);c(e,function(r){var t=0;c(r,function(i,o){var a=n.node(i);a.order=o+t,c(a.selfEdges,function(u){N(n,"selfedge",{width:u.label.width,height:u.label.height,rank:a.rank,order:o+ ++t,e:u.e,label:u.label},"_se")}),delete a.selfEdges})})}function ai(n){c(n.nodes(),function(e){var r=n.node(e);if(r.dummy==="selfedge"){var t=n.node(r.e.v),i=t.x+t.width/2,o=t.y,a=r.x-i,u=t.height/2;n.setEdge(r.e,r.label),n.removeNode(e),r.label.points=[{x:i+2*a/3,y:o-u},{x:i+5*a/6,y:o-u},{x:i+a,y:o},{x:i+5*a/6,y:o+u},{x:i+2*a/3,y:o+u}],r.label.x=r.x,r.label.y=r.y}})}function H(n,e){return Y(j(n,e),Number)}function z(n){var e={};return c(n,function(r,t){e[t.toLowerCase()]=r}),e}export{di as l};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as T,d as w,e as V,b as M,c as B,f as k,o as rr,k as _,r as er,g as D,s as tr,h as nr,j as ar,U as $,S,l as G,m as d,n as K,p as l,q as or,t as sr,u as ir,v as N,w as cr,x as ur,y as fr,z as gr}from"./graph-C9eacEi8.js";var x=Object.create,br=(function(){function r(){}return function(e){if(!T(e))return{};if(x)return x(e);r.prototype=e;var t=new r;return r.prototype=void 0,t}})();function lr(r,e){var t=-1,a=r.length;for(e||(e=Array(a));++t<a;)e[t]=r[t];return e}function R(r,e,t){e=="__proto__"&&w?w(r,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):r[e]=t}var yr=Object.prototype,pr=yr.hasOwnProperty;function q(r,e,t){var a=r[e];(!(pr.call(r,e)&&V(a,t))||t===void 0&&!(e in r))&&R(r,e,t)}function y(r,e,t,a){var g=!t;t||(t={});for(var s=-1,o=e.length;++s<o;){var c=e[s],i=void 0;i===void 0&&(i=r[c]),g?R(t,c,i):q(t,c,i)}return t}function Tr(r){var e=[];if(r!=null)for(var t in Object(r))e.push(t);return e}var dr=Object.prototype,jr=dr.hasOwnProperty;function Ar(r){if(!T(r))return Tr(r);var e=M(r),t=[];for(var a in r)a=="constructor"&&(e||!jr.call(r,a))||t.push(a);return t}function j(r){return B(r)?k(r,!0):Ar(r)}var W=rr(Object.getPrototypeOf,Object);function hr(r,e){return r&&y(e,_(e),r)}function mr(r,e){return r&&y(e,j(e),r)}var Y=typeof exports=="object"&&exports&&!exports.nodeType&&exports,I=Y&&typeof module=="object"&&module&&!module.nodeType&&module,vr=I&&I.exports===Y,P=vr?er.Buffer:void 0,E=P?P.allocUnsafe:void 0;function Or(r,e){if(e)return r.slice();var t=r.length,a=E?E(t):new r.constructor(t);return r.copy(a),a}function wr(r,e){return y(r,D(r),e)}var $r=Object.getOwnPropertySymbols,z=$r?function(r){for(var e=[];r;)nr(e,D(r)),r=W(r);return e}:tr;function Sr(r,e){return y(r,z(r),e)}function xr(r){return ar(r,j,z)}var Ir=Object.prototype,Pr=Ir.hasOwnProperty;function Er(r){var e=r.length,t=new r.constructor(e);return e&&typeof r[0]=="string"&&Pr.call(r,"index")&&(t.index=r.index,t.input=r.input),t}function A(r){var e=new r.constructor(r.byteLength);return new $(e).set(new $(r)),e}function Cr(r,e){var t=e?A(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.byteLength)}var Ur=/\w*$/;function Fr(r){var e=new r.constructor(r.source,Ur.exec(r));return e.lastIndex=r.lastIndex,e}var C=S?S.prototype:void 0,U=C?C.valueOf:void 0;function Lr(r){return U?Object(U.call(r)):{}}function Mr(r,e){var t=e?A(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.length)}var Br="[object Boolean]",_r="[object Date]",Dr="[object Map]",Gr="[object Number]",Kr="[object RegExp]",Nr="[object Set]",Rr="[object String]",qr="[object Symbol]",Wr="[object ArrayBuffer]",Yr="[object DataView]",zr="[object Float32Array]",Hr="[object Float64Array]",Jr="[object Int8Array]",Qr="[object Int16Array]",Xr="[object Int32Array]",Zr="[object Uint8Array]",Vr="[object Uint8ClampedArray]",kr="[object Uint16Array]",re="[object Uint32Array]";function ee(r,e,t){var a=r.constructor;switch(e){case Wr:return A(r);case Br:case _r:return new a(+r);case Yr:return Cr(r,t);case zr:case Hr:case Jr:case Qr:case Xr:case Zr:case Vr:case kr:case re:return Mr(r,t);case Dr:return new a;case Gr:case Rr:return new a(r);case Kr:return Fr(r);case Nr:return new a;case qr:return Lr(r)}}function te(r){return typeof r.constructor=="function"&&!M(r)?br(W(r)):{}}var ne="[object Map]";function ae(r){return G(r)&&d(r)==ne}var F=l&&l.isMap,oe=F?K(F):ae,se="[object Set]";function ie(r){return G(r)&&d(r)==se}var L=l&&l.isSet,ce=L?K(L):ie,ue=1,fe=2,ge=4,H="[object Arguments]",be="[object Array]",le="[object Boolean]",ye="[object Date]",pe="[object Error]",J="[object Function]",Te="[object GeneratorFunction]",de="[object Map]",je="[object Number]",Q="[object Object]",Ae="[object RegExp]",he="[object Set]",me="[object String]",ve="[object Symbol]",Oe="[object WeakMap]",we="[object ArrayBuffer]",$e="[object DataView]",Se="[object Float32Array]",xe="[object Float64Array]",Ie="[object Int8Array]",Pe="[object Int16Array]",Ee="[object Int32Array]",Ce="[object Uint8Array]",Ue="[object Uint8ClampedArray]",Fe="[object Uint16Array]",Le="[object Uint32Array]",n={};n[H]=n[be]=n[we]=n[$e]=n[le]=n[ye]=n[Se]=n[xe]=n[Ie]=n[Pe]=n[Ee]=n[de]=n[je]=n[Q]=n[Ae]=n[he]=n[me]=n[ve]=n[Ce]=n[Ue]=n[Fe]=n[Le]=!0;n[pe]=n[J]=n[Oe]=!1;function p(r,e,t,a,g,s){var o,c=e&ue,i=e&fe,X=e≥if(o!==void 0)return o;if(!T(r))return r;var h=N(r);if(h){if(o=Er(r),!c)return lr(r,o)}else{var b=d(r),m=b==J||b==Te;if(or(r))return Or(r,c);if(b==Q||b==H||m&&!g){if(o=i||m?{}:te(r),!c)return i?Sr(r,mr(o,r)):wr(r,hr(o,r))}else{if(!n[b])return g?r:{};o=ee(r,b,c)}}s||(s=new sr);var v=s.get(r);if(v)return v;s.set(r,o),ce(r)?r.forEach(function(u){o.add(p(u,e,t,u,r,s))}):oe(r)&&r.forEach(function(u,f){o.set(f,p(u,e,t,f,r,s))});var Z=X?i?xr:cr:i?j:_,O=h?void 0:Z(r);return ir(O||r,function(u,f){O&&(f=u,u=r[f]),q(o,f,p(u,e,t,f,r,s))}),o}function Me(r,e){var t=-1,a=B(r)?Array(r.length):[];return ur(r,function(g,s,o){a[++t]=e(g,s,o)}),a}function _e(r,e){var t=N(r)?gr:Me;return t(r,fr(e))}export{R as a,p as b,y as c,lr as d,Or as e,Mr as f,W as g,q as h,te as i,Me as j,j as k,_e as m};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as l,r as m,d as a}from"./chunk-MOJQB5TN-D2zfH4wm.js";import{p}from"./chunk-JWPE2WC7-BjHi_aEM.js";import{_ as t,l as o}from"./MermaidRenderer-CnzIvTlj.js";import{M as u,d as c}from"./cynefin-VYW2F7L2-CyM6ijR6.js";import"./vendor-markdown-BRX1CUPf.js";import"./vendor-syntax-DG6Vo7Ci.js";import"./purify.es-D6gMnemd.js";import"./isPrototype-DezZrpQP.js";var f=c().RailroadPeg.parser.LangiumParser,i=t(e=>{const r=e.alternatives.map(d);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformOrderedChoice"),d=t(e=>{const r=e.elements.map(P);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),P=t(e=>{const r=g(e.suffix);return e.operator?{type:"special",text:e.operator==="&"?`&${s(r)}`:`!${s(r)}`}:r},"transformPrefix"),s=t(e=>{switch(e.type){case"terminal":return`"${e.value}"`;case"nonterminal":return e.name;case"special":return e.text;default:return"(...)"}},"nodeToLabel"),g=t(e=>{const r=v(e.primary);if(!e.operator)return r;switch(e.operator){case"?":return{type:"optional",element:r};case"*":return{type:"repetition",element:r,min:0,max:1/0};case"+":return{type:"repetition",element:r,min:1,max:1/0};default:throw new Error(`Unsupported PEG suffix operator: ${e.operator}`)}},"transformSuffix"),v=t(e=>{switch(e.$type){case"PegLiteral":return{type:"terminal",value:e.value};case"PegIdentifier":return{type:"nonterminal",name:e.name};case"PegGroup":return i(e.element);case"PegAny":return{type:"special",text:e.dot};default:throw new Error(`Unsupported PEG primary node: ${e.$type}`)}},"transformPrimary"),y=t(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=t(e=>{p(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(y(r)))},"populateDb"),b={parse:t(e=>{a.clear(),o.debug("[PEG Parser] Starting Langium parse");const r=f.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new u(r);const n=r.value;o.debug("[PEG Parser] Parsed rules:",n.rules.length),h(n),o.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:a}},q={parser:b,db:a,renderer:m,styles:l};export{q as diagram};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import{p as rt}from"./chunk-JWPE2WC7-BjHi_aEM.js";import{g as nt,s as it,a as ot,b as st,o as lt,n as ct,_ as d,l as G,c as ut,A as gt,D as dt,L as pt,e as ht,p as ft,B as mt}from"./MermaidRenderer-CnzIvTlj.js";import{p as vt}from"./cynefin-VYW2F7L2-CyM6ijR6.js";import{d as q}from"./arc-1qRI0DXn.js";import{o as xt}from"./ordinal-DILIJJjt.js";import{b as T,t as B,Q as St}from"./isPrototype-DezZrpQP.js";import"./vendor-markdown-BRX1CUPf.js";import"./vendor-syntax-DG6Vo7Ci.js";import"./purify.es-D6gMnemd.js";import"./init-Dmth1JHB.js";function yt(t,n){return n<t?-1:n>t?1:n>=t?0:NaN}function wt(t){return t}function At(){var t=wt,n=yt,y=null,b=T(0),l=T(B),p=T(0);function i(e){var r,s=(e=St(e)).length,h,w,$=0,f=new Array(s),o=new Array(s),D=+b.apply(this,arguments),E=Math.min(B,Math.max(-B,l.apply(this,arguments)-D)),k,R=Math.min(Math.abs(E)/s,p.apply(this,arguments)),u=R*(E<0?-1:1),A;for(r=0;r<s;++r)(A=o[f[r]=r]=+t(e[r],r,e))>0&&($+=A);for(n!=null?f.sort(function(M,m){return n(o[M],o[m])}):y!=null&&f.sort(function(M,m){return y(e[M],e[m])}),r=0,w=$?(E-s*u)/$:0;r<s;++r,D=k)h=f[r],A=o[h],k=D+(A>0?A*w:0)+u,o[h]={data:e[h],index:r,value:A,startAngle:D,endAngle:k,padAngle:R};return o}return i.value=function(e){return arguments.length?(t=typeof e=="function"?e:T(+e),i):t},i.sortValues=function(e){return arguments.length?(n=e,y=null,i):n},i.sort=function(e){return arguments.length?(y=e,n=null,i):y},i.startAngle=function(e){return arguments.length?(b=typeof e=="function"?e:T(+e),i):b},i.endAngle=function(e){return arguments.length?(l=typeof e=="function"?e:T(+e),i):l},i.padAngle=function(e){return arguments.length?(p=typeof e=="function"?e:T(+e),i):p},i}var Ct=mt.pie,I={sections:new Map,showData:!1},F=I.sections,V=I.showData,$t=structuredClone(Ct),Dt=d(()=>structuredClone($t),"getConfig"),Tt=d(()=>{F=new Map,V=I.showData,ft()},"clear"),bt=d(({label:t,value:n})=>{if(n<0)throw new Error(`"${t}" has invalid value: ${n}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);F.has(t)||(F.set(t,n),G.debug(`added new section: ${t}, with value: ${n}`))},"addSection"),kt=d(()=>F,"getSections"),zt=d(t=>{V=t},"setShowData"),Et=d(()=>V,"getShowData"),J={getConfig:Dt,clear:Tt,setDiagramTitle:ct,getDiagramTitle:lt,setAccTitle:st,getAccTitle:ot,setAccDescription:it,getAccDescription:nt,addSection:bt,getSections:kt,setShowData:zt,getShowData:Et},Mt=d((t,n)=>{rt(t,n),n.setShowData(t.showData),t.sections.map(n.addSection)},"populateDb"),Lt={parse:d(async t=>{const n=await vt("pie",t);G.debug(n),Mt(n,J)},"parse")},Rt=d(t=>`
|
|
2
|
-
.pieCircle{
|
|
3
|
-
stroke: ${t.pieStrokeColor};
|
|
4
|
-
stroke-width : ${t.pieStrokeWidth};
|
|
5
|
-
opacity : ${t.pieOpacity};
|
|
6
|
-
}
|
|
7
|
-
.pieCircle.highlighted{
|
|
8
|
-
scale: 1.05;
|
|
9
|
-
opacity: 1;
|
|
10
|
-
}
|
|
11
|
-
.pieCircle.highlightedOnHover:hover{
|
|
12
|
-
transition-duration: 250ms;
|
|
13
|
-
scale: 1.05;
|
|
14
|
-
opacity: 1;
|
|
15
|
-
}
|
|
16
|
-
.pieOuterCircle{
|
|
17
|
-
stroke: ${t.pieOuterStrokeColor};
|
|
18
|
-
stroke-width: ${t.pieOuterStrokeWidth};
|
|
19
|
-
fill: none;
|
|
20
|
-
}
|
|
21
|
-
.pieTitleText {
|
|
22
|
-
text-anchor: middle;
|
|
23
|
-
font-size: ${t.pieTitleTextSize};
|
|
24
|
-
fill: ${t.pieTitleTextColor};
|
|
25
|
-
font-family: ${t.fontFamily};
|
|
26
|
-
}
|
|
27
|
-
.slice {
|
|
28
|
-
font-family: ${t.fontFamily};
|
|
29
|
-
fill: ${t.pieSectionTextColor};
|
|
30
|
-
font-size:${t.pieSectionTextSize};
|
|
31
|
-
// fill: white;
|
|
32
|
-
}
|
|
33
|
-
.legend text {
|
|
34
|
-
fill: ${t.pieLegendTextColor};
|
|
35
|
-
font-family: ${t.fontFamily};
|
|
36
|
-
font-size: ${t.pieLegendTextSize};
|
|
37
|
-
}
|
|
38
|
-
`,"getStyles"),Wt=Rt,_t=d(t=>{const n=[...t.values()].reduce((l,p)=>l+p,0),y=[...t.entries()].map(([l,p])=>({label:l,value:p})).filter(l=>l.value/n*100>=1);return At().value(l=>l.value).sort(null)(y)},"createPieArcs"),Ft=d((t,n,y,b)=>{var Z;G.debug(`rendering pie chart
|
|
39
|
-
`+t);const l=b.db,p=ut(),i=gt(l.getConfig(),p.pie),e=40,r=18,s=4,h=450,w=h,$=dt(n),f=$.append("g");f.attr("transform","translate("+w/2+","+h/2+")");const{themeVariables:o}=p;let[D]=pt(o.pieOuterStrokeWidth);D??(D=2);const E=i.legendPosition,k=i.textPosition,R=i.donutHole>0&&i.donutHole<=.9?i.donutHole:0,u=Math.min(w,h)/2-e,A=q().innerRadius(R*u).outerRadius(u),M=q().innerRadius(u*k).outerRadius(u*k),m=f.append("g");m.append("circle").attr("cx",0).attr("cy",0).attr("r",u+D/2).attr("class","pieOuterCircle");const W=l.getSections(),K=_t(W),Y=[o.pie1,o.pie2,o.pie3,o.pie4,o.pie5,o.pie6,o.pie7,o.pie8,o.pie9,o.pie10,o.pie11,o.pie12];let H=0;W.forEach(a=>{H+=a});const U=K.filter(a=>(a.data.value/H*100).toFixed(0)!=="0"),N=xt(Y).domain([...W.keys()]);m.selectAll("mySlices").data(U).enter().append("path").attr("d",A).attr("fill",a=>N(a.data.label)).attr("class",a=>{let c="pieCircle";return i.highlightSlice==="hover"?c+=" highlightedOnHover":i.highlightSlice===a.data.label&&(c+=" highlighted"),c}),m.selectAll("mySlices").data(U).enter().append("text").text(a=>(a.data.value/H*100).toFixed(0)+"%").attr("transform",a=>"translate("+M.centroid(a)+")").style("text-anchor","middle").attr("class","slice");const tt=f.append("text").text(l.getDiagramTitle()).attr("x",0).attr("y",-400/2).attr("class","pieTitleText"),L=[...W.entries()].map(([a,c])=>({label:a,value:c})),C=f.selectAll(".legend").data(L).enter().append("g").attr("class","legend");C.append("rect").attr("width",r).attr("height",r).style("fill",a=>N(a.label)).style("stroke",a=>N(a.label)),C.append("text").attr("x",r+s).attr("y",r-s).text(a=>l.getShowData()?`${a.label} [${a.value}]`:a.label);const z=Math.max(...C.selectAll("text").nodes().map(a=>(a==null?void 0:a.getBoundingClientRect().width)??0));let _=h,O=w+e;const g=r+s,P=L.length*g;switch(E){case"center":C.attr("transform",(a,c)=>{const v=g*L.length/2,x=-z/2-(r+s),S=c*g-v;return"translate("+x+","+S+")"});break;case"top":_+=P,C.attr("transform",(a,c)=>{const v=u,x=-z/2-(r+s),S=c*g-v;return`translate(${x}, ${S})`}),m.attr("transform",()=>`translate(0, ${P+g})`);break;case"bottom":_+=P,C.attr("transform",(a,c)=>{const v=-u-g,x=-z/2-(r+s),S=c*g-v;return"translate("+x+","+S+")"});break;case"left":O+=r+s+z,C.attr("transform",(a,c)=>{const v=g*L.length/2,x=-u-(r+s),S=c*g-v;return"translate("+x+","+S+")"}),m.attr("transform",()=>`translate(${z+r+s}, 0)`);break;case"right":default:O+=r+s+z,C.attr("transform",(a,c)=>{const v=g*L.length/2,x=12*r,S=c*g-v;return"translate("+x+","+S+")"});break}const j=((Z=tt.node())==null?void 0:Z.getBoundingClientRect().width)??0,et=w/2-j/2,at=w/2+j/2,Q=Math.min(0,et),X=Math.max(O,at)-Q;$.attr("viewBox",`${Q} 0 ${X} ${_}`),ht($,_,X,i.useMaxWidth)},"draw"),Ht={draw:Ft},Zt={parser:Lt,db:J,renderer:Ht,styles:Wt};export{Zt as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as s,r as l,d as t}from"./chunk-MOJQB5TN-D2zfH4wm.js";import{p as m}from"./chunk-JWPE2WC7-BjHi_aEM.js";import{_ as n,l as i}from"./MermaidRenderer-CnzIvTlj.js";import{M as p,c as u}from"./cynefin-VYW2F7L2-CyM6ijR6.js";import"./vendor-markdown-BRX1CUPf.js";import"./vendor-syntax-DG6Vo7Ci.js";import"./purify.es-D6gMnemd.js";import"./isPrototype-DezZrpQP.js";var d=u().Railroad.parser.LangiumParser,a=n(e=>{switch(e.$type){case"RailroadTerminalExpr":return{type:"terminal",value:e.value};case"RailroadNonTerminalExpr":return{type:"nonterminal",name:e.name};case"RailroadSpecialExpr":return{type:"special",text:e.text};case"RailroadSequenceExpr":{const r=e.elements.map(a);return r.length===1?r[0]:{type:"sequence",elements:r}}case"RailroadChoiceExpr":{const r=e.alternatives.map(a);return r.length===1?r[0]:{type:"choice",alternatives:r}}case"RailroadOptionalExpr":return{type:"optional",element:a(e.element)};case"RailroadOneOrMoreExpr":return{type:"repetition",element:a(e.element),min:1,max:1/0};case"RailroadZeroOrMoreExpr":return{type:"repetition",element:a(e.element),min:0,max:1/0};default:throw new Error(`Unsupported railroad expression: ${e.$type}`)}},"transformExpression"),c=n(e=>({name:e.name,definition:a(e.definition)}),"transformRule"),g=n(e=>{m(e,t),e.title&&t.setTitle(e.title),e.rules.map(r=>t.addRule(c(r)))},"populateDb"),y={parse:n(e=>{t.clear(),i.debug("[Railroad Parser] Starting Langium parse");const r=d.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new p(r);const o=r.value;i.debug("[Railroad Parser] Parsed rules:",o.rules.length),g(o),i.debug("[Railroad Parser] Parse complete")},"parse"),parser:{yy:t}},w={parser:y,db:t,renderer:l,styles:s};export{w as diagram};
|