package.dist.mermaid.min.js Maven / Gradle / Ivy
Show all versions of mermaid Show documentation
"use strict";var __esbuild_esm_mermaid=(()=>{var B1e=Object.create;var T1=Object.defineProperty;var F1e=Object.getOwnPropertyDescriptor;var z1e=Object.getOwnPropertyNames;var $1e=Object.getPrototypeOf,G1e=Object.prototype.hasOwnProperty;var s=(t,e)=>T1(t,"name",{value:e,configurable:!0});var _=(t,e)=>()=>(t&&(e=t(t=0)),e);var is=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ur=(t,e)=>{for(var r in e)T1(t,r,{get:e[r],enumerable:!0})},ob=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of z1e(e))!G1e.call(t,i)&&i!==r&&T1(t,i,{get:()=>e[i],enumerable:!(n=F1e(e,i))||n.enumerable});return t},lr=(t,e,r)=>(ob(t,e,"default"),r&&ob(r,e,"default")),ka=(t,e,r)=>(r=t!=null?B1e($1e(t)):{},ob(e||!t||!t.__esModule?T1(r,"default",{value:t,enumerable:!0}):r,t)),V1e=t=>ob(T1({},"__esModule",{value:!0}),t);function lb(t){for(var e=[],r=1;r{"use strict";s(lb,"dedent")});var cb=is((X7,j7)=>{"use strict";(function(t,e){typeof X7=="object"&&typeof j7<"u"?j7.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(X7,function(){"use strict";var t=1e3,e=6e4,r=36e5,n="millisecond",i="second",a="minute",o="hour",l="day",u="week",h="month",f="quarter",d="year",p="date",m="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:s(function(L){var P=["th","st","nd","rd"],M=L%100;return"["+L+(P[(M-20)%10]||P[M]||P[0])+"]"},"ordinal")},x=s(function(L,P,M){var F=String(L);return!F||F.length>=P?L:""+Array(P+1-F.length).join(M)+L},"m"),b={s:x,z:s(function(L){var P=-L.utcOffset(),M=Math.abs(P),F=Math.floor(M/60),I=M%60;return(P<=0?"+":"-")+x(F,2,"0")+":"+x(I,2,"0")},"z"),m:s(function L(P,M){if(P.date()1)return L(z[0])}else{var N=P.name;A[N]=P,I=N}return!F&&I&&(k=I),I||!F&&k},"t"),E=s(function(L,P){if(T(L))return L.clone();var M=typeof P=="object"?P:{};return M.date=L,M.args=arguments,new R(M)},"O"),S=b;S.l=C,S.i=T,S.w=function(L,P){return E(L,{locale:P.$L,utc:P.$u,x:P.$x,$offset:P.$offset})};var R=function(){function L(M){this.$L=C(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[w]=!0}s(L,"M");var P=L.prototype;return P.parse=function(M){this.$d=function(F){var I=F.date,O=F.utc;if(I===null)return new Date(NaN);if(S.u(I))return new Date;if(I instanceof Date)return new Date(I);if(typeof I=="string"&&!/Z$/i.test(I)){var z=I.match(g);if(z){var N=z[2]-1||0,U=(z[7]||"0").substring(0,3);return O?new Date(Date.UTC(z[1],N,z[3]||1,z[4]||0,z[5]||0,z[6]||0,U)):new Date(z[1],N,z[3]||1,z[4]||0,z[5]||0,z[6]||0,U)}}return new Date(I)}(M),this.init()},P.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},P.$utils=function(){return S},P.isValid=function(){return this.$d.toString()!==m},P.isSame=function(M,F){var I=E(M);return this.startOf(F)<=I&&I<=this.endOf(F)},P.isAfter=function(M,F){return E(M){"use strict";LB=ka(cb(),1),Uc={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},V={trace:s((...t)=>{},"trace"),debug:s((...t)=>{},"debug"),info:s((...t)=>{},"info"),warn:s((...t)=>{},"warn"),error:s((...t)=>{},"error"),fatal:s((...t)=>{},"fatal")},E1=s(function(t="fatal"){let e=Uc.fatal;typeof t=="string"?t.toLowerCase()in Uc&&(e=Uc[t]):typeof t=="number"&&(e=t),V.trace=()=>{},V.debug=()=>{},V.info=()=>{},V.warn=()=>{},V.error=()=>{},V.fatal=()=>{},e<=Uc.fatal&&(V.fatal=console.error?console.error.bind(console,fo("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",fo("FATAL"))),e<=Uc.error&&(V.error=console.error?console.error.bind(console,fo("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",fo("ERROR"))),e<=Uc.warn&&(V.warn=console.warn?console.warn.bind(console,fo("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",fo("WARN"))),e<=Uc.info&&(V.info=console.info?console.info.bind(console,fo("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",fo("INFO"))),e<=Uc.debug&&(V.debug=console.debug?console.debug.bind(console,fo("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",fo("DEBUG"))),e<=Uc.trace&&(V.trace=console.debug?console.debug.bind(console,fo("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",fo("TRACE")))},"setLogLevel"),fo=s(t=>`%c${(0,LB.default)().format("ss.SSS")} : ${t} : `,"format")});var ub,Df,DB,hb=_(()=>{"use strict";ub=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,Df=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,DB=/\s*%%.*\n/gm});var W0,K7=_(()=>{"use strict";W0=class extends Error{static{s(this,"UnknownDiagramError")}constructor(e){super(e),this.name="UnknownDiagramError"}}});var Rf,H0,fb,Q7,RB,Mf=_(()=>{"use strict";it();hb();K7();Rf={},H0=s(function(t,e){t=t.replace(ub,"").replace(Df,"").replace(DB,`
`);for(let[r,{detector:n}]of Object.entries(Rf))if(n(t,e))return r;throw new W0(`No diagram type detected matching given configuration for text: ${t}`)},"detectType"),fb=s((...t)=>{for(let{id:e,detector:r,loader:n}of t)Q7(e,r,n)},"registerLazyLoadedDiagrams"),Q7=s((t,e,r)=>{Rf[t]&&V.warn(`Detector with key ${t} already exists. Overwriting.`),Rf[t]={detector:e,loader:r},V.debug(`Detector with key ${t} added${r?" with loader":""}`)},"addDetector"),RB=s(t=>Rf[t].loader,"getDiagramLoader")});var C1,MB,Z7=_(()=>{"use strict";C1=function(){var t=s(function(_e,he,q,se){for(q=q||{},se=_e.length;se--;q[_e[se]]=he);return q},"o"),e=[1,24],r=[1,25],n=[1,26],i=[1,27],a=[1,28],o=[1,63],l=[1,64],u=[1,65],h=[1,66],f=[1,67],d=[1,68],p=[1,69],m=[1,29],g=[1,30],y=[1,31],v=[1,32],x=[1,33],b=[1,34],k=[1,35],A=[1,36],w=[1,37],T=[1,38],C=[1,39],E=[1,40],S=[1,41],R=[1,42],D=[1,43],L=[1,44],P=[1,45],M=[1,46],F=[1,47],I=[1,48],O=[1,50],z=[1,51],N=[1,52],U=[1,53],$=[1,54],W=[1,55],ee=[1,56],te=[1,57],ce=[1,58],Z=[1,59],fe=[1,60],ne=[14,42],H=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Q=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],K=[1,82],re=[1,83],ie=[1,84],ye=[1,85],j=[12,14,42],De=[12,14,33,42],oe=[12,14,33,42,76,77,79,80],Re=[12,33],Pe=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Se={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:s(function(he,q,se,ue,X,ae,pe){var de=ae.length-1;switch(X){case 3:ue.setDirection("TB");break;case 4:ue.setDirection("BT");break;case 5:ue.setDirection("RL");break;case 6:ue.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:ue.setC4Type(ae[de-3]);break;case 19:ue.setTitle(ae[de].substring(6)),this.$=ae[de].substring(6);break;case 20:ue.setAccDescription(ae[de].substring(15)),this.$=ae[de].substring(15);break;case 21:this.$=ae[de].trim(),ue.setTitle(this.$);break;case 22:case 23:this.$=ae[de].trim(),ue.setAccDescription(this.$);break;case 28:ae[de].splice(2,0,"ENTERPRISE"),ue.addPersonOrSystemBoundary(...ae[de]),this.$=ae[de];break;case 29:ae[de].splice(2,0,"SYSTEM"),ue.addPersonOrSystemBoundary(...ae[de]),this.$=ae[de];break;case 30:ue.addPersonOrSystemBoundary(...ae[de]),this.$=ae[de];break;case 31:ae[de].splice(2,0,"CONTAINER"),ue.addContainerBoundary(...ae[de]),this.$=ae[de];break;case 32:ue.addDeploymentNode("node",...ae[de]),this.$=ae[de];break;case 33:ue.addDeploymentNode("nodeL",...ae[de]),this.$=ae[de];break;case 34:ue.addDeploymentNode("nodeR",...ae[de]),this.$=ae[de];break;case 35:ue.popBoundaryParseStack();break;case 39:ue.addPersonOrSystem("person",...ae[de]),this.$=ae[de];break;case 40:ue.addPersonOrSystem("external_person",...ae[de]),this.$=ae[de];break;case 41:ue.addPersonOrSystem("system",...ae[de]),this.$=ae[de];break;case 42:ue.addPersonOrSystem("system_db",...ae[de]),this.$=ae[de];break;case 43:ue.addPersonOrSystem("system_queue",...ae[de]),this.$=ae[de];break;case 44:ue.addPersonOrSystem("external_system",...ae[de]),this.$=ae[de];break;case 45:ue.addPersonOrSystem("external_system_db",...ae[de]),this.$=ae[de];break;case 46:ue.addPersonOrSystem("external_system_queue",...ae[de]),this.$=ae[de];break;case 47:ue.addContainer("container",...ae[de]),this.$=ae[de];break;case 48:ue.addContainer("container_db",...ae[de]),this.$=ae[de];break;case 49:ue.addContainer("container_queue",...ae[de]),this.$=ae[de];break;case 50:ue.addContainer("external_container",...ae[de]),this.$=ae[de];break;case 51:ue.addContainer("external_container_db",...ae[de]),this.$=ae[de];break;case 52:ue.addContainer("external_container_queue",...ae[de]),this.$=ae[de];break;case 53:ue.addComponent("component",...ae[de]),this.$=ae[de];break;case 54:ue.addComponent("component_db",...ae[de]),this.$=ae[de];break;case 55:ue.addComponent("component_queue",...ae[de]),this.$=ae[de];break;case 56:ue.addComponent("external_component",...ae[de]),this.$=ae[de];break;case 57:ue.addComponent("external_component_db",...ae[de]),this.$=ae[de];break;case 58:ue.addComponent("external_component_queue",...ae[de]),this.$=ae[de];break;case 60:ue.addRel("rel",...ae[de]),this.$=ae[de];break;case 61:ue.addRel("birel",...ae[de]),this.$=ae[de];break;case 62:ue.addRel("rel_u",...ae[de]),this.$=ae[de];break;case 63:ue.addRel("rel_d",...ae[de]),this.$=ae[de];break;case 64:ue.addRel("rel_l",...ae[de]),this.$=ae[de];break;case 65:ue.addRel("rel_r",...ae[de]),this.$=ae[de];break;case 66:ue.addRel("rel_b",...ae[de]),this.$=ae[de];break;case 67:ae[de].splice(0,1),ue.addRel("rel",...ae[de]),this.$=ae[de];break;case 68:ue.updateElStyle("update_el_style",...ae[de]),this.$=ae[de];break;case 69:ue.updateRelStyle("update_rel_style",...ae[de]),this.$=ae[de];break;case 70:ue.updateLayoutConfig("update_layout_config",...ae[de]),this.$=ae[de];break;case 71:this.$=[ae[de]];break;case 72:ae[de].unshift(ae[de-1]),this.$=ae[de];break;case 73:case 75:this.$=ae[de].trim();break;case 74:let Ie={};Ie[ae[de-1].trim()]=ae[de].trim(),this.$=Ie;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:e,23:r,24:n,26:i,28:a,29:49,30:61,32:62,34:o,36:l,37:u,38:h,39:f,40:d,41:p,43:23,44:m,45:g,46:y,47:v,48:x,49:b,50:k,51:A,52:w,53:T,54:C,55:E,56:S,57:R,58:D,59:L,60:P,61:M,62:F,63:I,64:O,65:z,66:N,67:U,68:$,69:W,70:ee,71:te,72:ce,73:Z,74:fe},{13:70,19:20,20:21,21:22,22:e,23:r,24:n,26:i,28:a,29:49,30:61,32:62,34:o,36:l,37:u,38:h,39:f,40:d,41:p,43:23,44:m,45:g,46:y,47:v,48:x,49:b,50:k,51:A,52:w,53:T,54:C,55:E,56:S,57:R,58:D,59:L,60:P,61:M,62:F,63:I,64:O,65:z,66:N,67:U,68:$,69:W,70:ee,71:te,72:ce,73:Z,74:fe},{13:71,19:20,20:21,21:22,22:e,23:r,24:n,26:i,28:a,29:49,30:61,32:62,34:o,36:l,37:u,38:h,39:f,40:d,41:p,43:23,44:m,45:g,46:y,47:v,48:x,49:b,50:k,51:A,52:w,53:T,54:C,55:E,56:S,57:R,58:D,59:L,60:P,61:M,62:F,63:I,64:O,65:z,66:N,67:U,68:$,69:W,70:ee,71:te,72:ce,73:Z,74:fe},{13:72,19:20,20:21,21:22,22:e,23:r,24:n,26:i,28:a,29:49,30:61,32:62,34:o,36:l,37:u,38:h,39:f,40:d,41:p,43:23,44:m,45:g,46:y,47:v,48:x,49:b,50:k,51:A,52:w,53:T,54:C,55:E,56:S,57:R,58:D,59:L,60:P,61:M,62:F,63:I,64:O,65:z,66:N,67:U,68:$,69:W,70:ee,71:te,72:ce,73:Z,74:fe},{13:73,19:20,20:21,21:22,22:e,23:r,24:n,26:i,28:a,29:49,30:61,32:62,34:o,36:l,37:u,38:h,39:f,40:d,41:p,43:23,44:m,45:g,46:y,47:v,48:x,49:b,50:k,51:A,52:w,53:T,54:C,55:E,56:S,57:R,58:D,59:L,60:P,61:M,62:F,63:I,64:O,65:z,66:N,67:U,68:$,69:W,70:ee,71:te,72:ce,73:Z,74:fe},{14:[1,74]},t(ne,[2,13],{43:23,29:49,30:61,32:62,20:75,34:o,36:l,37:u,38:h,39:f,40:d,41:p,44:m,45:g,46:y,47:v,48:x,49:b,50:k,51:A,52:w,53:T,54:C,55:E,56:S,57:R,58:D,59:L,60:P,61:M,62:F,63:I,64:O,65:z,66:N,67:U,68:$,69:W,70:ee,71:te,72:ce,73:Z,74:fe}),t(ne,[2,14]),t(H,[2,16],{12:[1,76]}),t(ne,[2,36],{12:[1,77]}),t(Q,[2,19]),t(Q,[2,20]),{25:[1,78]},{27:[1,79]},t(Q,[2,23]),{35:80,75:81,76:K,77:re,79:ie,80:ye},{35:86,75:81,76:K,77:re,79:ie,80:ye},{35:87,75:81,76:K,77:re,79:ie,80:ye},{35:88,75:81,76:K,77:re,79:ie,80:ye},{35:89,75:81,76:K,77:re,79:ie,80:ye},{35:90,75:81,76:K,77:re,79:ie,80:ye},{35:91,75:81,76:K,77:re,79:ie,80:ye},{35:92,75:81,76:K,77:re,79:ie,80:ye},{35:93,75:81,76:K,77:re,79:ie,80:ye},{35:94,75:81,76:K,77:re,79:ie,80:ye},{35:95,75:81,76:K,77:re,79:ie,80:ye},{35:96,75:81,76:K,77:re,79:ie,80:ye},{35:97,75:81,76:K,77:re,79:ie,80:ye},{35:98,75:81,76:K,77:re,79:ie,80:ye},{35:99,75:81,76:K,77:re,79:ie,80:ye},{35:100,75:81,76:K,77:re,79:ie,80:ye},{35:101,75:81,76:K,77:re,79:ie,80:ye},{35:102,75:81,76:K,77:re,79:ie,80:ye},{35:103,75:81,76:K,77:re,79:ie,80:ye},{35:104,75:81,76:K,77:re,79:ie,80:ye},t(j,[2,59]),{35:105,75:81,76:K,77:re,79:ie,80:ye},{35:106,75:81,76:K,77:re,79:ie,80:ye},{35:107,75:81,76:K,77:re,79:ie,80:ye},{35:108,75:81,76:K,77:re,79:ie,80:ye},{35:109,75:81,76:K,77:re,79:ie,80:ye},{35:110,75:81,76:K,77:re,79:ie,80:ye},{35:111,75:81,76:K,77:re,79:ie,80:ye},{35:112,75:81,76:K,77:re,79:ie,80:ye},{35:113,75:81,76:K,77:re,79:ie,80:ye},{35:114,75:81,76:K,77:re,79:ie,80:ye},{35:115,75:81,76:K,77:re,79:ie,80:ye},{20:116,29:49,30:61,32:62,34:o,36:l,37:u,38:h,39:f,40:d,41:p,43:23,44:m,45:g,46:y,47:v,48:x,49:b,50:k,51:A,52:w,53:T,54:C,55:E,56:S,57:R,58:D,59:L,60:P,61:M,62:F,63:I,64:O,65:z,66:N,67:U,68:$,69:W,70:ee,71:te,72:ce,73:Z,74:fe},{12:[1,118],33:[1,117]},{35:119,75:81,76:K,77:re,79:ie,80:ye},{35:120,75:81,76:K,77:re,79:ie,80:ye},{35:121,75:81,76:K,77:re,79:ie,80:ye},{35:122,75:81,76:K,77:re,79:ie,80:ye},{35:123,75:81,76:K,77:re,79:ie,80:ye},{35:124,75:81,76:K,77:re,79:ie,80:ye},{35:125,75:81,76:K,77:re,79:ie,80:ye},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},t(ne,[2,15]),t(H,[2,17],{21:22,19:130,22:e,23:r,24:n,26:i,28:a}),t(ne,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:e,23:r,24:n,26:i,28:a,34:o,36:l,37:u,38:h,39:f,40:d,41:p,44:m,45:g,46:y,47:v,48:x,49:b,50:k,51:A,52:w,53:T,54:C,55:E,56:S,57:R,58:D,59:L,60:P,61:M,62:F,63:I,64:O,65:z,66:N,67:U,68:$,69:W,70:ee,71:te,72:ce,73:Z,74:fe}),t(Q,[2,21]),t(Q,[2,22]),t(j,[2,39]),t(De,[2,71],{75:81,35:132,76:K,77:re,79:ie,80:ye}),t(oe,[2,73]),{78:[1,133]},t(oe,[2,75]),t(oe,[2,76]),t(j,[2,40]),t(j,[2,41]),t(j,[2,42]),t(j,[2,43]),t(j,[2,44]),t(j,[2,45]),t(j,[2,46]),t(j,[2,47]),t(j,[2,48]),t(j,[2,49]),t(j,[2,50]),t(j,[2,51]),t(j,[2,52]),t(j,[2,53]),t(j,[2,54]),t(j,[2,55]),t(j,[2,56]),t(j,[2,57]),t(j,[2,58]),t(j,[2,60]),t(j,[2,61]),t(j,[2,62]),t(j,[2,63]),t(j,[2,64]),t(j,[2,65]),t(j,[2,66]),t(j,[2,67]),t(j,[2,68]),t(j,[2,69]),t(j,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},t(Re,[2,28]),t(Re,[2,29]),t(Re,[2,30]),t(Re,[2,31]),t(Re,[2,32]),t(Re,[2,33]),t(Re,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},t(H,[2,18]),t(ne,[2,38]),t(De,[2,72]),t(oe,[2,74]),t(j,[2,24]),t(j,[2,35]),t(Pe,[2,25]),t(Pe,[2,26],{12:[1,138]}),t(Pe,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:s(function(he,q){if(q.recoverable)this.trace(he);else{var se=new Error(he);throw se.hash=q,se}},"parseError"),parse:s(function(he){var q=this,se=[0],ue=[],X=[null],ae=[],pe=this.table,de="",Ie=0,Ne=0,Be=0,ze=2,qe=1,Fe=ae.slice.call(arguments,1),we=Object.create(this.lexer),Je={yy:{}};for(var We in this.yy)Object.prototype.hasOwnProperty.call(this.yy,We)&&(Je.yy[We]=this.yy[We]);we.setInput(he,Je.yy),Je.yy.lexer=we,Je.yy.parser=this,typeof we.yylloc>"u"&&(we.yylloc={});var or=we.yylloc;ae.push(or);var Cr=we.options&&we.options.ranges;typeof Je.yy.parseError=="function"?this.parseError=Je.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ut(Bt){se.length=se.length-2*Bt,X.length=X.length-Bt,ae.length=ae.length-Bt}s(Ut,"popStack");function ar(){var Bt;return Bt=ue.pop()||we.lex()||qe,typeof Bt!="number"&&(Bt instanceof Array&&(ue=Bt,Bt=ue.pop()),Bt=q.symbols_[Bt]||Bt),Bt}s(ar,"lex");for(var ut,Rt,Qe,Dt,qt,yt,Et={},pt,Wt,ot,fr;;){if(Qe=se[se.length-1],this.defaultActions[Qe]?Dt=this.defaultActions[Qe]:((ut===null||typeof ut>"u")&&(ut=ar()),Dt=pe[Qe]&&pe[Qe][ut]),typeof Dt>"u"||!Dt.length||!Dt[0]){var vt="";fr=[];for(pt in pe[Qe])this.terminals_[pt]&&pt>ze&&fr.push("'"+this.terminals_[pt]+"'");we.showPosition?vt="Parse error on line "+(Ie+1)+`:
`+we.showPosition()+`
Expecting `+fr.join(", ")+", got '"+(this.terminals_[ut]||ut)+"'":vt="Parse error on line "+(Ie+1)+": Unexpected "+(ut==qe?"end of input":"'"+(this.terminals_[ut]||ut)+"'"),this.parseError(vt,{text:we.match,token:this.terminals_[ut]||ut,line:we.yylineno,loc:or,expected:fr})}if(Dt[0]instanceof Array&&Dt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Qe+", token: "+ut);switch(Dt[0]){case 1:se.push(ut),X.push(we.yytext),ae.push(we.yylloc),se.push(Dt[1]),ut=null,Rt?(ut=Rt,Rt=null):(Ne=we.yyleng,de=we.yytext,Ie=we.yylineno,or=we.yylloc,Be>0&&Be--);break;case 2:if(Wt=this.productions_[Dt[1]][1],Et.$=X[X.length-Wt],Et._$={first_line:ae[ae.length-(Wt||1)].first_line,last_line:ae[ae.length-1].last_line,first_column:ae[ae.length-(Wt||1)].first_column,last_column:ae[ae.length-1].last_column},Cr&&(Et._$.range=[ae[ae.length-(Wt||1)].range[0],ae[ae.length-1].range[1]]),yt=this.performAction.apply(Et,[de,Ne,Ie,Je.yy,Dt[1],X,ae].concat(Fe)),typeof yt<"u")return yt;Wt&&(se=se.slice(0,-1*Wt*2),X=X.slice(0,-1*Wt),ae=ae.slice(0,-1*Wt)),se.push(this.productions_[Dt[1]][0]),X.push(Et.$),ae.push(Et._$),ot=pe[se[se.length-2]][se[se.length-1]],se.push(ot);break;case 3:return!0}}return!0},"parse")},Ue=function(){var _e={EOF:1,parseError:s(function(q,se){if(this.yy.parser)this.yy.parser.parseError(q,se);else throw new Error(q)},"parseError"),setInput:s(function(he,q){return this.yy=q||this.yy||{},this._input=he,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:s(function(){var he=this._input[0];this.yytext+=he,this.yyleng++,this.offset++,this.match+=he,this.matched+=he;var q=he.match(/(?:\r\n?|\n).*/g);return q?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),he},"input"),unput:s(function(he){var q=he.length,se=he.split(/(?:\r\n?|\n)/g);this._input=he+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-q),this.offset-=q;var ue=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),se.length-1&&(this.yylineno-=se.length-1);var X=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:se?(se.length===ue.length?this.yylloc.first_column:0)+ue[ue.length-se.length].length-se[0].length:this.yylloc.first_column-q},this.options.ranges&&(this.yylloc.range=[X[0],X[0]+this.yyleng-q]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(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).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(he){this.unput(this.match.slice(he))},"less"),pastInput:s(function(){var he=this.matched.substr(0,this.matched.length-this.match.length);return(he.length>20?"...":"")+he.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var he=this.match;return he.length<20&&(he+=this._input.substr(0,20-he.length)),(he.substr(0,20)+(he.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var he=this.pastInput(),q=new Array(he.length+1).join("-");return he+this.upcomingInput()+`
`+q+"^"},"showPosition"),test_match:s(function(he,q){var se,ue,X;if(this.options.backtrack_lexer&&(X={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&&(X.yylloc.range=this.yylloc.range.slice(0))),ue=he[0].match(/(?:\r\n?|\n).*/g),ue&&(this.yylineno+=ue.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ue?ue[ue.length-1].length-ue[ue.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+he[0].length},this.yytext+=he[0],this.match+=he[0],this.matches=he,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(he[0].length),this.matched+=he[0],se=this.performAction.call(this,this.yy,this,q,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),se)return se;if(this._backtrack){for(var ae in X)this[ae]=X[ae];return!1}return!1},"test_match"),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var he,q,se,ue;this._more||(this.yytext="",this.match="");for(var X=this._currentRules(),ae=0;aeq[0].length)){if(q=se,ue=ae,this.options.backtrack_lexer){if(he=this.test_match(se,X[ae]),he!==!1)return he;if(this._backtrack){q=!1;continue}else return!1}else if(!this.options.flex)break}return q?(he=this.test_match(q,X[ue]),he!==!1?he:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var q=this.next();return q||this.lex()},"lex"),begin:s(function(q){this.conditionStack.push(q)},"begin"),popState:s(function(){var q=this.conditionStack.length-1;return q>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:s(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:s(function(q){return q=this.conditionStack.length-1-Math.abs(q||0),q>=0?this.conditionStack[q]:"INITIAL"},"topState"),pushState:s(function(q){this.begin(q)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:s(function(q,se,ue,X){var ae=X;switch(ue){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),26;break;case 9:return this.popState(),"acc_descr_value";break;case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:break;case 14:c;break;case 15:return 12;case 16:break;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;break;case 23:return this.begin("person"),44;break;case 24:return this.begin("system_ext_queue"),51;break;case 25:return this.begin("system_ext_db"),50;break;case 26:return this.begin("system_ext"),49;break;case 27:return this.begin("system_queue"),48;break;case 28:return this.begin("system_db"),47;break;case 29:return this.begin("system"),46;break;case 30:return this.begin("boundary"),37;break;case 31:return this.begin("enterprise_boundary"),34;break;case 32:return this.begin("system_boundary"),36;break;case 33:return this.begin("container_ext_queue"),57;break;case 34:return this.begin("container_ext_db"),56;break;case 35:return this.begin("container_ext"),55;break;case 36:return this.begin("container_queue"),54;break;case 37:return this.begin("container_db"),53;break;case 38:return this.begin("container"),52;break;case 39:return this.begin("container_boundary"),38;break;case 40:return this.begin("component_ext_queue"),63;break;case 41:return this.begin("component_ext_db"),62;break;case 42:return this.begin("component_ext"),61;break;case 43:return this.begin("component_queue"),60;break;case 44:return this.begin("component_db"),59;break;case 45:return this.begin("component"),58;break;case 46:return this.begin("node"),39;break;case 47:return this.begin("node"),39;break;case 48:return this.begin("node_l"),40;break;case 49:return this.begin("node_r"),41;break;case 50:return this.begin("rel"),64;break;case 51:return this.begin("birel"),65;break;case 52:return this.begin("rel_u"),66;break;case 53:return this.begin("rel_u"),66;break;case 54:return this.begin("rel_d"),67;break;case 55:return this.begin("rel_d"),67;break;case 56:return this.begin("rel_l"),68;break;case 57:return this.begin("rel_l"),68;break;case 58:return this.begin("rel_r"),69;break;case 59:return this.begin("rel_r"),69;break;case 60:return this.begin("rel_b"),70;break;case 61:return this.begin("rel_index"),71;break;case 62:return this.begin("update_el_style"),72;break;case 63:return this.begin("update_rel_style"),73;break;case 64:return this.begin("update_layout_config"),74;break;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";break;case 67:this.begin("attribute");break;case 68:this.popState(),this.popState();break;case 69:return 80;case 70:break;case 71:return 80;case 72:this.begin("string");break;case 73:this.popState();break;case 74:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";break;case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 79:this.popState(),this.popState();break;case 80:return"STR";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,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,53,54,55,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:!0}}};return _e}();Se.lexer=Ue;function Oe(){this.yy={}}return s(Oe,"Parser"),Oe.prototype=Se,Se.Parser=Oe,new Oe}();C1.parser=C1;MB=C1});var J7,An,Y0=_(()=>{"use strict";J7=s((t,e,{depth:r=2,clobber:n=!1}={})=>{let i={depth:r,clobber:n};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(a=>J7(t,a,i)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(a=>{t.includes(a)||t.push(a)}),t):t===void 0||r<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(a=>{typeof e[a]=="object"&&(t[a]===void 0||typeof t[a]=="object")?(t[a]===void 0&&(t[a]=Array.isArray(e[a])?[]:{}),t[a]=J7(t[a],e[a],{depth:r-1,clobber:n})):(n||typeof t[a]!="object"&&typeof e[a]!="object")&&(t[a]=e[a])}),t)},"assignWithDepth"),An=J7});var db,IB,NB=_(()=>{"use strict";db={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:s(t=>t>=255?255:t<0?0:t,"r"),g:s(t=>t>=255?255:t<0?0:t,"g"),b:s(t=>t>=255?255:t<0?0:t,"b"),h:s(t=>t%360,"h"),s:s(t=>t>=100?100:t<0?0:t,"s"),l:s(t=>t>=100?100:t<0?0:t,"l"),a:s(t=>t>=1?1:t<0?0:t,"a")},toLinear:s(t=>{let e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},"toLinear"),hue2rgb:s((t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<.16666666666666666?t+(e-t)*6*r:r<.5?e:r<.6666666666666666?t+(e-t)*(.6666666666666666-r)*6:t),"hue2rgb"),hsl2rgb:s(({h:t,s:e,l:r},n)=>{if(!e)return r*2.55;t/=360,e/=100,r/=100;let i=r<.5?r*(1+e):r+e-r*e,a=2*r-i;switch(n){case"r":return db.hue2rgb(a,i,t+.3333333333333333)*255;case"g":return db.hue2rgb(a,i,t)*255;case"b":return db.hue2rgb(a,i,t-.3333333333333333)*255}},"hsl2rgb"),rgb2hsl:s(({r:t,g:e,b:r},n)=>{t/=255,e/=255,r/=255;let i=Math.max(t,e,r),a=Math.min(t,e,r),o=(i+a)/2;if(n==="l")return o*100;if(i===a)return 0;let l=i-a,u=o>.5?l/(2-i-a):l/(i+a);if(n==="s")return u*100;switch(i){case t:return((e-r)/l+(e{"use strict";U1e={clamp:s((t,e,r)=>e>r?Math.min(e,Math.max(r,t)):Math.min(r,Math.max(e,t)),"clamp"),round:s(t=>Math.round(t*1e10)/1e10,"round")},OB=U1e});var q1e,BB,FB=_(()=>{"use strict";q1e={dec2hex:s(t=>{let e=Math.round(t).toString(16);return e.length>1?e:`0${e}`},"dec2hex")},BB=q1e});var W1e,Ct,Ol=_(()=>{"use strict";NB();PB();FB();W1e={channel:IB,lang:OB,unit:BB},Ct=W1e});var qc,ki,S1=_(()=>{"use strict";Ol();qc={};for(let t=0;t<=255;t++)qc[t]=Ct.unit.dec2hex(t);ki={ALL:0,RGB:1,HSL:2}});var eE,zB,$B=_(()=>{"use strict";S1();eE=class{static{s(this,"Type")}constructor(){this.type=ki.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=ki.ALL}is(e){return this.type===e}},zB=eE});var tE,GB,VB=_(()=>{"use strict";Ol();$B();S1();tE=class{static{s(this,"Channels")}constructor(e,r){this.color=r,this.changed=!1,this.data=e,this.type=new zB}set(e,r){return this.color=r,this.changed=!1,this.data=e,this.type.type=ki.ALL,this}_ensureHSL(){let e=this.data,{h:r,s:n,l:i}=e;r===void 0&&(e.h=Ct.channel.rgb2hsl(e,"h")),n===void 0&&(e.s=Ct.channel.rgb2hsl(e,"s")),i===void 0&&(e.l=Ct.channel.rgb2hsl(e,"l"))}_ensureRGB(){let e=this.data,{r,g:n,b:i}=e;r===void 0&&(e.r=Ct.channel.hsl2rgb(e,"r")),n===void 0&&(e.g=Ct.channel.hsl2rgb(e,"g")),i===void 0&&(e.b=Ct.channel.hsl2rgb(e,"b"))}get r(){let e=this.data,r=e.r;return!this.type.is(ki.HSL)&&r!==void 0?r:(this._ensureHSL(),Ct.channel.hsl2rgb(e,"r"))}get g(){let e=this.data,r=e.g;return!this.type.is(ki.HSL)&&r!==void 0?r:(this._ensureHSL(),Ct.channel.hsl2rgb(e,"g"))}get b(){let e=this.data,r=e.b;return!this.type.is(ki.HSL)&&r!==void 0?r:(this._ensureHSL(),Ct.channel.hsl2rgb(e,"b"))}get h(){let e=this.data,r=e.h;return!this.type.is(ki.RGB)&&r!==void 0?r:(this._ensureRGB(),Ct.channel.rgb2hsl(e,"h"))}get s(){let e=this.data,r=e.s;return!this.type.is(ki.RGB)&&r!==void 0?r:(this._ensureRGB(),Ct.channel.rgb2hsl(e,"s"))}get l(){let e=this.data,r=e.l;return!this.type.is(ki.RGB)&&r!==void 0?r:(this._ensureRGB(),Ct.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(ki.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(ki.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(ki.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(ki.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(ki.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(ki.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}},GB=tE});var H1e,th,_1=_(()=>{"use strict";VB();H1e=new GB({r:0,g:0,b:0,a:0},"transparent"),th=H1e});var UB,If,rE=_(()=>{"use strict";_1();S1();UB={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:s(t=>{if(t.charCodeAt(0)!==35)return;let e=t.match(UB.re);if(!e)return;let r=e[1],n=parseInt(r,16),i=r.length,a=i%4===0,o=i>4,l=o?1:17,u=o?8:4,h=a?0:-1,f=o?255:15;return th.set({r:(n>>u*(h+3)&f)*l,g:(n>>u*(h+2)&f)*l,b:(n>>u*(h+1)&f)*l,a:a?(n&f)*l/255:1},t)},"parse"),stringify:s(t=>{let{r:e,g:r,b:n,a:i}=t;return i<1?`#${qc[Math.round(e)]}${qc[Math.round(r)]}${qc[Math.round(n)]}${qc[Math.round(i*255)]}`:`#${qc[Math.round(e)]}${qc[Math.round(r)]}${qc[Math.round(n)]}`},"stringify")},If=UB});var pb,A1,qB=_(()=>{"use strict";Ol();_1();pb={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:s(t=>{let e=t.match(pb.hueRe);if(e){let[,r,n]=e;switch(n){case"grad":return Ct.channel.clamp.h(parseFloat(r)*.9);case"rad":return Ct.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return Ct.channel.clamp.h(parseFloat(r)*360)}}return Ct.channel.clamp.h(parseFloat(t))},"_hue2deg"),parse:s(t=>{let e=t.charCodeAt(0);if(e!==104&&e!==72)return;let r=t.match(pb.re);if(!r)return;let[,n,i,a,o,l]=r;return th.set({h:pb._hue2deg(n),s:Ct.channel.clamp.s(parseFloat(i)),l:Ct.channel.clamp.l(parseFloat(a)),a:o?Ct.channel.clamp.a(l?parseFloat(o)/100:parseFloat(o)):1},t)},"parse"),stringify:s(t=>{let{h:e,s:r,l:n,a:i}=t;return i<1?`hsla(${Ct.lang.round(e)}, ${Ct.lang.round(r)}%, ${Ct.lang.round(n)}%, ${i})`:`hsl(${Ct.lang.round(e)}, ${Ct.lang.round(r)}%, ${Ct.lang.round(n)}%)`},"stringify")},A1=pb});var mb,nE,WB=_(()=>{"use strict";rE();mb={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:s(t=>{t=t.toLowerCase();let e=mb.colors[t];if(e)return If.parse(e)},"parse"),stringify:s(t=>{let e=If.stringify(t);for(let r in mb.colors)if(mb.colors[r]===e)return r},"stringify")},nE=mb});var HB,L1,YB=_(()=>{"use strict";Ol();_1();HB={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:s(t=>{let e=t.charCodeAt(0);if(e!==114&&e!==82)return;let r=t.match(HB.re);if(!r)return;let[,n,i,a,o,l,u,h,f]=r;return th.set({r:Ct.channel.clamp.r(i?parseFloat(n)*2.55:parseFloat(n)),g:Ct.channel.clamp.g(o?parseFloat(a)*2.55:parseFloat(a)),b:Ct.channel.clamp.b(u?parseFloat(l)*2.55:parseFloat(l)),a:h?Ct.channel.clamp.a(f?parseFloat(h)/100:parseFloat(h)):1},t)},"parse"),stringify:s(t=>{let{r:e,g:r,b:n,a:i}=t;return i<1?`rgba(${Ct.lang.round(e)}, ${Ct.lang.round(r)}, ${Ct.lang.round(n)}, ${Ct.lang.round(i)})`:`rgb(${Ct.lang.round(e)}, ${Ct.lang.round(r)}, ${Ct.lang.round(n)})`},"stringify")},L1=HB});var Y1e,wi,Wc=_(()=>{"use strict";rE();qB();WB();YB();S1();Y1e={format:{keyword:nE,hex:If,rgb:L1,rgba:L1,hsl:A1,hsla:A1},parse:s(t=>{if(typeof t!="string")return t;let e=If.parse(t)||L1.parse(t)||A1.parse(t)||nE.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},"parse"),stringify:s(t=>!t.changed&&t.color?t.color:t.type.is(ki.HSL)||t.data.r===void 0?A1.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?L1.stringify(t):If.stringify(t),"stringify")},wi=Y1e});var X1e,gb,iE=_(()=>{"use strict";Ol();Wc();X1e=s((t,e)=>{let r=wi.parse(t);for(let n in e)r[n]=Ct.channel.clamp[n](e[n]);return wi.stringify(r)},"change"),gb=X1e});var j1e,Fs,aE=_(()=>{"use strict";Ol();_1();Wc();iE();j1e=s((t,e,r=0,n=1)=>{if(typeof t!="number")return gb(t,{a:e});let i=th.set({r:Ct.channel.clamp.r(t),g:Ct.channel.clamp.g(e),b:Ct.channel.clamp.b(r),a:Ct.channel.clamp.a(n)});return wi.stringify(i)},"rgba"),Fs=j1e});var K1e,D1,XB=_(()=>{"use strict";Ol();Wc();K1e=s((t,e)=>Ct.lang.round(wi.parse(t)[e]),"channel"),D1=K1e});var Q1e,jB,KB=_(()=>{"use strict";Ol();Wc();Q1e=s(t=>{let{r:e,g:r,b:n}=wi.parse(t),i=.2126*Ct.channel.toLinear(e)+.7152*Ct.channel.toLinear(r)+.0722*Ct.channel.toLinear(n);return Ct.lang.round(i)},"luminance"),jB=Q1e});var Z1e,QB,ZB=_(()=>{"use strict";KB();Z1e=s(t=>jB(t)>=.5,"isLight"),QB=Z1e});var J1e,Fa,JB=_(()=>{"use strict";ZB();J1e=s(t=>!QB(t),"isDark"),Fa=J1e});var eye,yb,sE=_(()=>{"use strict";Ol();Wc();eye=s((t,e,r)=>{let n=wi.parse(t),i=n[e],a=Ct.channel.clamp[e](i+r);return i!==a&&(n[e]=a),wi.stringify(n)},"adjustChannel"),yb=eye});var tye,ht,eF=_(()=>{"use strict";sE();tye=s((t,e)=>yb(t,"l",e),"lighten"),ht=tye});var rye,mt,tF=_(()=>{"use strict";sE();rye=s((t,e)=>yb(t,"l",-e),"darken"),mt=rye});var nye,Ce,rF=_(()=>{"use strict";Wc();iE();nye=s((t,e)=>{let r=wi.parse(t),n={};for(let i in e)e[i]&&(n[i]=r[i]+e[i]);return gb(t,n)},"adjust"),Ce=nye});var iye,nF,iF=_(()=>{"use strict";Wc();aE();iye=s((t,e,r=50)=>{let{r:n,g:i,b:a,a:o}=wi.parse(t),{r:l,g:u,b:h,a:f}=wi.parse(e),d=r/100,p=d*2-1,m=o-f,y=((p*m===-1?p:(p+m)/(1+p*m))+1)/2,v=1-y,x=n*y+l*v,b=i*y+u*v,k=a*y+h*v,A=o*d+f*(1-d);return Fs(x,b,k,A)},"mix"),nF=iye});var aye,et,aF=_(()=>{"use strict";Wc();iF();aye=s((t,e=100)=>{let r=wi.parse(t);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,nF(r,t,e)},"invert"),et=aye});var sF=_(()=>{"use strict";aE();XB();JB();eF();tF();rF();aF()});var Ho=_(()=>{"use strict";sF()});var rh,nh,R1=_(()=>{"use strict";rh="#ffffff",nh="#f2f2f2"});var ui,X0=_(()=>{"use strict";Ho();ui=s((t,e)=>e?Ce(t,{s:-40,l:10}):Ce(t,{s:-40,l:-10}),"mkBorder")});var oE,lF,cF=_(()=>{"use strict";Ho();R1();X0();oE=class{static{s(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||Ce(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||Ce(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ui(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ui(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ui(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ui(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||et(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||et(this.tertiaryColor),this.lineColor=this.lineColor||et(this.background),this.arrowheadColor=this.arrowheadColor||et(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?mt(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||mt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||et(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||ht(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Ce(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Ce(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Ce(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Ce(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Ce(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Ce(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||Ce(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Ce(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Ce(this.primaryColor,{h:330}),this.darkMode)for(let r=0;r{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},lF=s(t=>{let e=new oE;return e.calculate(t),e},"getThemeVariables")});var lE,uF,hF=_(()=>{"use strict";Ho();X0();lE=class{static{s(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=ht(this.primaryColor,16),this.tertiaryColor=Ce(this.primaryColor,{h:-160}),this.primaryBorderColor=et(this.background),this.secondaryBorderColor=ui(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ui(this.tertiaryColor,this.darkMode),this.primaryTextColor=et(this.primaryColor),this.secondaryTextColor=et(this.secondaryColor),this.tertiaryTextColor=et(this.tertiaryColor),this.lineColor=et(this.background),this.textColor=et(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=ht(et("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=Fs(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=mt("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=mt(this.sectionBkgColor,10),this.taskBorderColor=Fs(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Fs(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){this.secondBkg=ht(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=ht(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=ht(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Ce(this.primaryColor,{h:64}),this.fillType3=Ce(this.secondaryColor,{h:64}),this.fillType4=Ce(this.primaryColor,{h:-64}),this.fillType5=Ce(this.secondaryColor,{h:-64}),this.fillType6=Ce(this.primaryColor,{h:128}),this.fillType7=Ce(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Ce(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Ce(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Ce(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Ce(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Ce(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Ce(this.primaryColor,{h:210}),this.cScale9=this.cScale9||Ce(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Ce(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Ce(this.primaryColor,{h:330});for(let e=0;e{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},uF=s(t=>{let e=new lE;return e.calculate(t),e},"getThemeVariables")});var cE,j0,vb=_(()=>{"use strict";Ho();X0();R1();cE=class{static{s(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=Ce(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=Ce(this.primaryColor,{h:-160}),this.primaryBorderColor=ui(this.primaryColor,this.darkMode),this.secondaryBorderColor=ui(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ui(this.tertiaryColor,this.darkMode),this.primaryTextColor=et(this.primaryColor),this.secondaryTextColor=et(this.secondaryColor),this.tertiaryTextColor=et(this.tertiaryColor),this.lineColor=et(this.background),this.textColor=et(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=Fs(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Ce(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Ce(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Ce(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Ce(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Ce(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Ce(this.primaryColor,{h:210}),this.cScale9=this.cScale9||Ce(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Ce(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Ce(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||mt(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||mt(this.tertiaryColor,40);for(let e=0;e{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},j0=s(t=>{let e=new cE;return e.calculate(t),e},"getThemeVariables")});var uE,fF,dF=_(()=>{"use strict";Ho();R1();X0();uE=class{static{s(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=ht("#cde498",10),this.primaryBorderColor=ui(this.primaryColor,this.darkMode),this.secondaryBorderColor=ui(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ui(this.tertiaryColor,this.darkMode),this.primaryTextColor=et(this.primaryColor),this.secondaryTextColor=et(this.secondaryColor),this.tertiaryTextColor=et(this.primaryColor),this.lineColor=et(this.background),this.textColor=et(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.actorBorder=mt(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Ce(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Ce(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Ce(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Ce(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Ce(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Ce(this.primaryColor,{h:210}),this.cScale9=this.cScale9||Ce(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Ce(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Ce(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||mt(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||mt(this.tertiaryColor,40);for(let e=0;e{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},fF=s(t=>{let e=new uE;return e.calculate(t),e},"getThemeVariables")});var hE,pF,mF=_(()=>{"use strict";Ho();X0();R1();hE=class{static{s(this,"Theme")}constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=ht(this.contrast,55),this.background="#ffffff",this.tertiaryColor=Ce(this.primaryColor,{h:-160}),this.primaryBorderColor=ui(this.primaryColor,this.darkMode),this.secondaryBorderColor=ui(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ui(this.tertiaryColor,this.darkMode),this.primaryTextColor=et(this.primaryColor),this.secondaryTextColor=et(this.secondaryColor),this.tertiaryTextColor=et(this.tertiaryColor),this.lineColor=et(this.background),this.textColor=et(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.secondBkg=ht(this.contrast,55),this.border2=this.contrast,this.actorBorder=ht(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let e=0;e{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},pF=s(t=>{let e=new hE;return e.calculate(t),e},"getThemeVariables")});var po,xb=_(()=>{"use strict";cF();hF();vb();dF();mF();po={base:{getThemeVariables:lF},dark:{getThemeVariables:uF},default:{getThemeVariables:j0},forest:{getThemeVariables:fF},neutral:{getThemeVariables:pF}}});var Hc,gF=_(()=>{"use strict";Hc={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1}});var yF,vF,xF,dr,Pl=_(()=>{"use strict";xb();gF();yF={...Hc,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"SIMPLE"},themeCSS:void 0,themeVariables:po.default.getThemeVariables(),sequence:{...Hc.sequence,messageFont:s(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:s(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:s(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},gantt:{...Hc.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Hc.c4,useWidth:void 0,personFont:s(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),external_personFont:s(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:s(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:s(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:s(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:s(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:s(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:s(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:s(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:s(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:s(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:s(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:s(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:s(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:s(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:s(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:s(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:s(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:s(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:s(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:s(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:s(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...Hc.pie,useWidth:984},xyChart:{...Hc.xyChart,useWidth:void 0},requirement:{...Hc.requirement,useWidth:void 0},packet:{...Hc.packet}},vF=s((t,e="")=>Object.keys(t).reduce((r,n)=>Array.isArray(t[n])?r:typeof t[n]=="object"&&t[n]!==null?[...r,e+n,...vF(t[n],"")]:[...r,e+n],[]),"keyify"),xF=new Set(vF(yF,"")),dr=yF});var K0,sye,fE=_(()=>{"use strict";Pl();it();K0=s(t=>{if(V.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>K0(e));return}for(let e of Object.keys(t)){if(V.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!xF.has(e)||t[e]==null){V.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){V.debug("sanitizing object",e),K0(t[e]);continue}let r=["themeCSS","fontFamily","altFontFamily"];for(let n of r)e.includes(n)&&(V.debug("sanitizing css option",e),t[e]=sye(t[e]))}if(t.themeVariables)for(let e of Object.keys(t.themeVariables)){let r=t.themeVariables[e];r?.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}V.debug("After sanitization",t)}},"sanitizeDirective"),sye=s(t=>{let e=0,r=0;for(let n of t){if(e{"use strict";Y0();it();xb();Pl();fE();ih=Object.freeze(dr),as=An({},ih),Q0=[],M1=An({},ih),bb=s((t,e)=>{let r=An({},t),n={};for(let i of e)EF(i),n=An(n,i);if(r=An(r,n),n.theme&&n.theme in po){let i=An({},kF),a=An(i.themeVariables||{},n.themeVariables);r.theme&&r.theme in po&&(r.themeVariables=po[r.theme].getThemeVariables(a))}return M1=r,SF(M1),M1},"updateCurrentConfig"),dE=s(t=>(as=An({},ih),as=An(as,t),t.theme&&po[t.theme]&&(as.themeVariables=po[t.theme].getThemeVariables(t.themeVariables)),bb(as,Q0),as),"setSiteConfig"),wF=s(t=>{kF=An({},t)},"saveConfigFromInitialize"),TF=s(t=>(as=An(as,t),bb(as,Q0),as),"updateSiteConfig"),pE=s(()=>An({},as),"getSiteConfig"),kb=s(t=>(SF(t),An(M1,t),_r()),"setConfig"),_r=s(()=>An({},M1),"getConfig"),EF=s(t=>{t&&(["secure",...as.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(V.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&EF(t[e])}))},"sanitize"),CF=s(t=>{K0(t),t.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables={...t.themeVariables,fontFamily:t.fontFamily}),Q0.push(t),bb(as,Q0)},"addDirective"),I1=s((t=as)=>{Q0=[],bb(t,Q0)},"reset"),oye={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},bF={},lye=s(t=>{bF[t]||(V.warn(oye[t]),bF[t]=!0)},"issueWarning"),SF=s(t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&lye("LAZY_LOAD_DEPRECATED")},"checkConfig")});var yE=is((mE,gE)=>{"use strict";(function(t,e){typeof mE=="object"&&typeof gE<"u"?gE.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self,t.DOMPurify=e())})(mE,function(){"use strict";let{entries:t,setPrototypeOf:e,isFrozen:r,getPrototypeOf:n,getOwnPropertyDescriptor:i}=Object,{freeze:a,seal:o,create:l}=Object,{apply:u,construct:h}=typeof Reflect<"u"&&Reflect;a||(a=s(function(Se){return Se},"freeze")),o||(o=s(function(Se){return Se},"seal")),u||(u=s(function(Se,Ue,Oe){return Se.apply(Ue,Oe)},"apply")),h||(h=s(function(Se,Ue){return new Se(...Ue)},"construct"));let f=T(Array.prototype.forEach),d=T(Array.prototype.pop),p=T(Array.prototype.push),m=T(String.prototype.toLowerCase),g=T(String.prototype.toString),y=T(String.prototype.match),v=T(String.prototype.replace),x=T(String.prototype.indexOf),b=T(String.prototype.trim),k=T(Object.prototype.hasOwnProperty),A=T(RegExp.prototype.test),w=C(TypeError);function T(Pe){return function(Se){for(var Ue=arguments.length,Oe=new Array(Ue>1?Ue-1:0),_e=1;_e2&&arguments[2]!==void 0?arguments[2]:m;e&&e(Pe,null);let Oe=Se.length;for(;Oe--;){let _e=Se[Oe];if(typeof _e=="string"){let he=Ue(_e);he!==_e&&(r(Se)||(Se[Oe]=he),_e=he)}Pe[_e]=!0}return Pe}s(E,"addToSet");function S(Pe){for(let Se=0;Se/gm),ce=o(/\${[\w\W]*}/gm),Z=o(/^data-[\-\w.\u00B7-\uFFFF]/),fe=o(/^aria-[\-\w]+$/),ne=o(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),H=o(/^(?:\w+script|data):/i),Q=o(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),K=o(/^html$/i),re=o(/^[a-z][.\w]*(-[.\w]+)+$/i);var ie=Object.freeze({__proto__:null,MUSTACHE_EXPR:ee,ERB_EXPR:te,TMPLIT_EXPR:ce,DATA_ATTR:Z,ARIA_ATTR:fe,IS_ALLOWED_URI:ne,IS_SCRIPT_OR_DATA:H,ATTR_WHITESPACE:Q,DOCTYPE_NAME:K,CUSTOM_ELEMENT:re});let ye={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},j=s(function(){return typeof window>"u"?null:window},"getGlobal"),De=s(function(Se,Ue){if(typeof Se!="object"||typeof Se.createPolicy!="function")return null;let Oe=null,_e="data-tt-policy-suffix";Ue&&Ue.hasAttribute(_e)&&(Oe=Ue.getAttribute(_e));let he="dompurify"+(Oe?"#"+Oe:"");try{return Se.createPolicy(he,{createHTML(q){return q},createScriptURL(q){return q}})}catch{return console.warn("TrustedTypes policy "+he+" could not be created."),null}},"_createTrustedTypesPolicy");function oe(){let Pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:j(),Se=s(St=>oe(St),"DOMPurify");if(Se.version="3.1.6",Se.removed=[],!Pe||!Pe.document||Pe.document.nodeType!==ye.document)return Se.isSupported=!1,Se;let{document:Ue}=Pe,Oe=Ue,_e=Oe.currentScript,{DocumentFragment:he,HTMLTemplateElement:q,Node:se,Element:ue,NodeFilter:X,NamedNodeMap:ae=Pe.NamedNodeMap||Pe.MozNamedAttrMap,HTMLFormElement:pe,DOMParser:de,trustedTypes:Ie}=Pe,Ne=ue.prototype,Be=D(Ne,"cloneNode"),ze=D(Ne,"remove"),qe=D(Ne,"nextSibling"),Fe=D(Ne,"childNodes"),we=D(Ne,"parentNode");if(typeof q=="function"){let St=Ue.createElement("template");St.content&&St.content.ownerDocument&&(Ue=St.content.ownerDocument)}let Je,We="",{implementation:or,createNodeIterator:Cr,createDocumentFragment:Ut,getElementsByTagName:ar}=Ue,{importNode:ut}=Oe,Rt={};Se.isSupported=typeof t=="function"&&typeof we=="function"&&or&&or.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:Qe,ERB_EXPR:Dt,TMPLIT_EXPR:qt,DATA_ATTR:yt,ARIA_ATTR:Et,IS_SCRIPT_OR_DATA:pt,ATTR_WHITESPACE:Wt,CUSTOM_ELEMENT:ot}=ie,{IS_ALLOWED_URI:fr}=ie,vt=null,Bt=E({},[...L,...P,...M,...I,...z]),Sr=null,zi=E({},[...N,...U,...$,...W]),rr=Object.seal(l(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Vn=null,Tn=null,Ki=!0,ci=!0,Pa=!1,En=!0,ti=!1,co=!0,uo=!1,Rl=!1,ts=!1,at=!1,xt=!1,Ft=!1,Ke=!0,Zt=!1,me="user-content-",Fc=!0,xe=!1,xi={},zc=null,g1=E({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ib=null,y1=E({},["audio","video","img","source","image","track"]),v1=null,ri=E({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ho="http://www.w3.org/1998/Math/MathML",Zu="http://www.w3.org/2000/svg",Ps="http://www.w3.org/1999/xhtml",Ju=Ps,ab=!1,x1=null,Qi=E({},[ho,Zu,Ps],g),$c=null,Gc=["application/xhtml+xml","text/html"],rs="text/html",bi=null,Ml=null,eh=Ue.createElement("form"),Af=s(function(Te){return Te instanceof RegExp||Te instanceof Function},"isRegexOrFunction"),Bs=s(function(){let Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ml&&Ml===Te)){if((!Te||typeof Te!="object")&&(Te={}),Te=R(Te),$c=Gc.indexOf(Te.PARSER_MEDIA_TYPE)===-1?rs:Te.PARSER_MEDIA_TYPE,bi=$c==="application/xhtml+xml"?g:m,vt=k(Te,"ALLOWED_TAGS")?E({},Te.ALLOWED_TAGS,bi):Bt,Sr=k(Te,"ALLOWED_ATTR")?E({},Te.ALLOWED_ATTR,bi):zi,x1=k(Te,"ALLOWED_NAMESPACES")?E({},Te.ALLOWED_NAMESPACES,g):Qi,v1=k(Te,"ADD_URI_SAFE_ATTR")?E(R(ri),Te.ADD_URI_SAFE_ATTR,bi):ri,ib=k(Te,"ADD_DATA_URI_TAGS")?E(R(y1),Te.ADD_DATA_URI_TAGS,bi):y1,zc=k(Te,"FORBID_CONTENTS")?E({},Te.FORBID_CONTENTS,bi):g1,Vn=k(Te,"FORBID_TAGS")?E({},Te.FORBID_TAGS,bi):{},Tn=k(Te,"FORBID_ATTR")?E({},Te.FORBID_ATTR,bi):{},xi=k(Te,"USE_PROFILES")?Te.USE_PROFILES:!1,Ki=Te.ALLOW_ARIA_ATTR!==!1,ci=Te.ALLOW_DATA_ATTR!==!1,Pa=Te.ALLOW_UNKNOWN_PROTOCOLS||!1,En=Te.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ti=Te.SAFE_FOR_TEMPLATES||!1,co=Te.SAFE_FOR_XML!==!1,uo=Te.WHOLE_DOCUMENT||!1,at=Te.RETURN_DOM||!1,xt=Te.RETURN_DOM_FRAGMENT||!1,Ft=Te.RETURN_TRUSTED_TYPE||!1,ts=Te.FORCE_BODY||!1,Ke=Te.SANITIZE_DOM!==!1,Zt=Te.SANITIZE_NAMED_PROPS||!1,Fc=Te.KEEP_CONTENT!==!1,xe=Te.IN_PLACE||!1,fr=Te.ALLOWED_URI_REGEXP||ne,Ju=Te.NAMESPACE||Ps,rr=Te.CUSTOM_ELEMENT_HANDLING||{},Te.CUSTOM_ELEMENT_HANDLING&&Af(Te.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(rr.tagNameCheck=Te.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Te.CUSTOM_ELEMENT_HANDLING&&Af(Te.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(rr.attributeNameCheck=Te.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Te.CUSTOM_ELEMENT_HANDLING&&typeof Te.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(rr.allowCustomizedBuiltInElements=Te.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ti&&(ci=!1),xt&&(at=!0),xi&&(vt=E({},z),Sr=[],xi.html===!0&&(E(vt,L),E(Sr,N)),xi.svg===!0&&(E(vt,P),E(Sr,U),E(Sr,W)),xi.svgFilters===!0&&(E(vt,M),E(Sr,U),E(Sr,W)),xi.mathMl===!0&&(E(vt,I),E(Sr,$),E(Sr,W))),Te.ADD_TAGS&&(vt===Bt&&(vt=R(vt)),E(vt,Te.ADD_TAGS,bi)),Te.ADD_ATTR&&(Sr===zi&&(Sr=R(Sr)),E(Sr,Te.ADD_ATTR,bi)),Te.ADD_URI_SAFE_ATTR&&E(v1,Te.ADD_URI_SAFE_ATTR,bi),Te.FORBID_CONTENTS&&(zc===g1&&(zc=R(zc)),E(zc,Te.FORBID_CONTENTS,bi)),Fc&&(vt["#text"]=!0),uo&&E(vt,["html","head","body"]),vt.table&&(E(vt,["tbody"]),delete Vn.tbody),Te.TRUSTED_TYPES_POLICY){if(typeof Te.TRUSTED_TYPES_POLICY.createHTML!="function")throw w('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Te.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw w('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Je=Te.TRUSTED_TYPES_POLICY,We=Je.createHTML("")}else Je===void 0&&(Je=De(Ie,_e)),Je!==null&&typeof We=="string"&&(We=Je.createHTML(""));a&&a(Te),Ml=Te}},"_parseConfig"),b1=E({},["mi","mo","mn","ms","mtext"]),Lf=E({},["foreignobject","annotation-xml"]),k1=E({},["title","style","font","a","script"]),xa=E({},[...P,...M,...F]),vB=E({},[...I,...O]),O1e=s(function(Te){let Ze=we(Te);(!Ze||!Ze.tagName)&&(Ze={namespaceURI:Ju,tagName:"template"});let bt=m(Te.tagName),fn=m(Ze.tagName);return x1[Te.namespaceURI]?Te.namespaceURI===Zu?Ze.namespaceURI===Ps?bt==="svg":Ze.namespaceURI===ho?bt==="svg"&&(fn==="annotation-xml"||b1[fn]):!!xa[bt]:Te.namespaceURI===ho?Ze.namespaceURI===Ps?bt==="math":Ze.namespaceURI===Zu?bt==="math"&&Lf[fn]:!!vB[bt]:Te.namespaceURI===Ps?Ze.namespaceURI===Zu&&!Lf[fn]||Ze.namespaceURI===ho&&!b1[fn]?!1:!vB[bt]&&(k1[bt]||!xa[bt]):!!($c==="application/xhtml+xml"&&x1[Te.namespaceURI]):!1},"_checkValidNamespace"),Il=s(function(Te){p(Se.removed,{element:Te});try{we(Te).removeChild(Te)}catch{ze(Te)}},"_forceRemove"),sb=s(function(Te,Ze){try{p(Se.removed,{attribute:Ze.getAttributeNode(Te),from:Ze})}catch{p(Se.removed,{attribute:null,from:Ze})}if(Ze.removeAttribute(Te),Te==="is"&&!Sr[Te])if(at||xt)try{Il(Ze)}catch{}else try{Ze.setAttribute(Te,"")}catch{}},"_removeAttribute"),xB=s(function(Te){let Ze=null,bt=null;if(ts)Te=" "+Te;else{let Zi=y(Te,/^[\r\n\t ]+/);bt=Zi&&Zi[0]}$c==="application/xhtml+xml"&&Ju===Ps&&(Te=''+Te+"");let fn=Je?Je.createHTML(Te):Te;if(Ju===Ps)try{Ze=new de().parseFromString(fn,$c)}catch{}if(!Ze||!Ze.documentElement){Ze=or.createDocument(Ju,"template",null);try{Ze.documentElement.innerHTML=ab?We:fn}catch{}}let ba=Ze.body||Ze.documentElement;return Te&&bt&&ba.insertBefore(Ue.createTextNode(bt),ba.childNodes[0]||null),Ju===Ps?ar.call(Ze,uo?"html":"body")[0]:uo?Ze.documentElement:ba},"_initDocument"),bB=s(function(Te){return Cr.call(Te.ownerDocument||Te,Te,X.SHOW_ELEMENT|X.SHOW_COMMENT|X.SHOW_TEXT|X.SHOW_PROCESSING_INSTRUCTION|X.SHOW_CDATA_SECTION,null)},"_createNodeIterator"),kB=s(function(Te){return Te instanceof pe&&(typeof Te.nodeName!="string"||typeof Te.textContent!="string"||typeof Te.removeChild!="function"||!(Te.attributes instanceof ae)||typeof Te.removeAttribute!="function"||typeof Te.setAttribute!="function"||typeof Te.namespaceURI!="string"||typeof Te.insertBefore!="function"||typeof Te.hasChildNodes!="function")},"_isClobbered"),wB=s(function(Te){return typeof se=="function"&&Te instanceof se},"_isNode"),Vc=s(function(Te,Ze,bt){Rt[Te]&&f(Rt[Te],fn=>{fn.call(Se,Ze,bt,Ml)})},"_executeHook"),TB=s(function(Te){let Ze=null;if(Vc("beforeSanitizeElements",Te,null),kB(Te))return Il(Te),!0;let bt=bi(Te.nodeName);if(Vc("uponSanitizeElement",Te,{tagName:bt,allowedTags:vt}),Te.hasChildNodes()&&!wB(Te.firstElementChild)&&A(/<[/\w]/g,Te.innerHTML)&&A(/<[/\w]/g,Te.textContent)||Te.nodeType===ye.progressingInstruction||co&&Te.nodeType===ye.comment&&A(/<[/\w]/g,Te.data))return Il(Te),!0;if(!vt[bt]||Vn[bt]){if(!Vn[bt]&&CB(bt)&&(rr.tagNameCheck instanceof RegExp&&A(rr.tagNameCheck,bt)||rr.tagNameCheck instanceof Function&&rr.tagNameCheck(bt)))return!1;if(Fc&&!zc[bt]){let fn=we(Te)||Te.parentNode,ba=Fe(Te)||Te.childNodes;if(ba&&fn){let Zi=ba.length;for(let ns=Zi-1;ns>=0;--ns){let Nl=Be(ba[ns],!0);Nl.__removalCount=(Te.__removalCount||0)+1,fn.insertBefore(Nl,qe(Te))}}}return Il(Te),!0}return Te instanceof ue&&!O1e(Te)||(bt==="noscript"||bt==="noembed"||bt==="noframes")&&A(/<\/no(script|embed|frames)/i,Te.innerHTML)?(Il(Te),!0):(ti&&Te.nodeType===ye.text&&(Ze=Te.textContent,f([Qe,Dt,qt],fn=>{Ze=v(Ze,fn," ")}),Te.textContent!==Ze&&(p(Se.removed,{element:Te.cloneNode()}),Te.textContent=Ze)),Vc("afterSanitizeElements",Te,null),!1)},"_sanitizeElements"),EB=s(function(Te,Ze,bt){if(Ke&&(Ze==="id"||Ze==="name")&&(bt in Ue||bt in eh))return!1;if(!(ci&&!Tn[Ze]&&A(yt,Ze))){if(!(Ki&&A(Et,Ze))){if(!Sr[Ze]||Tn[Ze]){if(!(CB(Te)&&(rr.tagNameCheck instanceof RegExp&&A(rr.tagNameCheck,Te)||rr.tagNameCheck instanceof Function&&rr.tagNameCheck(Te))&&(rr.attributeNameCheck instanceof RegExp&&A(rr.attributeNameCheck,Ze)||rr.attributeNameCheck instanceof Function&&rr.attributeNameCheck(Ze))||Ze==="is"&&rr.allowCustomizedBuiltInElements&&(rr.tagNameCheck instanceof RegExp&&A(rr.tagNameCheck,bt)||rr.tagNameCheck instanceof Function&&rr.tagNameCheck(bt))))return!1}else if(!v1[Ze]){if(!A(fr,v(bt,Wt,""))){if(!((Ze==="src"||Ze==="xlink:href"||Ze==="href")&&Te!=="script"&&x(bt,"data:")===0&&ib[Te])){if(!(Pa&&!A(pt,v(bt,Wt,"")))){if(bt)return!1}}}}}}return!0},"_isValidAttribute"),CB=s(function(Te){return Te!=="annotation-xml"&&y(Te,ot)},"_isBasicCustomElement"),SB=s(function(Te){Vc("beforeSanitizeAttributes",Te,null);let{attributes:Ze}=Te;if(!Ze)return;let bt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Sr},fn=Ze.length;for(;fn--;){let ba=Ze[fn],{name:Zi,namespaceURI:ns,value:Nl}=ba,w1=bi(Zi),Ba=Zi==="value"?Nl:b(Nl);if(bt.attrName=w1,bt.attrValue=Ba,bt.keepAttr=!0,bt.forceKeepAttr=void 0,Vc("uponSanitizeAttribute",Te,bt),Ba=bt.attrValue,co&&A(/((--!?|])>)|<\/(style|title)/i,Ba)){sb(Zi,Te);continue}if(bt.forceKeepAttr||(sb(Zi,Te),!bt.keepAttr))continue;if(!En&&A(/\/>/i,Ba)){sb(Zi,Te);continue}ti&&f([Qe,Dt,qt],AB=>{Ba=v(Ba,AB," ")});let _B=bi(Te.nodeName);if(EB(_B,w1,Ba)){if(Zt&&(w1==="id"||w1==="name")&&(sb(Zi,Te),Ba=me+Ba),Je&&typeof Ie=="object"&&typeof Ie.getAttributeType=="function"&&!ns)switch(Ie.getAttributeType(_B,w1)){case"TrustedHTML":{Ba=Je.createHTML(Ba);break}case"TrustedScriptURL":{Ba=Je.createScriptURL(Ba);break}}try{ns?Te.setAttributeNS(ns,Zi,Ba):Te.setAttribute(Zi,Ba),kB(Te)?Il(Te):d(Se.removed)}catch{}}}Vc("afterSanitizeAttributes",Te,null)},"_sanitizeAttributes"),P1e=s(function St(Te){let Ze=null,bt=bB(Te);for(Vc("beforeSanitizeShadowDOM",Te,null);Ze=bt.nextNode();)Vc("uponSanitizeShadowNode",Ze,null),!TB(Ze)&&(Ze.content instanceof he&&St(Ze.content),SB(Ze));Vc("afterSanitizeShadowDOM",Te,null)},"_sanitizeShadowDOM");return Se.sanitize=function(St){let Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ze=null,bt=null,fn=null,ba=null;if(ab=!St,ab&&(St=""),typeof St!="string"&&!wB(St))if(typeof St.toString=="function"){if(St=St.toString(),typeof St!="string")throw w("dirty is not a string, aborting")}else throw w("toString is not a function");if(!Se.isSupported)return St;if(Rl||Bs(Te),Se.removed=[],typeof St=="string"&&(xe=!1),xe){if(St.nodeName){let Nl=bi(St.nodeName);if(!vt[Nl]||Vn[Nl])throw w("root node is forbidden and cannot be sanitized in-place")}}else if(St instanceof se)Ze=xB(""),bt=Ze.ownerDocument.importNode(St,!0),bt.nodeType===ye.element&&bt.nodeName==="BODY"||bt.nodeName==="HTML"?Ze=bt:Ze.appendChild(bt);else{if(!at&&!ti&&!uo&&St.indexOf("<")===-1)return Je&&Ft?Je.createHTML(St):St;if(Ze=xB(St),!Ze)return at?null:Ft?We:""}Ze&&ts&&Il(Ze.firstChild);let Zi=bB(xe?St:Ze);for(;fn=Zi.nextNode();)TB(fn)||(fn.content instanceof he&&P1e(fn.content),SB(fn));if(xe)return St;if(at){if(xt)for(ba=Ut.call(Ze.ownerDocument);Ze.firstChild;)ba.appendChild(Ze.firstChild);else ba=Ze;return(Sr.shadowroot||Sr.shadowrootmode)&&(ba=ut.call(Oe,ba,!0)),ba}let ns=uo?Ze.outerHTML:Ze.innerHTML;return uo&&vt["!doctype"]&&Ze.ownerDocument&&Ze.ownerDocument.doctype&&Ze.ownerDocument.doctype.name&&A(K,Ze.ownerDocument.doctype.name)&&(ns="
`+ns),ti&&f([Qe,Dt,qt],Nl=>{ns=v(ns,Nl," ")}),Je&&Ft?Je.createHTML(ns):ns},Se.setConfig=function(){let St=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Bs(St),Rl=!0},Se.clearConfig=function(){Ml=null,Rl=!1},Se.isValidAttribute=function(St,Te,Ze){Ml||Bs({});let bt=bi(St),fn=bi(Te);return EB(bt,fn,Ze)},Se.addHook=function(St,Te){typeof Te=="function"&&(Rt[St]=Rt[St]||[],p(Rt[St],Te))},Se.removeHook=function(St){if(Rt[St])return d(Rt[St])},Se.removeHooks=function(St){Rt[St]&&(Rt[St]=[])},Se.removeAllHooks=function(){Rt={}},Se}s(oe,"createDOMPurify");var Re=oe();return Re})});var Jz={};ur(Jz,{default:()=>r2e});function mye(t){return String(t).replace(pye,e=>dye[e])}function xye(t){if(t.default)return t.default;var e=t.type,r=Array.isArray(e)?e[0]:e;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}function Sye(t){for(var e=0;e=i[0]&&t<=i[1])return r.name}return null}function az(t){for(var e=0;e=Nb[e]&&t<=Nb[e+1])return!0;return!1}function Bye(t,e){zl[t]=e}function UE(t,e,r){if(!zl[e])throw new Error("Font metrics not found for font: "+e+".");var n=t.charCodeAt(0),i=zl[e][n];if(!i&&t[0]in AF&&(n=AF[t[0]].charCodeAt(0),i=zl[e][n]),!i&&r==="text"&&az(n)&&(i=zl[e][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}function Fye(t){var e;if(t>=5?e=0:t>=3?e=1:e=2,!vE[e]){var r=vE[e]={cssEmPerMu:wb.quad[e]/18};for(var n in wb)wb.hasOwnProperty(n)&&(r[n]=wb[n][e])}return vE[e]}function RF(t){if(t instanceof ls)return t;throw new Error("Expected symbolNode but got "+String(t)+".")}function Vye(t){if(t instanceof Bf)return t;throw new Error("Expected span but got "+String(t)+".")}function B(t,e,r,n,i,a){dn[t][i]={font:e,group:r,replace:n},a&&n&&(dn[t][n]=dn[t][i])}function st(t){for(var{type:e,names:r,props:n,handler:i,htmlBuilder:a,mathmlBuilder:o}=t,l={type:e,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:n.allowedInMath===void 0?!0:n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:i},u=0;u0&&(a.push(Lb(o,e)),o=[]),a.push(n[l]));o.length>0&&a.push(Lb(o,e));var h;r?(h=Lb(Ti(r,e,!0)),h.classes=["tag"],a.push(h)):i&&a.push(i);var f=Qc(["katex-html"],a);if(f.setAttribute("aria-hidden","true"),h){var d=h.children[0];d.style.height=tt(f.height+f.depth),f.depth&&(d.style.verticalAlign=tt(-f.depth))}return f}function yz(t){return new Pf(t)}function PF(t,e,r,n,i){var a=cs(t,r),o;a.length===1&&a[0]instanceof os&&Mt.contains(["mrow","mtable"],a[0].type)?o=a[0]:o=new Xe.MathNode("mrow",a);var l=new Xe.MathNode("annotation",[new Xe.TextNode(e)]);l.setAttribute("encoding","application/x-tex");var u=new Xe.MathNode("semantics",[o,l]),h=new Xe.MathNode("math",[u]);h.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&h.setAttribute("display","block");var f=i?"katex":"katex-mathml";return Ae.makeSpan([f],[h])}function Jt(t,e){if(!t||t.type!==e)throw new Error("Expected node of type "+e+", but got "+(t?"node of type "+t.type:String(t)));return t}function YE(t){var e=Wb(t);if(!e)throw new Error("Expected node of symbol group type, but got "+(t?"node of type "+t.type:String(t)));return e}function Wb(t){return t&&(t.type==="atom"||qye.hasOwnProperty(t.type))?t:null}function kz(t,e){var r=Ti(t.body,e,!0);return bve([t.mclass],r,e)}function wz(t,e){var r,n=cs(t.body,e);return t.mclass==="minner"?r=new Xe.MathNode("mpadded",n):t.mclass==="mord"?t.isCharacterBox?(r=n[0],r.type="mi"):r=new Xe.MathNode("mi",n):(t.isCharacterBox?(r=n[0],r.type="mo"):r=new Xe.MathNode("mo",n),t.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):t.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):t.mclass==="mopen"||t.mclass==="mclose"?(r.attributes.lspace="0em",r.attributes.rspace="0em"):t.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}function Tve(t,e,r){var n=kve[t];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var i=r.callFunction("\\\\cdleft",[e[0]],[]),a={type:"atom",text:n,mode:"math",family:"rel"},o=r.callFunction("\\Big",[a],[]),l=r.callFunction("\\\\cdright",[e[1]],[]),u={type:"ordgroup",mode:"math",body:[i,o,l]};return r.callFunction("\\\\cdparent",[u],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var h={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[h],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Eve(t){var e=[];for(t.gullet.beginGroup(),t.gullet.macros.set("\\cr","\\\\\\relax"),t.gullet.beginGroup();;){e.push(t.parseExpression(!1,"\\\\")),t.gullet.endGroup(),t.gullet.beginGroup();var r=t.fetch().text;if(r==="&"||r==="\\\\")t.consume();else if(r==="\\end"){e[e.length-1].length===0&&e.pop();break}else throw new je("Expected \\\\ or \\cr or \\end",t.nextToken)}for(var n=[],i=[n],a=0;a-1))if("<>AV".indexOf(h)>-1)for(var d=0;d<2;d++){for(var p=!0,m=u+1;mAV=|." after @',o[u]);var g=Tve(h,f,t),y={type:"styling",body:[g],mode:"math",style:"display"};n.push(y),l=BF()}a%2===0?n.push(l):n.shift(),n=[],i.push(n)}t.gullet.endGroup(),t.gullet.endGroup();var v=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:v,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}function Yb(t,e){var r=Wb(t);if(r&&Mt.contains(Bve,r.text))return r;throw r?new je("Invalid delimiter '"+r.text+"' after '"+e.funcName+"'",t):new je("Invalid delimiter type '"+t.type+"'",t)}function $F(t){if(!t.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}function Gl(t){for(var{type:e,names:r,props:n,handler:i,htmlBuilder:a,mathmlBuilder:o}=t,l={type:e,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},u=0;u1||!f)&&y.pop(),x.length{"use strict";$s=class t{static{s(this,"SourceLocation")}constructor(e,r,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=r,this.end=n}static range(e,r){return r?!e||!e.loc||!r.loc||e.loc.lexer!==r.loc.lexer?null:new t(e.loc.lexer,e.loc.start,r.loc.end):e&&e.loc}},go=class t{static{s(this,"Token")}constructor(e,r){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=r}range(e,r){return new t(r,$s.range(this,e))}},je=class t{static{s(this,"ParseError")}constructor(e,r){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var n="KaTeX parse error: "+e,i,a,o=r&&r.loc;if(o&&o.start<=o.end){var l=o.lexer.input;i=o.start,a=o.end,i===l.length?n+=" at end of input: ":n+=" at position "+(i+1)+": ";var u=l.slice(i,a).replace(/[^]/g,"$&\u0332"),h;i>15?h="\u2026"+l.slice(i-15,i):h=l.slice(0,i);var f;a+15":">","<":"<",'"':""","'":"'"},pye=/[&><"']/g;s(mye,"escape");iz=s(function t(e){return e.type==="ordgroup"||e.type==="color"?e.body.length===1?t(e.body[0]):e:e.type==="font"?t(e.body):e},"getBaseElem"),gye=s(function(e){var r=iz(e);return r.type==="mathord"||r.type==="textord"||r.type==="atom"},"isCharacterBox"),yye=s(function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},"assert"),vye=s(function(e){var r=/^[\x00-\x20]*([^\\/#?]*?)(:|*58|*3a|&colon)/i.exec(e);return r?r[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(r[1])?null:r[1].toLowerCase():"_relative"},"protocolFromUrl"),Mt={contains:cye,deflt:uye,escape:mye,hyphenate:fye,getBaseElem:iz,isCharacterBox:gye,protocolFromUrl:vye},Ib={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:s(t=>"#"+t,"cliProcessor")},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:s((t,e)=>(e.push(t),e),"cliProcessor")},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:s(t=>Math.max(0,t),"processor"),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:s(t=>Math.max(0,t),"processor"),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:s(t=>Math.max(0,t),"processor"),cli:"-e, --max-expand ",cliProcessor:s(t=>t==="Infinity"?1/0:parseInt(t),"cliProcessor")},globalGroup:{type:"boolean",cli:!1}};s(xye,"getDefaultValue");F1=class{static{s(this,"Settings")}constructor(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{};for(var r in Ib)if(Ib.hasOwnProperty(r)){var n=Ib[r];this[r]=e[r]!==void 0?n.processor?n.processor(e[r]):e[r]:xye(n)}}reportNonstrict(e,r,n){var i=this.strict;if(typeof i=="function"&&(i=i(e,r,n)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new je("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+e+"]"),n);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+e+"]"))}}useStrictBehavior(e,r,n){var i=this.strict;if(typeof i=="function")try{i=i(e,r,n)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+e+"]")),!1)}isTrusted(e){if(e.url&&!e.protocol){var r=Mt.protocolFromUrl(e.url);if(r==null)return!1;e.protocol=r}var n=typeof this.trust=="function"?this.trust(e):this.trust;return!!n}},Bl=class{static{s(this,"Style")}constructor(e,r,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=r,this.cramped=n}sup(){return Fl[bye[this.id]]}sub(){return Fl[kye[this.id]]}fracNum(){return Fl[wye[this.id]]}fracDen(){return Fl[Tye[this.id]]}cramp(){return Fl[Eye[this.id]]}text(){return Fl[Cye[this.id]]}isTight(){return this.size>=2}},VE=0,Ob=1,ep=2,jc=3,z1=4,mo=5,tp=6,za=7,Fl=[new Bl(VE,0,!1),new Bl(Ob,0,!0),new Bl(ep,1,!1),new Bl(jc,1,!0),new Bl(z1,2,!1),new Bl(mo,2,!0),new Bl(tp,3,!1),new Bl(za,3,!0)],bye=[z1,mo,z1,mo,tp,za,tp,za],kye=[mo,mo,mo,mo,za,za,za,za],wye=[ep,jc,z1,mo,tp,za,tp,za],Tye=[jc,jc,mo,mo,za,za,za,za],Eye=[Ob,Ob,jc,jc,mo,mo,za,za],Cye=[VE,Ob,ep,jc,ep,jc,ep,jc],Nt={DISPLAY:Fl[VE],TEXT:Fl[ep],SCRIPT:Fl[z1],SCRIPTSCRIPT:Fl[tp]},DE=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];s(Sye,"scriptFromCodepoint");Nb=[];DE.forEach(t=>t.blocks.forEach(e=>Nb.push(...e)));s(az,"supportedCodepoint");J0=80,_ye=s(function(e,r){return"M95,"+(622+e+r)+`
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
c69,-144,104.5,-217.7,106.5,-221
l`+e/2.075+" -"+e+`
c5.3,-9.3,12,-14,20,-14
H400000v`+(40+e)+`H845.2724
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
M`+(834+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},"sqrtMain"),Aye=s(function(e,r){return"M263,"+(601+e+r)+`c0.7,0,18,39.7,52,119
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
c340,-704.7,510.7,-1060.3,512,-1067
l`+e/2.084+" -"+e+`
c4.7,-7.3,11,-11,19,-11
H40000v`+(40+e)+`H1012.3
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
M`+(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},"sqrtSize1"),Lye=s(function(e,r){return"M983 "+(10+e+r)+`
l`+e/3.13+" -"+e+`
c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+`
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
M`+(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},"sqrtSize2"),Dye=s(function(e,r){return"M424,"+(2398+e+r)+`
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
l`+e/4.223+" -"+e+`c4,-6.7,10,-10,18,-10 H400000
v`+(40+e)+`H1014.6
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+" "+r+`
h400000v`+(40+e)+"h-400000z"},"sqrtSize3"),Rye=s(function(e,r){return"M473,"+(2713+e+r)+`
c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+" -"+e+`
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
606zM`+(1001+e)+" "+r+"h400000v"+(40+e)+"H1017.7z"},"sqrtSize4"),Mye=s(function(e){var r=e/2;return"M400000 "+e+" H0 L"+r+" 0 l65 45 L145 "+(e-80)+" H400000z"},"phasePath"),Iye=s(function(e,r,n){var i=n-54-r-e;return"M702 "+(e+r)+"H400000"+(40+e)+`
H742v`+i+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
219 661 l218 661zM702 `+r+"H400000v"+(40+e)+"H742z"},"sqrtTall"),Nye=s(function(e,r,n){r=1e3*r;var i="";switch(e){case"sqrtMain":i=_ye(r,J0);break;case"sqrtSize1":i=Aye(r,J0);break;case"sqrtSize2":i=Lye(r,J0);break;case"sqrtSize3":i=Dye(r,J0);break;case"sqrtSize4":i=Rye(r,J0);break;case"sqrtTall":i=Iye(r,J0,n)}return i},"sqrtPath"),Oye=s(function(e,r){switch(e){case"\u239C":return"M291 0 H417 V"+r+" H291z M291 0 H417 V"+r+" H291z";case"\u2223":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z";case"\u2225":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z"+("M367 0 H410 V"+r+" H367z M367 0 H410 V"+r+" H367z");case"\u239F":return"M457 0 H583 V"+r+" H457z M457 0 H583 V"+r+" H457z";case"\u23A2":return"M319 0 H403 V"+r+" H319z M319 0 H403 V"+r+" H319z";case"\u23A5":return"M263 0 H347 V"+r+" H263z M263 0 H347 V"+r+" H263z";case"\u23AA":return"M384 0 H504 V"+r+" H384z M384 0 H504 V"+r+" H384z";case"\u23D0":return"M312 0 H355 V"+r+" H312z M312 0 H355 V"+r+" H312z";case"\u2016":return"M257 0 H300 V"+r+" H257z M257 0 H300 V"+r+" H257z"+("M478 0 H521 V"+r+" H478z M478 0 H521 V"+r+" H478z");default:return""}},"innerPath"),_F={doubleleftarrow:`M262 157
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
435 0h399565z`,leftgroupunder:`M400000 262
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Pye=s(function(e,r){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 h347 v-84
H403z M403 1759 V0 H319 V1759 v`+r+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v1759 H0 v84 H347z
M347 1759 V0 H263 V1759 v`+r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+" v585 h43z";case"doublevert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z
M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+r+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+r+` v1715 h263 v84 H319z
MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z
MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z
M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z
M347 1759 V0 h-84 V1759 v`+r+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
-36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+`
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}},"tallDelim"),Pf=class{static{s(this,"DocumentFragment")}constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return Mt.contains(this.classes,e)}toNode(){for(var e=document.createDocumentFragment(),r=0;rr.toText(),"toText");return this.children.map(e).join("")}},zl={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},wb={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},AF={\u00C5:"A",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00F0:"d",\u00FE:"o",\u0410:"A",\u0411:"B",\u0412:"B",\u0413:"F",\u0414:"A",\u0415:"E",\u0416:"K",\u0417:"3",\u0418:"N",\u0419:"N",\u041A:"K",\u041B:"N",\u041C:"M",\u041D:"H",\u041E:"O",\u041F:"N",\u0420:"P",\u0421:"C",\u0422:"T",\u0423:"y",\u0424:"O",\u0425:"X",\u0426:"U",\u0427:"h",\u0428:"W",\u0429:"W",\u042A:"B",\u042B:"X",\u042C:"B",\u042D:"3",\u042E:"X",\u042F:"R",\u0430:"a",\u0431:"b",\u0432:"a",\u0433:"r",\u0434:"y",\u0435:"e",\u0436:"m",\u0437:"e",\u0438:"n",\u0439:"n",\u043A:"n",\u043B:"n",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"n",\u0440:"p",\u0441:"c",\u0442:"o",\u0443:"y",\u0444:"b",\u0445:"x",\u0446:"n",\u0447:"n",\u0448:"w",\u0449:"w",\u044A:"a",\u044B:"m",\u044C:"a",\u044D:"e",\u044E:"m",\u044F:"r"};s(Bye,"setFontMetrics");s(UE,"getCharacterMetrics");vE={};s(Fye,"getGlobalMetrics");zye=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],LF=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],DF=s(function(e,r){return r.size<2?e:zye[e-1][r.size-1]},"sizeAtStyle"),Pb=class t{static{s(this,"Options")}constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||t.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=LF[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var r={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var n in e)e.hasOwnProperty(n)&&(r[n]=e[n]);return new t(r)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:DF(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:LF[e-1]})}havingBaseStyle(e){e=e||this.style.text();var r=DF(t.BASESIZE,e);return this.size===r&&this.textSize===t.BASESIZE&&this.style===e?this:this.extend({style:e,size:r})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==t.BASESIZE?["sizing","reset-size"+this.size,"size"+t.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=Fye(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}};Pb.BASESIZE=6;RE={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},$ye={ex:!0,em:!0,mu:!0},sz=s(function(e){return typeof e!="string"&&(e=e.unit),e in RE||e in $ye||e==="ex"},"validUnit"),Bn=s(function(e,r){var n;if(e.unit in RE)n=RE[e.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(e.unit==="mu")n=r.fontMetrics().cssEmPerMu;else{var i;if(r.style.isTight()?i=r.havingStyle(r.style.text()):i=r,e.unit==="ex")n=i.fontMetrics().xHeight;else if(e.unit==="em")n=i.fontMetrics().quad;else throw new je("Invalid unit: '"+e.unit+"'");i!==r&&(n*=i.sizeMultiplier/r.sizeMultiplier)}return Math.min(e.number*n,r.maxSize)},"calculateSize"),tt=s(function(e){return+e.toFixed(4)+"em"},"makeEm"),oh=s(function(e){return e.filter(r=>r).join(" ")},"createClass"),oz=s(function(e,r,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},r){r.style.isTight()&&this.classes.push("mtight");var i=r.getColor();i&&(this.style.color=i)}},"initNode"),lz=s(function(e){var r=document.createElement(e);r.className=oh(this.classes);for(var n in this.style)this.style.hasOwnProperty(n)&&(r.style[n]=this.style[n]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&r.setAttribute(i,this.attributes[i]);for(var a=0;a";for(var o=0;o",r},"toMarkup"),Bf=class{static{s(this,"Span")}constructor(e,r,n,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,oz.call(this,e,n,i),this.children=r||[]}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return Mt.contains(this.classes,e)}toNode(){return lz.call(this,"span")}toMarkup(){return cz.call(this,"span")}},$1=class{static{s(this,"Anchor")}constructor(e,r,n,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,oz.call(this,r,i),this.children=n||[],this.setAttribute("href",e)}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return Mt.contains(this.classes,e)}toNode(){return lz.call(this,"a")}toMarkup(){return cz.call(this,"a")}},ME=class{static{s(this,"Img")}constructor(e,r,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=r,this.src=e,this.classes=["mord"],this.style=n}hasClass(e){return Mt.contains(this.classes,e)}toNode(){var e=document.createElement("img");e.src=this.src,e.alt=this.alt,e.className="mord";for(var r in this.style)this.style.hasOwnProperty(r)&&(e.style[r]=this.style[r]);return e}toMarkup(){var e='",e}},Gye={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},ls=class{static{s(this,"SymbolNode")}constructor(e,r,n,i,a,o,l,u){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=r||0,this.depth=n||0,this.italic=i||0,this.skew=a||0,this.width=o||0,this.classes=l||[],this.style=u||{},this.maxFontSize=0;var h=Sye(this.text.charCodeAt(0));h&&this.classes.push(h+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=Gye[this.text])}hasClass(e){return Mt.contains(this.classes,e)}toNode(){var e=document.createTextNode(this.text),r=null;this.italic>0&&(r=document.createElement("span"),r.style.marginRight=tt(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=oh(this.classes));for(var n in this.style)this.style.hasOwnProperty(n)&&(r=r||document.createElement("span"),r.style[n]=this.style[n]);return r?(r.appendChild(e),r):e}toMarkup(){var e=!1,r="0&&(n+="margin-right:"+this.italic+"em;");for(var i in this.style)this.style.hasOwnProperty(i)&&(n+=Mt.hyphenate(i)+":"+this.style[i]+";");n&&(e=!0,r+=' style="'+Mt.escape(n)+'"');var a=Mt.escape(this.text);return e?(r+=">",r+=a,r+="",r):a}},Xo=class{static{s(this,"SvgNode")}constructor(e,r){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=r||{}}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"svg");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&r.setAttribute(n,this.attributes[n]);for(var i=0;i";for(var n=0;n",e}},$l=class{static{s(this,"PathNode")}constructor(e,r){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=r}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"path");return this.alternate?r.setAttribute("d",this.alternate):r.setAttribute("d",_F[this.pathName]),r}toMarkup(){return this.alternate?' ':' '}},G1=class{static{s(this,"LineNode")}constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"line");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&r.setAttribute(n,this.attributes[n]);return r}toMarkup(){var e=" ",e}};s(RF,"assertSymbolDomNode");s(Vye,"assertSpan");Uye={bin:1,close:1,inner:1,open:1,punct:1,rel:1},qye={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},dn={math:{},text:{}};s(B,"defineSymbol");G="math",Ye="text",Y="main",ge="ams",Ln="accent-token",lt="bin",$a="close",rp="inner",It="mathord",hi="op-token",Gs="open",Ub="punct",ve="rel",Jc="spacing",ke="textord";B(G,Y,ve,"\u2261","\\equiv",!0);B(G,Y,ve,"\u227A","\\prec",!0);B(G,Y,ve,"\u227B","\\succ",!0);B(G,Y,ve,"\u223C","\\sim",!0);B(G,Y,ve,"\u22A5","\\perp");B(G,Y,ve,"\u2AAF","\\preceq",!0);B(G,Y,ve,"\u2AB0","\\succeq",!0);B(G,Y,ve,"\u2243","\\simeq",!0);B(G,Y,ve,"\u2223","\\mid",!0);B(G,Y,ve,"\u226A","\\ll",!0);B(G,Y,ve,"\u226B","\\gg",!0);B(G,Y,ve,"\u224D","\\asymp",!0);B(G,Y,ve,"\u2225","\\parallel");B(G,Y,ve,"\u22C8","\\bowtie",!0);B(G,Y,ve,"\u2323","\\smile",!0);B(G,Y,ve,"\u2291","\\sqsubseteq",!0);B(G,Y,ve,"\u2292","\\sqsupseteq",!0);B(G,Y,ve,"\u2250","\\doteq",!0);B(G,Y,ve,"\u2322","\\frown",!0);B(G,Y,ve,"\u220B","\\ni",!0);B(G,Y,ve,"\u221D","\\propto",!0);B(G,Y,ve,"\u22A2","\\vdash",!0);B(G,Y,ve,"\u22A3","\\dashv",!0);B(G,Y,ve,"\u220B","\\owns");B(G,Y,Ub,".","\\ldotp");B(G,Y,Ub,"\u22C5","\\cdotp");B(G,Y,ke,"#","\\#");B(Ye,Y,ke,"#","\\#");B(G,Y,ke,"&","\\&");B(Ye,Y,ke,"&","\\&");B(G,Y,ke,"\u2135","\\aleph",!0);B(G,Y,ke,"\u2200","\\forall",!0);B(G,Y,ke,"\u210F","\\hbar",!0);B(G,Y,ke,"\u2203","\\exists",!0);B(G,Y,ke,"\u2207","\\nabla",!0);B(G,Y,ke,"\u266D","\\flat",!0);B(G,Y,ke,"\u2113","\\ell",!0);B(G,Y,ke,"\u266E","\\natural",!0);B(G,Y,ke,"\u2663","\\clubsuit",!0);B(G,Y,ke,"\u2118","\\wp",!0);B(G,Y,ke,"\u266F","\\sharp",!0);B(G,Y,ke,"\u2662","\\diamondsuit",!0);B(G,Y,ke,"\u211C","\\Re",!0);B(G,Y,ke,"\u2661","\\heartsuit",!0);B(G,Y,ke,"\u2111","\\Im",!0);B(G,Y,ke,"\u2660","\\spadesuit",!0);B(G,Y,ke,"\xA7","\\S",!0);B(Ye,Y,ke,"\xA7","\\S");B(G,Y,ke,"\xB6","\\P",!0);B(Ye,Y,ke,"\xB6","\\P");B(G,Y,ke,"\u2020","\\dag");B(Ye,Y,ke,"\u2020","\\dag");B(Ye,Y,ke,"\u2020","\\textdagger");B(G,Y,ke,"\u2021","\\ddag");B(Ye,Y,ke,"\u2021","\\ddag");B(Ye,Y,ke,"\u2021","\\textdaggerdbl");B(G,Y,$a,"\u23B1","\\rmoustache",!0);B(G,Y,Gs,"\u23B0","\\lmoustache",!0);B(G,Y,$a,"\u27EF","\\rgroup",!0);B(G,Y,Gs,"\u27EE","\\lgroup",!0);B(G,Y,lt,"\u2213","\\mp",!0);B(G,Y,lt,"\u2296","\\ominus",!0);B(G,Y,lt,"\u228E","\\uplus",!0);B(G,Y,lt,"\u2293","\\sqcap",!0);B(G,Y,lt,"\u2217","\\ast");B(G,Y,lt,"\u2294","\\sqcup",!0);B(G,Y,lt,"\u25EF","\\bigcirc",!0);B(G,Y,lt,"\u2219","\\bullet",!0);B(G,Y,lt,"\u2021","\\ddagger");B(G,Y,lt,"\u2240","\\wr",!0);B(G,Y,lt,"\u2A3F","\\amalg");B(G,Y,lt,"&","\\And");B(G,Y,ve,"\u27F5","\\longleftarrow",!0);B(G,Y,ve,"\u21D0","\\Leftarrow",!0);B(G,Y,ve,"\u27F8","\\Longleftarrow",!0);B(G,Y,ve,"\u27F6","\\longrightarrow",!0);B(G,Y,ve,"\u21D2","\\Rightarrow",!0);B(G,Y,ve,"\u27F9","\\Longrightarrow",!0);B(G,Y,ve,"\u2194","\\leftrightarrow",!0);B(G,Y,ve,"\u27F7","\\longleftrightarrow",!0);B(G,Y,ve,"\u21D4","\\Leftrightarrow",!0);B(G,Y,ve,"\u27FA","\\Longleftrightarrow",!0);B(G,Y,ve,"\u21A6","\\mapsto",!0);B(G,Y,ve,"\u27FC","\\longmapsto",!0);B(G,Y,ve,"\u2197","\\nearrow",!0);B(G,Y,ve,"\u21A9","\\hookleftarrow",!0);B(G,Y,ve,"\u21AA","\\hookrightarrow",!0);B(G,Y,ve,"\u2198","\\searrow",!0);B(G,Y,ve,"\u21BC","\\leftharpoonup",!0);B(G,Y,ve,"\u21C0","\\rightharpoonup",!0);B(G,Y,ve,"\u2199","\\swarrow",!0);B(G,Y,ve,"\u21BD","\\leftharpoondown",!0);B(G,Y,ve,"\u21C1","\\rightharpoondown",!0);B(G,Y,ve,"\u2196","\\nwarrow",!0);B(G,Y,ve,"\u21CC","\\rightleftharpoons",!0);B(G,ge,ve,"\u226E","\\nless",!0);B(G,ge,ve,"\uE010","\\@nleqslant");B(G,ge,ve,"\uE011","\\@nleqq");B(G,ge,ve,"\u2A87","\\lneq",!0);B(G,ge,ve,"\u2268","\\lneqq",!0);B(G,ge,ve,"\uE00C","\\@lvertneqq");B(G,ge,ve,"\u22E6","\\lnsim",!0);B(G,ge,ve,"\u2A89","\\lnapprox",!0);B(G,ge,ve,"\u2280","\\nprec",!0);B(G,ge,ve,"\u22E0","\\npreceq",!0);B(G,ge,ve,"\u22E8","\\precnsim",!0);B(G,ge,ve,"\u2AB9","\\precnapprox",!0);B(G,ge,ve,"\u2241","\\nsim",!0);B(G,ge,ve,"\uE006","\\@nshortmid");B(G,ge,ve,"\u2224","\\nmid",!0);B(G,ge,ve,"\u22AC","\\nvdash",!0);B(G,ge,ve,"\u22AD","\\nvDash",!0);B(G,ge,ve,"\u22EA","\\ntriangleleft");B(G,ge,ve,"\u22EC","\\ntrianglelefteq",!0);B(G,ge,ve,"\u228A","\\subsetneq",!0);B(G,ge,ve,"\uE01A","\\@varsubsetneq");B(G,ge,ve,"\u2ACB","\\subsetneqq",!0);B(G,ge,ve,"\uE017","\\@varsubsetneqq");B(G,ge,ve,"\u226F","\\ngtr",!0);B(G,ge,ve,"\uE00F","\\@ngeqslant");B(G,ge,ve,"\uE00E","\\@ngeqq");B(G,ge,ve,"\u2A88","\\gneq",!0);B(G,ge,ve,"\u2269","\\gneqq",!0);B(G,ge,ve,"\uE00D","\\@gvertneqq");B(G,ge,ve,"\u22E7","\\gnsim",!0);B(G,ge,ve,"\u2A8A","\\gnapprox",!0);B(G,ge,ve,"\u2281","\\nsucc",!0);B(G,ge,ve,"\u22E1","\\nsucceq",!0);B(G,ge,ve,"\u22E9","\\succnsim",!0);B(G,ge,ve,"\u2ABA","\\succnapprox",!0);B(G,ge,ve,"\u2246","\\ncong",!0);B(G,ge,ve,"\uE007","\\@nshortparallel");B(G,ge,ve,"\u2226","\\nparallel",!0);B(G,ge,ve,"\u22AF","\\nVDash",!0);B(G,ge,ve,"\u22EB","\\ntriangleright");B(G,ge,ve,"\u22ED","\\ntrianglerighteq",!0);B(G,ge,ve,"\uE018","\\@nsupseteqq");B(G,ge,ve,"\u228B","\\supsetneq",!0);B(G,ge,ve,"\uE01B","\\@varsupsetneq");B(G,ge,ve,"\u2ACC","\\supsetneqq",!0);B(G,ge,ve,"\uE019","\\@varsupsetneqq");B(G,ge,ve,"\u22AE","\\nVdash",!0);B(G,ge,ve,"\u2AB5","\\precneqq",!0);B(G,ge,ve,"\u2AB6","\\succneqq",!0);B(G,ge,ve,"\uE016","\\@nsubseteqq");B(G,ge,lt,"\u22B4","\\unlhd");B(G,ge,lt,"\u22B5","\\unrhd");B(G,ge,ve,"\u219A","\\nleftarrow",!0);B(G,ge,ve,"\u219B","\\nrightarrow",!0);B(G,ge,ve,"\u21CD","\\nLeftarrow",!0);B(G,ge,ve,"\u21CF","\\nRightarrow",!0);B(G,ge,ve,"\u21AE","\\nleftrightarrow",!0);B(G,ge,ve,"\u21CE","\\nLeftrightarrow",!0);B(G,ge,ve,"\u25B3","\\vartriangle");B(G,ge,ke,"\u210F","\\hslash");B(G,ge,ke,"\u25BD","\\triangledown");B(G,ge,ke,"\u25CA","\\lozenge");B(G,ge,ke,"\u24C8","\\circledS");B(G,ge,ke,"\xAE","\\circledR");B(Ye,ge,ke,"\xAE","\\circledR");B(G,ge,ke,"\u2221","\\measuredangle",!0);B(G,ge,ke,"\u2204","\\nexists");B(G,ge,ke,"\u2127","\\mho");B(G,ge,ke,"\u2132","\\Finv",!0);B(G,ge,ke,"\u2141","\\Game",!0);B(G,ge,ke,"\u2035","\\backprime");B(G,ge,ke,"\u25B2","\\blacktriangle");B(G,ge,ke,"\u25BC","\\blacktriangledown");B(G,ge,ke,"\u25A0","\\blacksquare");B(G,ge,ke,"\u29EB","\\blacklozenge");B(G,ge,ke,"\u2605","\\bigstar");B(G,ge,ke,"\u2222","\\sphericalangle",!0);B(G,ge,ke,"\u2201","\\complement",!0);B(G,ge,ke,"\xF0","\\eth",!0);B(Ye,Y,ke,"\xF0","\xF0");B(G,ge,ke,"\u2571","\\diagup");B(G,ge,ke,"\u2572","\\diagdown");B(G,ge,ke,"\u25A1","\\square");B(G,ge,ke,"\u25A1","\\Box");B(G,ge,ke,"\u25CA","\\Diamond");B(G,ge,ke,"\xA5","\\yen",!0);B(Ye,ge,ke,"\xA5","\\yen",!0);B(G,ge,ke,"\u2713","\\checkmark",!0);B(Ye,ge,ke,"\u2713","\\checkmark");B(G,ge,ke,"\u2136","\\beth",!0);B(G,ge,ke,"\u2138","\\daleth",!0);B(G,ge,ke,"\u2137","\\gimel",!0);B(G,ge,ke,"\u03DD","\\digamma",!0);B(G,ge,ke,"\u03F0","\\varkappa");B(G,ge,Gs,"\u250C","\\@ulcorner",!0);B(G,ge,$a,"\u2510","\\@urcorner",!0);B(G,ge,Gs,"\u2514","\\@llcorner",!0);B(G,ge,$a,"\u2518","\\@lrcorner",!0);B(G,ge,ve,"\u2266","\\leqq",!0);B(G,ge,ve,"\u2A7D","\\leqslant",!0);B(G,ge,ve,"\u2A95","\\eqslantless",!0);B(G,ge,ve,"\u2272","\\lesssim",!0);B(G,ge,ve,"\u2A85","\\lessapprox",!0);B(G,ge,ve,"\u224A","\\approxeq",!0);B(G,ge,lt,"\u22D6","\\lessdot");B(G,ge,ve,"\u22D8","\\lll",!0);B(G,ge,ve,"\u2276","\\lessgtr",!0);B(G,ge,ve,"\u22DA","\\lesseqgtr",!0);B(G,ge,ve,"\u2A8B","\\lesseqqgtr",!0);B(G,ge,ve,"\u2251","\\doteqdot");B(G,ge,ve,"\u2253","\\risingdotseq",!0);B(G,ge,ve,"\u2252","\\fallingdotseq",!0);B(G,ge,ve,"\u223D","\\backsim",!0);B(G,ge,ve,"\u22CD","\\backsimeq",!0);B(G,ge,ve,"\u2AC5","\\subseteqq",!0);B(G,ge,ve,"\u22D0","\\Subset",!0);B(G,ge,ve,"\u228F","\\sqsubset",!0);B(G,ge,ve,"\u227C","\\preccurlyeq",!0);B(G,ge,ve,"\u22DE","\\curlyeqprec",!0);B(G,ge,ve,"\u227E","\\precsim",!0);B(G,ge,ve,"\u2AB7","\\precapprox",!0);B(G,ge,ve,"\u22B2","\\vartriangleleft");B(G,ge,ve,"\u22B4","\\trianglelefteq");B(G,ge,ve,"\u22A8","\\vDash",!0);B(G,ge,ve,"\u22AA","\\Vvdash",!0);B(G,ge,ve,"\u2323","\\smallsmile");B(G,ge,ve,"\u2322","\\smallfrown");B(G,ge,ve,"\u224F","\\bumpeq",!0);B(G,ge,ve,"\u224E","\\Bumpeq",!0);B(G,ge,ve,"\u2267","\\geqq",!0);B(G,ge,ve,"\u2A7E","\\geqslant",!0);B(G,ge,ve,"\u2A96","\\eqslantgtr",!0);B(G,ge,ve,"\u2273","\\gtrsim",!0);B(G,ge,ve,"\u2A86","\\gtrapprox",!0);B(G,ge,lt,"\u22D7","\\gtrdot");B(G,ge,ve,"\u22D9","\\ggg",!0);B(G,ge,ve,"\u2277","\\gtrless",!0);B(G,ge,ve,"\u22DB","\\gtreqless",!0);B(G,ge,ve,"\u2A8C","\\gtreqqless",!0);B(G,ge,ve,"\u2256","\\eqcirc",!0);B(G,ge,ve,"\u2257","\\circeq",!0);B(G,ge,ve,"\u225C","\\triangleq",!0);B(G,ge,ve,"\u223C","\\thicksim");B(G,ge,ve,"\u2248","\\thickapprox");B(G,ge,ve,"\u2AC6","\\supseteqq",!0);B(G,ge,ve,"\u22D1","\\Supset",!0);B(G,ge,ve,"\u2290","\\sqsupset",!0);B(G,ge,ve,"\u227D","\\succcurlyeq",!0);B(G,ge,ve,"\u22DF","\\curlyeqsucc",!0);B(G,ge,ve,"\u227F","\\succsim",!0);B(G,ge,ve,"\u2AB8","\\succapprox",!0);B(G,ge,ve,"\u22B3","\\vartriangleright");B(G,ge,ve,"\u22B5","\\trianglerighteq");B(G,ge,ve,"\u22A9","\\Vdash",!0);B(G,ge,ve,"\u2223","\\shortmid");B(G,ge,ve,"\u2225","\\shortparallel");B(G,ge,ve,"\u226C","\\between",!0);B(G,ge,ve,"\u22D4","\\pitchfork",!0);B(G,ge,ve,"\u221D","\\varpropto");B(G,ge,ve,"\u25C0","\\blacktriangleleft");B(G,ge,ve,"\u2234","\\therefore",!0);B(G,ge,ve,"\u220D","\\backepsilon");B(G,ge,ve,"\u25B6","\\blacktriangleright");B(G,ge,ve,"\u2235","\\because",!0);B(G,ge,ve,"\u22D8","\\llless");B(G,ge,ve,"\u22D9","\\gggtr");B(G,ge,lt,"\u22B2","\\lhd");B(G,ge,lt,"\u22B3","\\rhd");B(G,ge,ve,"\u2242","\\eqsim",!0);B(G,Y,ve,"\u22C8","\\Join");B(G,ge,ve,"\u2251","\\Doteq",!0);B(G,ge,lt,"\u2214","\\dotplus",!0);B(G,ge,lt,"\u2216","\\smallsetminus");B(G,ge,lt,"\u22D2","\\Cap",!0);B(G,ge,lt,"\u22D3","\\Cup",!0);B(G,ge,lt,"\u2A5E","\\doublebarwedge",!0);B(G,ge,lt,"\u229F","\\boxminus",!0);B(G,ge,lt,"\u229E","\\boxplus",!0);B(G,ge,lt,"\u22C7","\\divideontimes",!0);B(G,ge,lt,"\u22C9","\\ltimes",!0);B(G,ge,lt,"\u22CA","\\rtimes",!0);B(G,ge,lt,"\u22CB","\\leftthreetimes",!0);B(G,ge,lt,"\u22CC","\\rightthreetimes",!0);B(G,ge,lt,"\u22CF","\\curlywedge",!0);B(G,ge,lt,"\u22CE","\\curlyvee",!0);B(G,ge,lt,"\u229D","\\circleddash",!0);B(G,ge,lt,"\u229B","\\circledast",!0);B(G,ge,lt,"\u22C5","\\centerdot");B(G,ge,lt,"\u22BA","\\intercal",!0);B(G,ge,lt,"\u22D2","\\doublecap");B(G,ge,lt,"\u22D3","\\doublecup");B(G,ge,lt,"\u22A0","\\boxtimes",!0);B(G,ge,ve,"\u21E2","\\dashrightarrow",!0);B(G,ge,ve,"\u21E0","\\dashleftarrow",!0);B(G,ge,ve,"\u21C7","\\leftleftarrows",!0);B(G,ge,ve,"\u21C6","\\leftrightarrows",!0);B(G,ge,ve,"\u21DA","\\Lleftarrow",!0);B(G,ge,ve,"\u219E","\\twoheadleftarrow",!0);B(G,ge,ve,"\u21A2","\\leftarrowtail",!0);B(G,ge,ve,"\u21AB","\\looparrowleft",!0);B(G,ge,ve,"\u21CB","\\leftrightharpoons",!0);B(G,ge,ve,"\u21B6","\\curvearrowleft",!0);B(G,ge,ve,"\u21BA","\\circlearrowleft",!0);B(G,ge,ve,"\u21B0","\\Lsh",!0);B(G,ge,ve,"\u21C8","\\upuparrows",!0);B(G,ge,ve,"\u21BF","\\upharpoonleft",!0);B(G,ge,ve,"\u21C3","\\downharpoonleft",!0);B(G,Y,ve,"\u22B6","\\origof",!0);B(G,Y,ve,"\u22B7","\\imageof",!0);B(G,ge,ve,"\u22B8","\\multimap",!0);B(G,ge,ve,"\u21AD","\\leftrightsquigarrow",!0);B(G,ge,ve,"\u21C9","\\rightrightarrows",!0);B(G,ge,ve,"\u21C4","\\rightleftarrows",!0);B(G,ge,ve,"\u21A0","\\twoheadrightarrow",!0);B(G,ge,ve,"\u21A3","\\rightarrowtail",!0);B(G,ge,ve,"\u21AC","\\looparrowright",!0);B(G,ge,ve,"\u21B7","\\curvearrowright",!0);B(G,ge,ve,"\u21BB","\\circlearrowright",!0);B(G,ge,ve,"\u21B1","\\Rsh",!0);B(G,ge,ve,"\u21CA","\\downdownarrows",!0);B(G,ge,ve,"\u21BE","\\upharpoonright",!0);B(G,ge,ve,"\u21C2","\\downharpoonright",!0);B(G,ge,ve,"\u21DD","\\rightsquigarrow",!0);B(G,ge,ve,"\u21DD","\\leadsto");B(G,ge,ve,"\u21DB","\\Rrightarrow",!0);B(G,ge,ve,"\u21BE","\\restriction");B(G,Y,ke,"\u2018","`");B(G,Y,ke,"$","\\$");B(Ye,Y,ke,"$","\\$");B(Ye,Y,ke,"$","\\textdollar");B(G,Y,ke,"%","\\%");B(Ye,Y,ke,"%","\\%");B(G,Y,ke,"_","\\_");B(Ye,Y,ke,"_","\\_");B(Ye,Y,ke,"_","\\textunderscore");B(G,Y,ke,"\u2220","\\angle",!0);B(G,Y,ke,"\u221E","\\infty",!0);B(G,Y,ke,"\u2032","\\prime");B(G,Y,ke,"\u25B3","\\triangle");B(G,Y,ke,"\u0393","\\Gamma",!0);B(G,Y,ke,"\u0394","\\Delta",!0);B(G,Y,ke,"\u0398","\\Theta",!0);B(G,Y,ke,"\u039B","\\Lambda",!0);B(G,Y,ke,"\u039E","\\Xi",!0);B(G,Y,ke,"\u03A0","\\Pi",!0);B(G,Y,ke,"\u03A3","\\Sigma",!0);B(G,Y,ke,"\u03A5","\\Upsilon",!0);B(G,Y,ke,"\u03A6","\\Phi",!0);B(G,Y,ke,"\u03A8","\\Psi",!0);B(G,Y,ke,"\u03A9","\\Omega",!0);B(G,Y,ke,"A","\u0391");B(G,Y,ke,"B","\u0392");B(G,Y,ke,"E","\u0395");B(G,Y,ke,"Z","\u0396");B(G,Y,ke,"H","\u0397");B(G,Y,ke,"I","\u0399");B(G,Y,ke,"K","\u039A");B(G,Y,ke,"M","\u039C");B(G,Y,ke,"N","\u039D");B(G,Y,ke,"O","\u039F");B(G,Y,ke,"P","\u03A1");B(G,Y,ke,"T","\u03A4");B(G,Y,ke,"X","\u03A7");B(G,Y,ke,"\xAC","\\neg",!0);B(G,Y,ke,"\xAC","\\lnot");B(G,Y,ke,"\u22A4","\\top");B(G,Y,ke,"\u22A5","\\bot");B(G,Y,ke,"\u2205","\\emptyset");B(G,ge,ke,"\u2205","\\varnothing");B(G,Y,It,"\u03B1","\\alpha",!0);B(G,Y,It,"\u03B2","\\beta",!0);B(G,Y,It,"\u03B3","\\gamma",!0);B(G,Y,It,"\u03B4","\\delta",!0);B(G,Y,It,"\u03F5","\\epsilon",!0);B(G,Y,It,"\u03B6","\\zeta",!0);B(G,Y,It,"\u03B7","\\eta",!0);B(G,Y,It,"\u03B8","\\theta",!0);B(G,Y,It,"\u03B9","\\iota",!0);B(G,Y,It,"\u03BA","\\kappa",!0);B(G,Y,It,"\u03BB","\\lambda",!0);B(G,Y,It,"\u03BC","\\mu",!0);B(G,Y,It,"\u03BD","\\nu",!0);B(G,Y,It,"\u03BE","\\xi",!0);B(G,Y,It,"\u03BF","\\omicron",!0);B(G,Y,It,"\u03C0","\\pi",!0);B(G,Y,It,"\u03C1","\\rho",!0);B(G,Y,It,"\u03C3","\\sigma",!0);B(G,Y,It,"\u03C4","\\tau",!0);B(G,Y,It,"\u03C5","\\upsilon",!0);B(G,Y,It,"\u03D5","\\phi",!0);B(G,Y,It,"\u03C7","\\chi",!0);B(G,Y,It,"\u03C8","\\psi",!0);B(G,Y,It,"\u03C9","\\omega",!0);B(G,Y,It,"\u03B5","\\varepsilon",!0);B(G,Y,It,"\u03D1","\\vartheta",!0);B(G,Y,It,"\u03D6","\\varpi",!0);B(G,Y,It,"\u03F1","\\varrho",!0);B(G,Y,It,"\u03C2","\\varsigma",!0);B(G,Y,It,"\u03C6","\\varphi",!0);B(G,Y,lt,"\u2217","*",!0);B(G,Y,lt,"+","+");B(G,Y,lt,"\u2212","-",!0);B(G,Y,lt,"\u22C5","\\cdot",!0);B(G,Y,lt,"\u2218","\\circ",!0);B(G,Y,lt,"\xF7","\\div",!0);B(G,Y,lt,"\xB1","\\pm",!0);B(G,Y,lt,"\xD7","\\times",!0);B(G,Y,lt,"\u2229","\\cap",!0);B(G,Y,lt,"\u222A","\\cup",!0);B(G,Y,lt,"\u2216","\\setminus",!0);B(G,Y,lt,"\u2227","\\land");B(G,Y,lt,"\u2228","\\lor");B(G,Y,lt,"\u2227","\\wedge",!0);B(G,Y,lt,"\u2228","\\vee",!0);B(G,Y,ke,"\u221A","\\surd");B(G,Y,Gs,"\u27E8","\\langle",!0);B(G,Y,Gs,"\u2223","\\lvert");B(G,Y,Gs,"\u2225","\\lVert");B(G,Y,$a,"?","?");B(G,Y,$a,"!","!");B(G,Y,$a,"\u27E9","\\rangle",!0);B(G,Y,$a,"\u2223","\\rvert");B(G,Y,$a,"\u2225","\\rVert");B(G,Y,ve,"=","=");B(G,Y,ve,":",":");B(G,Y,ve,"\u2248","\\approx",!0);B(G,Y,ve,"\u2245","\\cong",!0);B(G,Y,ve,"\u2265","\\ge");B(G,Y,ve,"\u2265","\\geq",!0);B(G,Y,ve,"\u2190","\\gets");B(G,Y,ve,">","\\gt",!0);B(G,Y,ve,"\u2208","\\in",!0);B(G,Y,ve,"\uE020","\\@not");B(G,Y,ve,"\u2282","\\subset",!0);B(G,Y,ve,"\u2283","\\supset",!0);B(G,Y,ve,"\u2286","\\subseteq",!0);B(G,Y,ve,"\u2287","\\supseteq",!0);B(G,ge,ve,"\u2288","\\nsubseteq",!0);B(G,ge,ve,"\u2289","\\nsupseteq",!0);B(G,Y,ve,"\u22A8","\\models");B(G,Y,ve,"\u2190","\\leftarrow",!0);B(G,Y,ve,"\u2264","\\le");B(G,Y,ve,"\u2264","\\leq",!0);B(G,Y,ve,"<","\\lt",!0);B(G,Y,ve,"\u2192","\\rightarrow",!0);B(G,Y,ve,"\u2192","\\to");B(G,ge,ve,"\u2271","\\ngeq",!0);B(G,ge,ve,"\u2270","\\nleq",!0);B(G,Y,Jc,"\xA0","\\ ");B(G,Y,Jc,"\xA0","\\space");B(G,Y,Jc,"\xA0","\\nobreakspace");B(Ye,Y,Jc,"\xA0","\\ ");B(Ye,Y,Jc,"\xA0"," ");B(Ye,Y,Jc,"\xA0","\\space");B(Ye,Y,Jc,"\xA0","\\nobreakspace");B(G,Y,Jc,null,"\\nobreak");B(G,Y,Jc,null,"\\allowbreak");B(G,Y,Ub,",",",");B(G,Y,Ub,";",";");B(G,ge,lt,"\u22BC","\\barwedge",!0);B(G,ge,lt,"\u22BB","\\veebar",!0);B(G,Y,lt,"\u2299","\\odot",!0);B(G,Y,lt,"\u2295","\\oplus",!0);B(G,Y,lt,"\u2297","\\otimes",!0);B(G,Y,ke,"\u2202","\\partial",!0);B(G,Y,lt,"\u2298","\\oslash",!0);B(G,ge,lt,"\u229A","\\circledcirc",!0);B(G,ge,lt,"\u22A1","\\boxdot",!0);B(G,Y,lt,"\u25B3","\\bigtriangleup");B(G,Y,lt,"\u25BD","\\bigtriangledown");B(G,Y,lt,"\u2020","\\dagger");B(G,Y,lt,"\u22C4","\\diamond");B(G,Y,lt,"\u22C6","\\star");B(G,Y,lt,"\u25C3","\\triangleleft");B(G,Y,lt,"\u25B9","\\triangleright");B(G,Y,Gs,"{","\\{");B(Ye,Y,ke,"{","\\{");B(Ye,Y,ke,"{","\\textbraceleft");B(G,Y,$a,"}","\\}");B(Ye,Y,ke,"}","\\}");B(Ye,Y,ke,"}","\\textbraceright");B(G,Y,Gs,"{","\\lbrace");B(G,Y,$a,"}","\\rbrace");B(G,Y,Gs,"[","\\lbrack",!0);B(Ye,Y,ke,"[","\\lbrack",!0);B(G,Y,$a,"]","\\rbrack",!0);B(Ye,Y,ke,"]","\\rbrack",!0);B(G,Y,Gs,"(","\\lparen",!0);B(G,Y,$a,")","\\rparen",!0);B(Ye,Y,ke,"<","\\textless",!0);B(Ye,Y,ke,">","\\textgreater",!0);B(G,Y,Gs,"\u230A","\\lfloor",!0);B(G,Y,$a,"\u230B","\\rfloor",!0);B(G,Y,Gs,"\u2308","\\lceil",!0);B(G,Y,$a,"\u2309","\\rceil",!0);B(G,Y,ke,"\\","\\backslash");B(G,Y,ke,"\u2223","|");B(G,Y,ke,"\u2223","\\vert");B(Ye,Y,ke,"|","\\textbar",!0);B(G,Y,ke,"\u2225","\\|");B(G,Y,ke,"\u2225","\\Vert");B(Ye,Y,ke,"\u2225","\\textbardbl");B(Ye,Y,ke,"~","\\textasciitilde");B(Ye,Y,ke,"\\","\\textbackslash");B(Ye,Y,ke,"^","\\textasciicircum");B(G,Y,ve,"\u2191","\\uparrow",!0);B(G,Y,ve,"\u21D1","\\Uparrow",!0);B(G,Y,ve,"\u2193","\\downarrow",!0);B(G,Y,ve,"\u21D3","\\Downarrow",!0);B(G,Y,ve,"\u2195","\\updownarrow",!0);B(G,Y,ve,"\u21D5","\\Updownarrow",!0);B(G,Y,hi,"\u2210","\\coprod");B(G,Y,hi,"\u22C1","\\bigvee");B(G,Y,hi,"\u22C0","\\bigwedge");B(G,Y,hi,"\u2A04","\\biguplus");B(G,Y,hi,"\u22C2","\\bigcap");B(G,Y,hi,"\u22C3","\\bigcup");B(G,Y,hi,"\u222B","\\int");B(G,Y,hi,"\u222B","\\intop");B(G,Y,hi,"\u222C","\\iint");B(G,Y,hi,"\u222D","\\iiint");B(G,Y,hi,"\u220F","\\prod");B(G,Y,hi,"\u2211","\\sum");B(G,Y,hi,"\u2A02","\\bigotimes");B(G,Y,hi,"\u2A01","\\bigoplus");B(G,Y,hi,"\u2A00","\\bigodot");B(G,Y,hi,"\u222E","\\oint");B(G,Y,hi,"\u222F","\\oiint");B(G,Y,hi,"\u2230","\\oiiint");B(G,Y,hi,"\u2A06","\\bigsqcup");B(G,Y,hi,"\u222B","\\smallint");B(Ye,Y,rp,"\u2026","\\textellipsis");B(G,Y,rp,"\u2026","\\mathellipsis");B(Ye,Y,rp,"\u2026","\\ldots",!0);B(G,Y,rp,"\u2026","\\ldots",!0);B(G,Y,rp,"\u22EF","\\@cdots",!0);B(G,Y,rp,"\u22F1","\\ddots",!0);B(G,Y,ke,"\u22EE","\\varvdots");B(G,Y,Ln,"\u02CA","\\acute");B(G,Y,Ln,"\u02CB","\\grave");B(G,Y,Ln,"\xA8","\\ddot");B(G,Y,Ln,"~","\\tilde");B(G,Y,Ln,"\u02C9","\\bar");B(G,Y,Ln,"\u02D8","\\breve");B(G,Y,Ln,"\u02C7","\\check");B(G,Y,Ln,"^","\\hat");B(G,Y,Ln,"\u20D7","\\vec");B(G,Y,Ln,"\u02D9","\\dot");B(G,Y,Ln,"\u02DA","\\mathring");B(G,Y,It,"\uE131","\\@imath");B(G,Y,It,"\uE237","\\@jmath");B(G,Y,ke,"\u0131","\u0131");B(G,Y,ke,"\u0237","\u0237");B(Ye,Y,ke,"\u0131","\\i",!0);B(Ye,Y,ke,"\u0237","\\j",!0);B(Ye,Y,ke,"\xDF","\\ss",!0);B(Ye,Y,ke,"\xE6","\\ae",!0);B(Ye,Y,ke,"\u0153","\\oe",!0);B(Ye,Y,ke,"\xF8","\\o",!0);B(Ye,Y,ke,"\xC6","\\AE",!0);B(Ye,Y,ke,"\u0152","\\OE",!0);B(Ye,Y,ke,"\xD8","\\O",!0);B(Ye,Y,Ln,"\u02CA","\\'");B(Ye,Y,Ln,"\u02CB","\\`");B(Ye,Y,Ln,"\u02C6","\\^");B(Ye,Y,Ln,"\u02DC","\\~");B(Ye,Y,Ln,"\u02C9","\\=");B(Ye,Y,Ln,"\u02D8","\\u");B(Ye,Y,Ln,"\u02D9","\\.");B(Ye,Y,Ln,"\xB8","\\c");B(Ye,Y,Ln,"\u02DA","\\r");B(Ye,Y,Ln,"\u02C7","\\v");B(Ye,Y,Ln,"\xA8",'\\"');B(Ye,Y,Ln,"\u02DD","\\H");B(Ye,Y,Ln,"\u25EF","\\textcircled");uz={"--":!0,"---":!0,"``":!0,"''":!0};B(Ye,Y,ke,"\u2013","--",!0);B(Ye,Y,ke,"\u2013","\\textendash");B(Ye,Y,ke,"\u2014","---",!0);B(Ye,Y,ke,"\u2014","\\textemdash");B(Ye,Y,ke,"\u2018","`",!0);B(Ye,Y,ke,"\u2018","\\textquoteleft");B(Ye,Y,ke,"\u2019","'",!0);B(Ye,Y,ke,"\u2019","\\textquoteright");B(Ye,Y,ke,"\u201C","``",!0);B(Ye,Y,ke,"\u201C","\\textquotedblleft");B(Ye,Y,ke,"\u201D","''",!0);B(Ye,Y,ke,"\u201D","\\textquotedblright");B(G,Y,ke,"\xB0","\\degree",!0);B(Ye,Y,ke,"\xB0","\\degree");B(Ye,Y,ke,"\xB0","\\textdegree",!0);B(G,Y,ke,"\xA3","\\pounds");B(G,Y,ke,"\xA3","\\mathsterling",!0);B(Ye,Y,ke,"\xA3","\\pounds");B(Ye,Y,ke,"\xA3","\\textsterling",!0);B(G,ge,ke,"\u2720","\\maltese");B(Ye,ge,ke,"\u2720","\\maltese");MF='0123456789/@."';for(Tb=0;Tb0)return Yo(a,h,i,r,o.concat(f));if(u){var d,p;if(u==="boldsymbol"){var m=Yye(a,i,r,o,n);d=m.fontName,p=[m.fontClass]}else l?(d=dz[u].fontName,p=[u]):(d=Ab(u,r.fontWeight,r.fontShape),p=[u,r.fontWeight,r.fontShape]);if(qb(a,d,i).metrics)return Yo(a,d,i,r,o.concat(p));if(uz.hasOwnProperty(a)&&d.slice(0,10)==="Typewriter"){for(var g=[],y=0;y{if(oh(t.classes)!==oh(e.classes)||t.skew!==e.skew||t.maxFontSize!==e.maxFontSize)return!1;if(t.classes.length===1){var r=t.classes[0];if(r==="mbin"||r==="mord")return!1}for(var n in t.style)if(t.style.hasOwnProperty(n)&&t.style[n]!==e.style[n])return!1;for(var i in e.style)if(e.style.hasOwnProperty(i)&&t.style[i]!==e.style[i])return!1;return!0},"canCombine"),Kye=s(t=>{for(var e=0;er&&(r=o.height),o.depth>n&&(n=o.depth),o.maxFontSize>i&&(i=o.maxFontSize)}e.height=r,e.depth=n,e.maxFontSize=i},"sizeElementFromChildren"),ss=s(function(e,r,n,i){var a=new Bf(e,r,n,i);return qE(a),a},"makeSpan"),hz=s((t,e,r,n)=>new Bf(t,e,r,n),"makeSvgSpan"),Qye=s(function(e,r,n){var i=ss([e],[],r);return i.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),i.style.borderBottomWidth=tt(i.height),i.maxFontSize=1,i},"makeLineSpan"),Zye=s(function(e,r,n,i){var a=new $1(e,r,n,i);return qE(a),a},"makeAnchor"),fz=s(function(e){var r=new Pf(e);return qE(r),r},"makeFragment"),Jye=s(function(e,r){return e instanceof Pf?ss([],[e],r):e},"wrapFragment"),eve=s(function(e){if(e.positionType==="individualShift"){for(var r=e.children,n=[r[0]],i=-r[0].shift-r[0].elem.depth,a=i,o=1;o{var r=ss(["mspace"],[],e),n=Bn(t,e);return r.style.marginRight=tt(n),r},"makeGlue"),Ab=s(function(e,r,n){var i="";switch(e){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=e}var a;return r==="textbf"&&n==="textit"?a="BoldItalic":r==="textbf"?a="Bold":r==="textit"?a="Italic":a="Regular",i+"-"+a},"retrieveTextFontName"),dz={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},pz={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},nve=s(function(e,r){var[n,i,a]=pz[e],o=new $l(n),l=new Xo([o],{width:tt(i),height:tt(a),style:"width:"+tt(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),u=hz(["overlay"],[l],r);return u.height=a,u.style.height=tt(a),u.style.width=tt(i),u},"staticSvg"),Ae={fontMap:dz,makeSymbol:Yo,mathsym:Hye,makeSpan:ss,makeSvgSpan:hz,makeLineSpan:Qye,makeAnchor:Zye,makeFragment:fz,wrapFragment:Jye,makeVList:tve,makeOrd:Xye,makeGlue:rve,staticSvg:nve,svgData:pz,tryCombineChars:Kye},Pn={number:3,unit:"mu"},Nf={number:4,unit:"mu"},Xc={number:5,unit:"mu"},ive={mord:{mop:Pn,mbin:Nf,mrel:Xc,minner:Pn},mop:{mord:Pn,mop:Pn,mrel:Xc,minner:Pn},mbin:{mord:Nf,mop:Nf,mopen:Nf,minner:Nf},mrel:{mord:Xc,mop:Xc,mopen:Xc,minner:Xc},mopen:{},mclose:{mop:Pn,mbin:Nf,mrel:Xc,minner:Pn},mpunct:{mord:Pn,mop:Pn,mrel:Xc,mopen:Pn,mclose:Pn,mpunct:Pn,minner:Pn},minner:{mord:Pn,mop:Pn,mbin:Nf,mrel:Xc,mopen:Pn,mpunct:Pn,minner:Pn}},ave={mord:{mop:Pn},mop:{mord:Pn,mop:Pn},mbin:{},mrel:{},mopen:{},mclose:{mop:Pn},mpunct:{},minner:{mop:Pn}},mz={},Fb={},zb={};s(st,"defineFunction");s(Ff,"defineFunctionBuilders");$b=s(function(e){return e.type==="ordgroup"&&e.body.length===1?e.body[0]:e},"normalizeArgument"),ni=s(function(e){return e.type==="ordgroup"?e.body:[e]},"ordargument"),Qc=Ae.makeSpan,sve=["leftmost","mbin","mopen","mrel","mop","mpunct"],ove=["rightmost","mrel","mclose","mpunct"],lve={display:Nt.DISPLAY,text:Nt.TEXT,script:Nt.SCRIPT,scriptscript:Nt.SCRIPTSCRIPT},cve={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Ti=s(function(e,r,n,i){i===void 0&&(i=[null,null]);for(var a=[],o=0;o{var v=y.classes[0],x=g.classes[0];v==="mbin"&&Mt.contains(ove,x)?y.classes[0]="mord":x==="mbin"&&Mt.contains(sve,v)&&(g.classes[0]="mord")},{node:d},p,m),OF(a,(g,y)=>{var v=NE(y),x=NE(g),b=v&&x?g.hasClass("mtight")?ave[v][x]:ive[v][x]:null;if(b)return Ae.makeGlue(b,h)},{node:d},p,m),a},"buildExpression"),OF=s(function t(e,r,n,i,a){i&&e.push(i);for(var o=0;op=>{e.splice(d+1,0,p),o++})(o)}i&&e.pop()},"traverseNonSpaceNodes"),gz=s(function(e){return e instanceof Pf||e instanceof $1||e instanceof Bf&&e.hasClass("enclosing")?e:null},"checkPartialGroup"),uve=s(function t(e,r){var n=gz(e);if(n){var i=n.children;if(i.length){if(r==="right")return t(i[i.length-1],"right");if(r==="left")return t(i[0],"left")}}return e},"getOutermostNode"),NE=s(function(e,r){return e?(r&&(e=uve(e,r)),cve[e.classes[0]]||null):null},"getTypeOfDomTree"),V1=s(function(e,r){var n=["nulldelimiter"].concat(e.baseSizingClasses());return Qc(r.concat(n))},"makeNullDelimiter"),vr=s(function(e,r,n){if(!e)return Qc();if(Fb[e.type]){var i=Fb[e.type](e,r);if(n&&r.size!==n.size){i=Qc(r.sizingClasses(n),[i],r);var a=r.sizeMultiplier/n.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new je("Got group of unknown type: '"+e.type+"'")},"buildGroup");s(Lb,"buildHTMLUnbreakable");s(OE,"buildHTML");s(yz,"newDocumentFragment");os=class{static{s(this,"MathNode")}constructor(e,r,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=r||[],this.classes=n||[]}setAttribute(e,r){this.attributes[e]=r}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&e.setAttribute(r,this.attributes[r]);this.classes.length>0&&(e.className=oh(this.classes));for(var n=0;n0&&(e+=' class ="'+Mt.escape(oh(this.classes))+'"'),e+=">";for(var n=0;n",e}toText(){return this.children.map(e=>e.toText()).join("")}},Of=class{static{s(this,"TextNode")}constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return Mt.escape(this.toText())}toText(){return this.text}},PE=class{static{s(this,"SpaceNode")}constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character="\u200A":e>=.1666&&e<=.1667?this.character="\u2009":e>=.2222&&e<=.2223?this.character="\u2005":e>=.2777&&e<=.2778?this.character="\u2005\u200A":e>=-.05556&&e<=-.05555?this.character="\u200A\u2063":e>=-.1667&&e<=-.1666?this.character="\u2009\u2063":e>=-.2223&&e<=-.2222?this.character="\u205F\u2063":e>=-.2778&&e<=-.2777?this.character="\u2005\u2063":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",tt(this.width)),e}toMarkup(){return this.character?""+this.character+" ":' '}toText(){return this.character?this.character:" "}},Xe={MathNode:os,TextNode:Of,SpaceNode:PE,newDocumentFragment:yz},yo=s(function(e,r,n){return dn[r][e]&&dn[r][e].replace&&e.charCodeAt(0)!==55349&&!(uz.hasOwnProperty(e)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(e=dn[r][e].replace),new Xe.TextNode(e)},"makeText"),WE=s(function(e){return e.length===1?e[0]:new Xe.MathNode("mrow",e)},"makeRow"),HE=s(function(e,r){if(r.fontFamily==="texttt")return"monospace";if(r.fontFamily==="textsf")return r.fontShape==="textit"&&r.fontWeight==="textbf"?"sans-serif-bold-italic":r.fontShape==="textit"?"sans-serif-italic":r.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(r.fontShape==="textit"&&r.fontWeight==="textbf")return"bold-italic";if(r.fontShape==="textit")return"italic";if(r.fontWeight==="textbf")return"bold";var n=r.font;if(!n||n==="mathnormal")return null;var i=e.mode;if(n==="mathit")return"italic";if(n==="boldsymbol")return e.type==="textord"?"bold":"bold-italic";if(n==="mathbf")return"bold";if(n==="mathbb")return"double-struck";if(n==="mathfrak")return"fraktur";if(n==="mathscr"||n==="mathcal")return"script";if(n==="mathsf")return"sans-serif";if(n==="mathtt")return"monospace";var a=e.text;if(Mt.contains(["\\imath","\\jmath"],a))return null;dn[i][a]&&dn[i][a].replace&&(a=dn[i][a].replace);var o=Ae.fontMap[n].fontName;return UE(a,o,i)?Ae.fontMap[n].variant:null},"getVariant"),cs=s(function(e,r,n){if(e.length===1){var i=nn(e[0],r);return n&&i instanceof os&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],o,l=0;l0&&(d.text=d.text.slice(0,1)+"\u0338"+d.text.slice(1),a.pop())}}}a.push(u),o=u}return a},"buildExpression"),lh=s(function(e,r,n){return WE(cs(e,r,n))},"buildExpressionRow"),nn=s(function(e,r){if(!e)return new Xe.MathNode("mrow");if(zb[e.type]){var n=zb[e.type](e,r);return n}else throw new je("Got group of unknown type: '"+e.type+"'")},"buildGroup");s(PF,"buildMathML");vz=s(function(e){return new Pb({style:e.displayMode?Nt.DISPLAY:Nt.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},"optionsFromSettings"),xz=s(function(e,r){if(r.displayMode){var n=["katex-display"];r.leqno&&n.push("leqno"),r.fleqn&&n.push("fleqn"),e=Ae.makeSpan(n,[e])}return e},"displayWrap"),hve=s(function(e,r,n){var i=vz(n),a;if(n.output==="mathml")return PF(e,r,i,n.displayMode,!0);if(n.output==="html"){var o=OE(e,i);a=Ae.makeSpan(["katex"],[o])}else{var l=PF(e,r,i,n.displayMode,!1),u=OE(e,i);a=Ae.makeSpan(["katex"],[l,u])}return xz(a,n)},"buildTree"),fve=s(function(e,r,n){var i=vz(n),a=OE(e,i),o=Ae.makeSpan(["katex"],[a]);return xz(o,n)},"buildHTMLTree"),dve={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",overgroup:"\u23E0",undergroup:"\u23E1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xrightleftarrows:"\u21C4",xrightequilibrium:"\u21CC",xleftequilibrium:"\u21CB","\\cdrightarrow":"\u2192","\\cdleftarrow":"\u2190","\\cdlongequal":"="},pve=s(function(e){var r=new Xe.MathNode("mo",[new Xe.TextNode(dve[e.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},"mathMLnode"),mve={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},gve=s(function(e){return e.type==="ordgroup"?e.body.length:1},"groupLength"),yve=s(function(e,r){function n(){var l=4e5,u=e.label.slice(1);if(Mt.contains(["widehat","widecheck","widetilde","utilde"],u)){var h=e,f=gve(h.base),d,p,m;if(f>5)u==="widehat"||u==="widecheck"?(d=420,l=2364,m=.42,p=u+"4"):(d=312,l=2340,m=.34,p="tilde4");else{var g=[1,1,2,2,3,3][f];u==="widehat"||u==="widecheck"?(l=[0,1062,2364,2364,2364][g],d=[0,239,300,360,420][g],m=[0,.24,.3,.3,.36,.42][g],p=u+g):(l=[0,600,1033,2339,2340][g],d=[0,260,286,306,312][g],m=[0,.26,.286,.3,.306,.34][g],p="tilde"+g)}var y=new $l(p),v=new Xo([y],{width:"100%",height:tt(m),viewBox:"0 0 "+l+" "+d,preserveAspectRatio:"none"});return{span:Ae.makeSvgSpan([],[v],r),minWidth:0,height:m}}else{var x=[],b=mve[u],[k,A,w]=b,T=w/1e3,C=k.length,E,S;if(C===1){var R=b[3];E=["hide-tail"],S=[R]}else if(C===2)E=["halfarrow-left","halfarrow-right"],S=["xMinYMin","xMaxYMin"];else if(C===3)E=["brace-left","brace-center","brace-right"],S=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
`+C+" children.");for(var D=0;D0&&(i.style.minWidth=tt(a)),i},"svgSpan"),vve=s(function(e,r,n,i,a){var o,l=e.height+e.depth+n+i;if(/fbox|color|angl/.test(r)){if(o=Ae.makeSpan(["stretchy",r],[],a),r==="fbox"){var u=a.color&&a.getColor();u&&(o.style.borderColor=u)}}else{var h=[];/^[bx]cancel$/.test(r)&&h.push(new G1({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&h.push(new G1({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var f=new Xo(h,{width:"100%",height:tt(l)});o=Ae.makeSvgSpan([],[f],a)}return o.height=l,o.style.height=tt(l),o},"encloseSpan"),Zc={encloseSpan:vve,mathMLnode:pve,svgSpan:yve};s(Jt,"assertNodeType");s(YE,"assertSymbolNodeType");s(Wb,"checkSymbolNodeType");XE=s((t,e)=>{var r,n,i;t&&t.type==="supsub"?(n=Jt(t.base,"accent"),r=n.base,t.base=r,i=Vye(vr(t,e)),t.base=n):(n=Jt(t,"accent"),r=n.base);var a=vr(r,e.havingCrampedStyle()),o=n.isShifty&&Mt.isCharacterBox(r),l=0;if(o){var u=Mt.getBaseElem(r),h=vr(u,e.havingCrampedStyle());l=RF(h).skew}var f=n.label==="\\c",d=f?a.height+a.depth:Math.min(a.height,e.fontMetrics().xHeight),p;if(n.isStretchy)p=Zc.svgSpan(n,e),p=Ae.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:p,wrapperClasses:["svg-align"],wrapperStyle:l>0?{width:"calc(100% - "+tt(2*l)+")",marginLeft:tt(2*l)}:void 0}]},e);else{var m,g;n.label==="\\vec"?(m=Ae.staticSvg("vec",e),g=Ae.svgData.vec[1]):(m=Ae.makeOrd({mode:n.mode,text:n.label},e,"textord"),m=RF(m),m.italic=0,g=m.width,f&&(d+=m.depth)),p=Ae.makeSpan(["accent-body"],[m]);var y=n.label==="\\textcircled";y&&(p.classes.push("accent-full"),d=a.height);var v=l;y||(v-=g/2),p.style.left=tt(v),n.label==="\\textcircled"&&(p.style.top=".2em"),p=Ae.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-d},{type:"elem",elem:p}]},e)}var x=Ae.makeSpan(["mord","accent"],[p],e);return i?(i.children[0]=x,i.height=Math.max(x.height,i.height),i.classes[0]="mord",i):x},"htmlBuilder$a"),bz=s((t,e)=>{var r=t.isStretchy?Zc.mathMLnode(t.label):new Xe.MathNode("mo",[yo(t.label,t.mode)]),n=new Xe.MathNode("mover",[nn(t.base,e),r]);return n.setAttribute("accent","true"),n},"mathmlBuilder$9"),xve=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(t=>"\\"+t).join("|"));st({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:s((t,e)=>{var r=$b(e[0]),n=!xve.test(t.funcName),i=!n||t.funcName==="\\widehat"||t.funcName==="\\widetilde"||t.funcName==="\\widecheck";return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:n,isShifty:i,base:r}},"handler"),htmlBuilder:XE,mathmlBuilder:bz});st({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:s((t,e)=>{var r=e[0],n=t.parser.mode;return n==="math"&&(t.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+t.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:t.funcName,isStretchy:!1,isShifty:!0,base:r}},"handler"),htmlBuilder:XE,mathmlBuilder:bz});st({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:s((t,e)=>{var{parser:r,funcName:n}=t,i=e[0];return{type:"accentUnder",mode:r.mode,label:n,base:i}},"handler"),htmlBuilder:s((t,e)=>{var r=vr(t.base,e),n=Zc.svgSpan(t,e),i=t.label==="\\utilde"?.12:0,a=Ae.makeVList({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:r}]},e);return Ae.makeSpan(["mord","accentunder"],[a],e)},"htmlBuilder"),mathmlBuilder:s((t,e)=>{var r=Zc.mathMLnode(t.label),n=new Xe.MathNode("munder",[nn(t.base,e),r]);return n.setAttribute("accentunder","true"),n},"mathmlBuilder")});Db=s(t=>{var e=new Xe.MathNode("mpadded",t?[t]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e},"paddedNode");st({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(t,e,r){var{parser:n,funcName:i}=t;return{type:"xArrow",mode:n.mode,label:i,body:e[0],below:r[0]}},htmlBuilder(t,e){var r=e.style,n=e.havingStyle(r.sup()),i=Ae.wrapFragment(vr(t.body,n,e),e),a=t.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(a+"-arrow-pad");var o;t.below&&(n=e.havingStyle(r.sub()),o=Ae.wrapFragment(vr(t.below,n,e),e),o.classes.push(a+"-arrow-pad"));var l=Zc.svgSpan(t,e),u=-e.fontMetrics().axisHeight+.5*l.height,h=-e.fontMetrics().axisHeight-.5*l.height-.111;(i.depth>.25||t.label==="\\xleftequilibrium")&&(h-=i.depth);var f;if(o){var d=-e.fontMetrics().axisHeight+o.height+.5*l.height+.111;f=Ae.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:h},{type:"elem",elem:l,shift:u},{type:"elem",elem:o,shift:d}]},e)}else f=Ae.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:h},{type:"elem",elem:l,shift:u}]},e);return f.children[0].children[0].children[1].classes.push("svg-align"),Ae.makeSpan(["mrel","x-arrow"],[f],e)},mathmlBuilder(t,e){var r=Zc.mathMLnode(t.label);r.setAttribute("minsize",t.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(t.body){var i=Db(nn(t.body,e));if(t.below){var a=Db(nn(t.below,e));n=new Xe.MathNode("munderover",[r,a,i])}else n=new Xe.MathNode("mover",[r,i])}else if(t.below){var o=Db(nn(t.below,e));n=new Xe.MathNode("munder",[r,o])}else n=Db(),n=new Xe.MathNode("mover",[r,n]);return n}});bve=Ae.makeSpan;s(kz,"htmlBuilder$9");s(wz,"mathmlBuilder$8");st({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(t,e){var{parser:r,funcName:n}=t,i=e[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:ni(i),isCharacterBox:Mt.isCharacterBox(i)}},htmlBuilder:kz,mathmlBuilder:wz});Hb=s(t=>{var e=t.type==="ordgroup"&&t.body.length?t.body[0]:t;return e.type==="atom"&&(e.family==="bin"||e.family==="rel")?"m"+e.family:"mord"},"binrelClass");st({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(t,e){var{parser:r}=t;return{type:"mclass",mode:r.mode,mclass:Hb(e[0]),body:ni(e[1]),isCharacterBox:Mt.isCharacterBox(e[1])}}});st({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(t,e){var{parser:r,funcName:n}=t,i=e[1],a=e[0],o;n!=="\\stackrel"?o=Hb(i):o="mrel";var l={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:ni(i)},u={type:"supsub",mode:a.mode,base:l,sup:n==="\\underset"?null:a,sub:n==="\\underset"?a:null};return{type:"mclass",mode:r.mode,mclass:o,body:[u],isCharacterBox:Mt.isCharacterBox(u)}},htmlBuilder:kz,mathmlBuilder:wz});st({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(t,e){var{parser:r}=t;return{type:"pmb",mode:r.mode,mclass:Hb(e[0]),body:ni(e[0])}},htmlBuilder(t,e){var r=Ti(t.body,e,!0),n=Ae.makeSpan([t.mclass],r,e);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(t,e){var r=cs(t.body,e),n=new Xe.MathNode("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});kve={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},BF=s(()=>({type:"styling",body:[],mode:"math",style:"display"}),"newCell"),FF=s(t=>t.type==="textord"&&t.text==="@","isStartOfArrow"),wve=s((t,e)=>(t.type==="mathord"||t.type==="atom")&&t.text===e,"isLabelEnd");s(Tve,"cdArrow");s(Eve,"parseCD");st({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(t,e){var{parser:r,funcName:n}=t;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:e[0]}},htmlBuilder(t,e){var r=e.havingStyle(e.style.sup()),n=Ae.wrapFragment(vr(t.label,r,e),e);return n.classes.push("cd-label-"+t.side),n.style.bottom=tt(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(t,e){var r=new Xe.MathNode("mrow",[nn(t.label,e)]);return r=new Xe.MathNode("mpadded",[r]),r.setAttribute("width","0"),t.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new Xe.MathNode("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});st({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(t,e){var{parser:r}=t;return{type:"cdlabelparent",mode:r.mode,fragment:e[0]}},htmlBuilder(t,e){var r=Ae.wrapFragment(vr(t.fragment,e),e);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(t,e){return new Xe.MathNode("mrow",[nn(t.fragment,e)])}});st({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(t,e){for(var{parser:r}=t,n=Jt(e[0],"ordgroup"),i=n.body,a="",o=0;o=1114111)throw new je("\\@char with invalid code point "+a);return u<=65535?h=String.fromCharCode(u):(u-=65536,h=String.fromCharCode((u>>10)+55296,(u&1023)+56320)),{type:"textord",mode:r.mode,text:h}}});Tz=s((t,e)=>{var r=Ti(t.body,e.withColor(t.color),!1);return Ae.makeFragment(r)},"htmlBuilder$8"),Ez=s((t,e)=>{var r=cs(t.body,e.withColor(t.color)),n=new Xe.MathNode("mstyle",r);return n.setAttribute("mathcolor",t.color),n},"mathmlBuilder$7");st({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(t,e){var{parser:r}=t,n=Jt(e[0],"color-token").color,i=e[1];return{type:"color",mode:r.mode,color:n,body:ni(i)}},htmlBuilder:Tz,mathmlBuilder:Ez});st({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(t,e){var{parser:r,breakOnTokenText:n}=t,i=Jt(e[0],"color-token").color;r.gullet.macros.set("\\current@color",i);var a=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:i,body:a}},htmlBuilder:Tz,mathmlBuilder:Ez});st({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(t,e,r){var{parser:n}=t,i=n.gullet.future().text==="["?n.parseSizeGroup(!0):null,a=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:a,size:i&&Jt(i,"size").value}},htmlBuilder(t,e){var r=Ae.makeSpan(["mspace"],[],e);return t.newLine&&(r.classes.push("newline"),t.size&&(r.style.marginTop=tt(Bn(t.size,e)))),r},mathmlBuilder(t,e){var r=new Xe.MathNode("mspace");return t.newLine&&(r.setAttribute("linebreak","newline"),t.size&&r.setAttribute("height",tt(Bn(t.size,e)))),r}});BE={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Cz=s(t=>{var e=t.text;if(/^(?:[\\{}$^_]|EOF)$/.test(e))throw new je("Expected a control sequence",t);return e},"checkControlSequence"),Cve=s(t=>{var e=t.gullet.popToken();return e.text==="="&&(e=t.gullet.popToken(),e.text===" "&&(e=t.gullet.popToken())),e},"getRHS"),Sz=s((t,e,r,n)=>{var i=t.gullet.macros.get(r.text);i==null&&(r.noexpand=!0,i={tokens:[r],numArgs:0,unexpandable:!t.gullet.isExpandable(r.text)}),t.gullet.macros.set(e,i,n)},"letCommand");st({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(t){var{parser:e,funcName:r}=t;e.consumeSpaces();var n=e.fetch();if(BE[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=BE[n.text]),Jt(e.parseFunction(),"internal");throw new je("Invalid token after macro prefix",n)}});st({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:r}=t,n=e.gullet.popToken(),i=n.text;if(/^(?:[\\{}$^_]|EOF)$/.test(i))throw new je("Expected a control sequence",n);for(var a=0,o,l=[[]];e.gullet.future().text!=="{";)if(n=e.gullet.popToken(),n.text==="#"){if(e.gullet.future().text==="{"){o=e.gullet.future(),l[a].push("{");break}if(n=e.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new je('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==a+1)throw new je('Argument number "'+n.text+'" out of order');a++,l.push([])}else{if(n.text==="EOF")throw new je("Expected a macro definition");l[a].push(n.text)}var{tokens:u}=e.gullet.consumeArg();return o&&u.unshift(o),(r==="\\edef"||r==="\\xdef")&&(u=e.gullet.expandTokens(u),u.reverse()),e.gullet.macros.set(i,{tokens:u,numArgs:a,delimiters:l},r===BE[r]),{type:"internal",mode:e.mode}}});st({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:r}=t,n=Cz(e.gullet.popToken());e.gullet.consumeSpaces();var i=Cve(e);return Sz(e,n,i,r==="\\\\globallet"),{type:"internal",mode:e.mode}}});st({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:r}=t,n=Cz(e.gullet.popToken()),i=e.gullet.popToken(),a=e.gullet.popToken();return Sz(e,n,a,r==="\\\\globalfuture"),e.gullet.pushToken(a),e.gullet.pushToken(i),{type:"internal",mode:e.mode}}});P1=s(function(e,r,n){var i=dn.math[e]&&dn.math[e].replace,a=UE(i||e,r,n);if(!a)throw new Error("Unsupported symbol "+e+" and font size "+r+".");return a},"getMetrics"),jE=s(function(e,r,n,i){var a=n.havingBaseStyle(r),o=Ae.makeSpan(i.concat(a.sizingClasses(n)),[e],n),l=a.sizeMultiplier/n.sizeMultiplier;return o.height*=l,o.depth*=l,o.maxFontSize=a.sizeMultiplier,o},"styleWrap"),_z=s(function(e,r,n){var i=r.havingBaseStyle(n),a=(1-r.sizeMultiplier/i.sizeMultiplier)*r.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=tt(a),e.height-=a,e.depth+=a},"centerSpan"),Sve=s(function(e,r,n,i,a,o){var l=Ae.makeSymbol(e,"Main-Regular",a,i),u=jE(l,r,i,o);return n&&_z(u,i,r),u},"makeSmallDelim"),_ve=s(function(e,r,n,i){return Ae.makeSymbol(e,"Size"+r+"-Regular",n,i)},"mathrmSize"),Az=s(function(e,r,n,i,a,o){var l=_ve(e,r,a,i),u=jE(Ae.makeSpan(["delimsizing","size"+r],[l],i),Nt.TEXT,i,o);return n&&_z(u,i,Nt.TEXT),u},"makeLargeDelim"),kE=s(function(e,r,n){var i;r==="Size1-Regular"?i="delim-size1":i="delim-size4";var a=Ae.makeSpan(["delimsizinginner",i],[Ae.makeSpan([],[Ae.makeSymbol(e,r,n)])]);return{type:"elem",elem:a}},"makeGlyphSpan"),wE=s(function(e,r,n){var i=zl["Size4-Regular"][e.charCodeAt(0)]?zl["Size4-Regular"][e.charCodeAt(0)][4]:zl["Size1-Regular"][e.charCodeAt(0)][4],a=new $l("inner",Oye(e,Math.round(1e3*r))),o=new Xo([a],{width:tt(i),height:tt(r),style:"width:"+tt(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),l=Ae.makeSvgSpan([],[o],n);return l.height=r,l.style.height=tt(r),l.style.width=tt(i),{type:"elem",elem:l}},"makeInner"),FE=.008,Rb={type:"kern",size:-1*FE},Ave=["|","\\lvert","\\rvert","\\vert"],Lve=["\\|","\\lVert","\\rVert","\\Vert"],Lz=s(function(e,r,n,i,a,o){var l,u,h,f,d="",p=0;l=h=f=e,u=null;var m="Size1-Regular";e==="\\uparrow"?h=f="\u23D0":e==="\\Uparrow"?h=f="\u2016":e==="\\downarrow"?l=h="\u23D0":e==="\\Downarrow"?l=h="\u2016":e==="\\updownarrow"?(l="\\uparrow",h="\u23D0",f="\\downarrow"):e==="\\Updownarrow"?(l="\\Uparrow",h="\u2016",f="\\Downarrow"):Mt.contains(Ave,e)?(h="\u2223",d="vert",p=333):Mt.contains(Lve,e)?(h="\u2225",d="doublevert",p=556):e==="["||e==="\\lbrack"?(l="\u23A1",h="\u23A2",f="\u23A3",m="Size4-Regular",d="lbrack",p=667):e==="]"||e==="\\rbrack"?(l="\u23A4",h="\u23A5",f="\u23A6",m="Size4-Regular",d="rbrack",p=667):e==="\\lfloor"||e==="\u230A"?(h=l="\u23A2",f="\u23A3",m="Size4-Regular",d="lfloor",p=667):e==="\\lceil"||e==="\u2308"?(l="\u23A1",h=f="\u23A2",m="Size4-Regular",d="lceil",p=667):e==="\\rfloor"||e==="\u230B"?(h=l="\u23A5",f="\u23A6",m="Size4-Regular",d="rfloor",p=667):e==="\\rceil"||e==="\u2309"?(l="\u23A4",h=f="\u23A5",m="Size4-Regular",d="rceil",p=667):e==="("||e==="\\lparen"?(l="\u239B",h="\u239C",f="\u239D",m="Size4-Regular",d="lparen",p=875):e===")"||e==="\\rparen"?(l="\u239E",h="\u239F",f="\u23A0",m="Size4-Regular",d="rparen",p=875):e==="\\{"||e==="\\lbrace"?(l="\u23A7",u="\u23A8",f="\u23A9",h="\u23AA",m="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(l="\u23AB",u="\u23AC",f="\u23AD",h="\u23AA",m="Size4-Regular"):e==="\\lgroup"||e==="\u27EE"?(l="\u23A7",f="\u23A9",h="\u23AA",m="Size4-Regular"):e==="\\rgroup"||e==="\u27EF"?(l="\u23AB",f="\u23AD",h="\u23AA",m="Size4-Regular"):e==="\\lmoustache"||e==="\u23B0"?(l="\u23A7",f="\u23AD",h="\u23AA",m="Size4-Regular"):(e==="\\rmoustache"||e==="\u23B1")&&(l="\u23AB",f="\u23A9",h="\u23AA",m="Size4-Regular");var g=P1(l,m,a),y=g.height+g.depth,v=P1(h,m,a),x=v.height+v.depth,b=P1(f,m,a),k=b.height+b.depth,A=0,w=1;if(u!==null){var T=P1(u,m,a);A=T.height+T.depth,w=2}var C=y+k+A,E=Math.max(0,Math.ceil((r-C)/(w*x))),S=C+E*w*x,R=i.fontMetrics().axisHeight;n&&(R*=i.sizeMultiplier);var D=S/2-R,L=[];if(d.length>0){var P=S-y-k,M=Math.round(S*1e3),F=Pye(d,Math.round(P*1e3)),I=new $l(d,F),O=(p/1e3).toFixed(3)+"em",z=(M/1e3).toFixed(3)+"em",N=new Xo([I],{width:O,height:z,viewBox:"0 0 "+p+" "+M}),U=Ae.makeSvgSpan([],[N],i);U.height=M/1e3,U.style.width=O,U.style.height=z,L.push({type:"elem",elem:U})}else{if(L.push(kE(f,m,a)),L.push(Rb),u===null){var $=S-y-k+2*FE;L.push(wE(h,$,i))}else{var W=(S-y-k-A)/2+2*FE;L.push(wE(h,W,i)),L.push(Rb),L.push(kE(u,m,a)),L.push(Rb),L.push(wE(h,W,i))}L.push(Rb),L.push(kE(l,m,a))}var ee=i.havingBaseStyle(Nt.TEXT),te=Ae.makeVList({positionType:"bottom",positionData:D,children:L},ee);return jE(Ae.makeSpan(["delimsizing","mult"],[te],ee),Nt.TEXT,i,o)},"makeStackedDelim"),TE=80,EE=.08,CE=s(function(e,r,n,i,a){var o=Nye(e,i,n),l=new $l(e,o),u=new Xo([l],{width:"400em",height:tt(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return Ae.makeSvgSpan(["hide-tail"],[u],a)},"sqrtSvg"),Dve=s(function(e,r){var n=r.havingBaseSizing(),i=Iz("\\surd",e*n.sizeMultiplier,Mz,n),a=n.sizeMultiplier,o=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),l,u=0,h=0,f=0,d;return i.type==="small"?(f=1e3+1e3*o+TE,e<1?a=1:e<1.4&&(a=.7),u=(1+o+EE)/a,h=(1+o)/a,l=CE("sqrtMain",u,f,o,r),l.style.minWidth="0.853em",d=.833/a):i.type==="large"?(f=(1e3+TE)*B1[i.size],h=(B1[i.size]+o)/a,u=(B1[i.size]+o+EE)/a,l=CE("sqrtSize"+i.size,u,f,o,r),l.style.minWidth="1.02em",d=1/a):(u=e+o+EE,h=e+o,f=Math.floor(1e3*e+o)+TE,l=CE("sqrtTall",u,f,o,r),l.style.minWidth="0.742em",d=1.056),l.height=h,l.style.height=tt(u),{span:l,advanceWidth:d,ruleWidth:(r.fontMetrics().sqrtRuleThickness+o)*a}},"makeSqrtImage"),Dz=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],Rve=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],Rz=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],B1=[0,1.2,1.8,2.4,3],Mve=s(function(e,r,n,i,a){if(e==="<"||e==="\\lt"||e==="\u27E8"?e="\\langle":(e===">"||e==="\\gt"||e==="\u27E9")&&(e="\\rangle"),Mt.contains(Dz,e)||Mt.contains(Rz,e))return Az(e,r,!1,n,i,a);if(Mt.contains(Rve,e))return Lz(e,B1[r],!1,n,i,a);throw new je("Illegal delimiter: '"+e+"'")},"makeSizedDelim"),Ive=[{type:"small",style:Nt.SCRIPTSCRIPT},{type:"small",style:Nt.SCRIPT},{type:"small",style:Nt.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Nve=[{type:"small",style:Nt.SCRIPTSCRIPT},{type:"small",style:Nt.SCRIPT},{type:"small",style:Nt.TEXT},{type:"stack"}],Mz=[{type:"small",style:Nt.SCRIPTSCRIPT},{type:"small",style:Nt.SCRIPT},{type:"small",style:Nt.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Ove=s(function(e){if(e.type==="small")return"Main-Regular";if(e.type==="large")return"Size"+e.size+"-Regular";if(e.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},"delimTypeToFont"),Iz=s(function(e,r,n,i){for(var a=Math.min(2,3-i.style.size),o=a;or)return n[o]}return n[n.length-1]},"traverseSequence"),Nz=s(function(e,r,n,i,a,o){e==="<"||e==="\\lt"||e==="\u27E8"?e="\\langle":(e===">"||e==="\\gt"||e==="\u27E9")&&(e="\\rangle");var l;Mt.contains(Rz,e)?l=Ive:Mt.contains(Dz,e)?l=Mz:l=Nve;var u=Iz(e,r,l,i);return u.type==="small"?Sve(e,u.style,n,i,a,o):u.type==="large"?Az(e,u.size,n,i,a,o):Lz(e,r,n,i,a,o)},"makeCustomSizedDelim"),Pve=s(function(e,r,n,i,a,o){var l=i.fontMetrics().axisHeight*i.sizeMultiplier,u=901,h=5/i.fontMetrics().ptPerEm,f=Math.max(r-l,n+l),d=Math.max(f/500*u,2*f-h);return Nz(e,d,!0,i,a,o)},"makeLeftRightDelim"),Kc={sqrtImage:Dve,sizedDelim:Mve,sizeToMaxHeight:B1,customSizedDelim:Nz,leftRightDelim:Pve},zF={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Bve=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27E8","\\rangle","\u27E9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];s(Yb,"checkDelimiter");st({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:s((t,e)=>{var r=Yb(e[0],t);return{type:"delimsizing",mode:t.parser.mode,size:zF[t.funcName].size,mclass:zF[t.funcName].mclass,delim:r.text}},"handler"),htmlBuilder:s((t,e)=>t.delim==="."?Ae.makeSpan([t.mclass]):Kc.sizedDelim(t.delim,t.size,e,t.mode,[t.mclass]),"htmlBuilder"),mathmlBuilder:s(t=>{var e=[];t.delim!=="."&&e.push(yo(t.delim,t.mode));var r=new Xe.MathNode("mo",e);t.mclass==="mopen"||t.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=tt(Kc.sizeToMaxHeight[t.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r},"mathmlBuilder")});s($F,"assertParsed");st({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:s((t,e)=>{var r=t.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new je("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:t.parser.mode,delim:Yb(e[0],t).text,color:r}},"handler")});st({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:s((t,e)=>{var r=Yb(e[0],t),n=t.parser;++n.leftrightDepth;var i=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var a=Jt(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:i,left:r.text,right:a.delim,rightColor:a.color}},"handler"),htmlBuilder:s((t,e)=>{$F(t);for(var r=Ti(t.body,e,!0,["mopen","mclose"]),n=0,i=0,a=!1,o=0;o{$F(t);var r=cs(t.body,e);if(t.left!=="."){var n=new Xe.MathNode("mo",[yo(t.left,t.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(t.right!=="."){var i=new Xe.MathNode("mo",[yo(t.right,t.mode)]);i.setAttribute("fence","true"),t.rightColor&&i.setAttribute("mathcolor",t.rightColor),r.push(i)}return WE(r)},"mathmlBuilder")});st({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:s((t,e)=>{var r=Yb(e[0],t);if(!t.parser.leftrightDepth)throw new je("\\middle without preceding \\left",r);return{type:"middle",mode:t.parser.mode,delim:r.text}},"handler"),htmlBuilder:s((t,e)=>{var r;if(t.delim===".")r=V1(e,[]);else{r=Kc.sizedDelim(t.delim,1,e,t.mode,[]);var n={delim:t.delim,options:e};r.isMiddle=n}return r},"htmlBuilder"),mathmlBuilder:s((t,e)=>{var r=t.delim==="\\vert"||t.delim==="|"?yo("|","text"):yo(t.delim,t.mode),n=new Xe.MathNode("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n},"mathmlBuilder")});KE=s((t,e)=>{var r=Ae.wrapFragment(vr(t.body,e),e),n=t.label.slice(1),i=e.sizeMultiplier,a,o=0,l=Mt.isCharacterBox(t.body);if(n==="sout")a=Ae.makeSpan(["stretchy","sout"]),a.height=e.fontMetrics().defaultRuleThickness/i,o=-.5*e.fontMetrics().xHeight;else if(n==="phase"){var u=Bn({number:.6,unit:"pt"},e),h=Bn({number:.35,unit:"ex"},e),f=e.havingBaseSizing();i=i/f.sizeMultiplier;var d=r.height+r.depth+u+h;r.style.paddingLeft=tt(d/2+u);var p=Math.floor(1e3*d*i),m=Mye(p),g=new Xo([new $l("phase",m)],{width:"400em",height:tt(p/1e3),viewBox:"0 0 400000 "+p,preserveAspectRatio:"xMinYMin slice"});a=Ae.makeSvgSpan(["hide-tail"],[g],e),a.style.height=tt(d),o=r.depth+u+h}else{/cancel/.test(n)?l||r.classes.push("cancel-pad"):n==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var y=0,v=0,x=0;/box/.test(n)?(x=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),y=e.fontMetrics().fboxsep+(n==="colorbox"?0:x),v=y):n==="angl"?(x=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),y=4*x,v=Math.max(0,.25-r.depth)):(y=l?.2:0,v=y),a=Zc.encloseSpan(r,n,y,v,e),/fbox|boxed|fcolorbox/.test(n)?(a.style.borderStyle="solid",a.style.borderWidth=tt(x)):n==="angl"&&x!==.049&&(a.style.borderTopWidth=tt(x),a.style.borderRightWidth=tt(x)),o=r.depth+v,t.backgroundColor&&(a.style.backgroundColor=t.backgroundColor,t.borderColor&&(a.style.borderColor=t.borderColor))}var b;if(t.backgroundColor)b=Ae.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:o},{type:"elem",elem:r,shift:0}]},e);else{var k=/cancel|phase/.test(n)?["svg-align"]:[];b=Ae.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:a,shift:o,wrapperClasses:k}]},e)}return/cancel/.test(n)&&(b.height=r.height,b.depth=r.depth),/cancel/.test(n)&&!l?Ae.makeSpan(["mord","cancel-lap"],[b],e):Ae.makeSpan(["mord"],[b],e)},"htmlBuilder$7"),QE=s((t,e)=>{var r=0,n=new Xe.MathNode(t.label.indexOf("colorbox")>-1?"mpadded":"menclose",[nn(t.body,e)]);switch(t.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),t.label==="\\fcolorbox"){var i=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);n.setAttribute("style","border: "+i+"em solid "+String(t.borderColor))}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return t.backgroundColor&&n.setAttribute("mathbackground",t.backgroundColor),n},"mathmlBuilder$6");st({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(t,e,r){var{parser:n,funcName:i}=t,a=Jt(e[0],"color-token").color,o=e[1];return{type:"enclose",mode:n.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:KE,mathmlBuilder:QE});st({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(t,e,r){var{parser:n,funcName:i}=t,a=Jt(e[0],"color-token").color,o=Jt(e[1],"color-token").color,l=e[2];return{type:"enclose",mode:n.mode,label:i,backgroundColor:o,borderColor:a,body:l}},htmlBuilder:KE,mathmlBuilder:QE});st({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(t,e){var{parser:r}=t;return{type:"enclose",mode:r.mode,label:"\\fbox",body:e[0]}}});st({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(t,e){var{parser:r,funcName:n}=t,i=e[0];return{type:"enclose",mode:r.mode,label:n,body:i}},htmlBuilder:KE,mathmlBuilder:QE});st({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(t,e){var{parser:r}=t;return{type:"enclose",mode:r.mode,label:"\\angl",body:e[0]}}});Oz={};s(Gl,"defineEnvironment");Pz={};s(J,"defineMacro");s(GF,"getHLines");Xb=s(t=>{var e=t.parser.settings;if(!e.displayMode)throw new je("{"+t.envName+"} can be used only in display mode.")},"validateAmsEnvironmentContext");s(ZE,"getAutoTag");s(ch,"parseArray");s(JE,"dCellStyle");Vl=s(function(e,r){var n,i,a=e.body.length,o=e.hLinesBeforeRow,l=0,u=new Array(a),h=[],f=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),d=1/r.fontMetrics().ptPerEm,p=5*d;if(e.colSeparationType&&e.colSeparationType==="small"){var m=r.havingStyle(Nt.SCRIPT).sizeMultiplier;p=.2778*(m/r.sizeMultiplier)}var g=e.colSeparationType==="CD"?Bn({number:3,unit:"ex"},r):12*d,y=3*d,v=e.arraystretch*g,x=.7*v,b=.3*v,k=0;function A(Re){for(var Pe=0;Pe0&&(k+=.25),h.push({pos:k,isDashed:Re[Pe]})}for(s(A,"setHLinePos"),A(o[0]),n=0;n0&&(D+=b,CRe))for(n=0;n=l)){var fe=void 0;(i>0||e.hskipBeforeAndAfter)&&(fe=Mt.deflt(W.pregap,p),fe!==0&&(F=Ae.makeSpan(["arraycolsep"],[]),F.style.width=tt(fe),M.push(F)));var ne=[];for(n=0;n0){for(var re=Ae.makeLineSpan("hline",r,f),ie=Ae.makeLineSpan("hdashline",r,f),ye=[{type:"elem",elem:u,shift:0}];h.length>0;){var j=h.pop(),De=j.pos-L;j.isDashed?ye.push({type:"elem",elem:ie,shift:De}):ye.push({type:"elem",elem:re,shift:De})}u=Ae.makeVList({positionType:"individualShift",children:ye},r)}if(O.length===0)return Ae.makeSpan(["mord"],[u],r);var oe=Ae.makeVList({positionType:"individualShift",children:O},r);return oe=Ae.makeSpan(["tag"],[oe],r),Ae.makeFragment([u,oe])},"htmlBuilder"),Fve={c:"center ",l:"left ",r:"right "},Ul=s(function(e,r){for(var n=[],i=new Xe.MathNode("mtd",[],["mtr-glue"]),a=new Xe.MathNode("mtd",[],["mml-eqn-num"]),o=0;o0){var g=e.cols,y="",v=!1,x=0,b=g.length;g[0].type==="separator"&&(p+="top ",x=1),g[g.length-1].type==="separator"&&(p+="bottom ",b-=1);for(var k=x;k0?"left ":"",p+=E[E.length-1].length>0?"right ":"";for(var S=1;S-1?"alignat":"align",a=e.envName==="split",o=ch(e.parser,{cols:n,addJot:!0,autoTag:a?void 0:ZE(e.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:a?2:void 0,leqno:e.parser.settings.leqno},"display"),l,u=0,h={type:"ordgroup",mode:e.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){for(var f="",d=0;d0&&m&&(v=1),n[g]={type:"align",align:y,pregap:v,postgap:0}}return o.colSeparationType=m?"align":"alignat",o},"alignedHandler");Gl({type:"array",names:["array","darray"],props:{numArgs:1},handler(t,e){var r=Wb(e[0]),n=r?[e[0]]:Jt(e[0],"ordgroup").body,i=n.map(function(o){var l=YE(o),u=l.text;if("lcr".indexOf(u)!==-1)return{type:"align",align:u};if(u==="|")return{type:"separator",separator:"|"};if(u===":")return{type:"separator",separator:":"};throw new je("Unknown column alignment: "+u,o)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return ch(t.parser,a,JE(t.envName))},htmlBuilder:Vl,mathmlBuilder:Ul});Gl({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(t){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[t.envName.replace("*","")],r="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(t.envName.charAt(t.envName.length-1)==="*"){var i=t.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),r=i.fetch().text,"lcr".indexOf(r)===-1)throw new je("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),n.cols=[{type:"align",align:r}]}}var a=ch(t.parser,n,JE(t.envName)),o=Math.max(0,...a.body.map(l=>l.length));return a.cols=new Array(o).fill({type:"align",align:r}),e?{type:"leftright",mode:t.mode,body:[a],left:e[0],right:e[1],rightColor:void 0}:a},htmlBuilder:Vl,mathmlBuilder:Ul});Gl({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(t){var e={arraystretch:.5},r=ch(t.parser,e,"script");return r.colSeparationType="small",r},htmlBuilder:Vl,mathmlBuilder:Ul});Gl({type:"array",names:["subarray"],props:{numArgs:1},handler(t,e){var r=Wb(e[0]),n=r?[e[0]]:Jt(e[0],"ordgroup").body,i=n.map(function(o){var l=YE(o),u=l.text;if("lc".indexOf(u)!==-1)return{type:"align",align:u};throw new je("Unknown column alignment: "+u,o)});if(i.length>1)throw new je("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if(a=ch(t.parser,a,"script"),a.body.length>0&&a.body[0].length>1)throw new je("{subarray} can contain only one column");return a},htmlBuilder:Vl,mathmlBuilder:Ul});Gl({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(t){var e={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=ch(t.parser,e,JE(t.envName));return{type:"leftright",mode:t.mode,body:[r],left:t.envName.indexOf("r")>-1?".":"\\{",right:t.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:Vl,mathmlBuilder:Ul});Gl({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Bz,htmlBuilder:Vl,mathmlBuilder:Ul});Gl({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(t){Mt.contains(["gather","gather*"],t.envName)&&Xb(t);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:ZE(t.envName),emptySingleRow:!0,leqno:t.parser.settings.leqno};return ch(t.parser,e,"display")},htmlBuilder:Vl,mathmlBuilder:Ul});Gl({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Bz,htmlBuilder:Vl,mathmlBuilder:Ul});Gl({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(t){Xb(t);var e={autoTag:ZE(t.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:t.parser.settings.leqno};return ch(t.parser,e,"display")},htmlBuilder:Vl,mathmlBuilder:Ul});Gl({type:"array",names:["CD"],props:{numArgs:0},handler(t){return Xb(t),Eve(t.parser)},htmlBuilder:Vl,mathmlBuilder:Ul});J("\\nonumber","\\gdef\\@eqnsw{0}");J("\\notag","\\nonumber");st({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(t,e){throw new je(t.funcName+" valid only within array environment")}});VF=Oz;st({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(t,e){var{parser:r,funcName:n}=t,i=e[0];if(i.type!=="ordgroup")throw new je("Invalid environment name",i);for(var a="",o=0;o{var r=t.font,n=e.withFont(r);return vr(t.body,n)},"htmlBuilder$5"),zz=s((t,e)=>{var r=t.font,n=e.withFont(r);return nn(t.body,n)},"mathmlBuilder$4"),UF={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};st({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:s((t,e)=>{var{parser:r,funcName:n}=t,i=$b(e[0]),a=n;return a in UF&&(a=UF[a]),{type:"font",mode:r.mode,font:a.slice(1),body:i}},"handler"),htmlBuilder:Fz,mathmlBuilder:zz});st({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:s((t,e)=>{var{parser:r}=t,n=e[0],i=Mt.isCharacterBox(n);return{type:"mclass",mode:r.mode,mclass:Hb(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:i}},"handler")});st({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:s((t,e)=>{var{parser:r,funcName:n,breakOnTokenText:i}=t,{mode:a}=r,o=r.parseExpression(!0,i),l="math"+n.slice(1);return{type:"font",mode:a,font:l,body:{type:"ordgroup",mode:r.mode,body:o}}},"handler"),htmlBuilder:Fz,mathmlBuilder:zz});$z=s((t,e)=>{var r=e;return t==="display"?r=r.id>=Nt.SCRIPT.id?r.text():Nt.DISPLAY:t==="text"&&r.size===Nt.DISPLAY.size?r=Nt.TEXT:t==="script"?r=Nt.SCRIPT:t==="scriptscript"&&(r=Nt.SCRIPTSCRIPT),r},"adjustStyle"),eC=s((t,e)=>{var r=$z(t.size,e.style),n=r.fracNum(),i=r.fracDen(),a;a=e.havingStyle(n);var o=vr(t.numer,a,e);if(t.continued){var l=8.5/e.fontMetrics().ptPerEm,u=3.5/e.fontMetrics().ptPerEm;o.height=o.height0?g=3*p:g=7*p,y=e.fontMetrics().denom1):(d>0?(m=e.fontMetrics().num2,g=p):(m=e.fontMetrics().num3,g=3*p),y=e.fontMetrics().denom2);var v;if(f){var b=e.fontMetrics().axisHeight;m-o.depth-(b+.5*d){var r=new Xe.MathNode("mfrac",[nn(t.numer,e),nn(t.denom,e)]);if(!t.hasBarLine)r.setAttribute("linethickness","0px");else if(t.barSize){var n=Bn(t.barSize,e);r.setAttribute("linethickness",tt(n))}var i=$z(t.size,e.style);if(i.size!==e.style.size){r=new Xe.MathNode("mstyle",[r]);var a=i.size===Nt.DISPLAY.size?"true":"false";r.setAttribute("displaystyle",a),r.setAttribute("scriptlevel","0")}if(t.leftDelim!=null||t.rightDelim!=null){var o=[];if(t.leftDelim!=null){var l=new Xe.MathNode("mo",[new Xe.TextNode(t.leftDelim.replace("\\",""))]);l.setAttribute("fence","true"),o.push(l)}if(o.push(r),t.rightDelim!=null){var u=new Xe.MathNode("mo",[new Xe.TextNode(t.rightDelim.replace("\\",""))]);u.setAttribute("fence","true"),o.push(u)}return WE(o)}return r},"mathmlBuilder$3");st({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:s((t,e)=>{var{parser:r,funcName:n}=t,i=e[0],a=e[1],o,l=null,u=null,h="auto";switch(n){case"\\dfrac":case"\\frac":case"\\tfrac":o=!0;break;case"\\\\atopfrac":o=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":o=!1,l="(",u=")";break;case"\\\\bracefrac":o=!1,l="\\{",u="\\}";break;case"\\\\brackfrac":o=!1,l="[",u="]";break;default:throw new Error("Unrecognized genfrac command")}switch(n){case"\\dfrac":case"\\dbinom":h="display";break;case"\\tfrac":case"\\tbinom":h="text";break}return{type:"genfrac",mode:r.mode,continued:!1,numer:i,denom:a,hasBarLine:o,leftDelim:l,rightDelim:u,size:h,barSize:null}},"handler"),htmlBuilder:eC,mathmlBuilder:tC});st({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:s((t,e)=>{var{parser:r,funcName:n}=t,i=e[0],a=e[1];return{type:"genfrac",mode:r.mode,continued:!0,numer:i,denom:a,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}},"handler")});st({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(t){var{parser:e,funcName:r,token:n}=t,i;switch(r){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:i,token:n}}});qF=["display","text","script","scriptscript"],WF=s(function(e){var r=null;return e.length>0&&(r=e,r=r==="."?null:r),r},"delimFromValue");st({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(t,e){var{parser:r}=t,n=e[4],i=e[5],a=$b(e[0]),o=a.type==="atom"&&a.family==="open"?WF(a.text):null,l=$b(e[1]),u=l.type==="atom"&&l.family==="close"?WF(l.text):null,h=Jt(e[2],"size"),f,d=null;h.isBlank?f=!0:(d=h.value,f=d.number>0);var p="auto",m=e[3];if(m.type==="ordgroup"){if(m.body.length>0){var g=Jt(m.body[0],"textord");p=qF[Number(g.text)]}}else m=Jt(m,"textord"),p=qF[Number(m.text)];return{type:"genfrac",mode:r.mode,numer:n,denom:i,continued:!1,hasBarLine:f,barSize:d,leftDelim:o,rightDelim:u,size:p}},htmlBuilder:eC,mathmlBuilder:tC});st({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(t,e){var{parser:r,funcName:n,token:i}=t;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:Jt(e[0],"size").value,token:i}}});st({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:s((t,e)=>{var{parser:r,funcName:n}=t,i=e[0],a=yye(Jt(e[1],"infix").size),o=e[2],l=a.number>0;return{type:"genfrac",mode:r.mode,numer:i,denom:o,continued:!1,hasBarLine:l,barSize:a,leftDelim:null,rightDelim:null,size:"auto"}},"handler"),htmlBuilder:eC,mathmlBuilder:tC});Gz=s((t,e)=>{var r=e.style,n,i;t.type==="supsub"?(n=t.sup?vr(t.sup,e.havingStyle(r.sup()),e):vr(t.sub,e.havingStyle(r.sub()),e),i=Jt(t.base,"horizBrace")):i=Jt(t,"horizBrace");var a=vr(i.base,e.havingBaseStyle(Nt.DISPLAY)),o=Zc.svgSpan(i,e),l;if(i.isOver?(l=Ae.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:o}]},e),l.children[0].children[0].children[1].classes.push("svg-align")):(l=Ae.makeVList({positionType:"bottom",positionData:a.depth+.1+o.height,children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:a}]},e),l.children[0].children[0].children[0].classes.push("svg-align")),n){var u=Ae.makeSpan(["mord",i.isOver?"mover":"munder"],[l],e);i.isOver?l=Ae.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:u},{type:"kern",size:.2},{type:"elem",elem:n}]},e):l=Ae.makeVList({positionType:"bottom",positionData:u.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:u}]},e)}return Ae.makeSpan(["mord",i.isOver?"mover":"munder"],[l],e)},"htmlBuilder$3"),zve=s((t,e)=>{var r=Zc.mathMLnode(t.label);return new Xe.MathNode(t.isOver?"mover":"munder",[nn(t.base,e),r])},"mathmlBuilder$2");st({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(t,e){var{parser:r,funcName:n}=t;return{type:"horizBrace",mode:r.mode,label:n,isOver:/^\\over/.test(n),base:e[0]}},htmlBuilder:Gz,mathmlBuilder:zve});st({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:s((t,e)=>{var{parser:r}=t,n=e[1],i=Jt(e[0],"url").url;return r.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:r.mode,href:i,body:ni(n)}:r.formatUnsupportedCmd("\\href")},"handler"),htmlBuilder:s((t,e)=>{var r=Ti(t.body,e,!1);return Ae.makeAnchor(t.href,[],r,e)},"htmlBuilder"),mathmlBuilder:s((t,e)=>{var r=lh(t.body,e);return r instanceof os||(r=new os("mrow",[r])),r.setAttribute("href",t.href),r},"mathmlBuilder")});st({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:s((t,e)=>{var{parser:r}=t,n=Jt(e[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var i=[],a=0;a{var{parser:r,funcName:n,token:i}=t,a=Jt(e[0],"raw").string,o=e[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var l,u={};switch(n){case"\\htmlClass":u.class=a,l={command:"\\htmlClass",class:a};break;case"\\htmlId":u.id=a,l={command:"\\htmlId",id:a};break;case"\\htmlStyle":u.style=a,l={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var h=a.split(","),f=0;f{var r=Ti(t.body,e,!1),n=["enclosing"];t.attributes.class&&n.push(...t.attributes.class.trim().split(/\s+/));var i=Ae.makeSpan(n,r,e);for(var a in t.attributes)a!=="class"&&t.attributes.hasOwnProperty(a)&&i.setAttribute(a,t.attributes[a]);return i},"htmlBuilder"),mathmlBuilder:s((t,e)=>lh(t.body,e),"mathmlBuilder")});st({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:s((t,e)=>{var{parser:r}=t;return{type:"htmlmathml",mode:r.mode,html:ni(e[0]),mathml:ni(e[1])}},"handler"),htmlBuilder:s((t,e)=>{var r=Ti(t.html,e,!1);return Ae.makeFragment(r)},"htmlBuilder"),mathmlBuilder:s((t,e)=>lh(t.mathml,e),"mathmlBuilder")});SE=s(function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!r)throw new je("Invalid size: '"+e+"' in \\includegraphics");var n={number:+(r[1]+r[2]),unit:r[3]};if(!sz(n))throw new je("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n},"sizeData");st({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:s((t,e,r)=>{var{parser:n}=t,i={number:0,unit:"em"},a={number:.9,unit:"em"},o={number:0,unit:"em"},l="";if(r[0])for(var u=Jt(r[0],"raw").string,h=u.split(","),f=0;f{var r=Bn(t.height,e),n=0;t.totalheight.number>0&&(n=Bn(t.totalheight,e)-r);var i=0;t.width.number>0&&(i=Bn(t.width,e));var a={height:tt(r+n)};i>0&&(a.width=tt(i)),n>0&&(a.verticalAlign=tt(-n));var o=new ME(t.src,t.alt,a);return o.height=r,o.depth=n,o},"htmlBuilder"),mathmlBuilder:s((t,e)=>{var r=new Xe.MathNode("mglyph",[]);r.setAttribute("alt",t.alt);var n=Bn(t.height,e),i=0;if(t.totalheight.number>0&&(i=Bn(t.totalheight,e)-n,r.setAttribute("valign",tt(-i))),r.setAttribute("height",tt(n+i)),t.width.number>0){var a=Bn(t.width,e);r.setAttribute("width",tt(a))}return r.setAttribute("src",t.src),r},"mathmlBuilder")});st({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(t,e){var{parser:r,funcName:n}=t,i=Jt(e[0],"size");if(r.settings.strict){var a=n[1]==="m",o=i.value.unit==="mu";a?(o||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+i.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):o&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:i.value}},htmlBuilder(t,e){return Ae.makeGlue(t.dimension,e)},mathmlBuilder(t,e){var r=Bn(t.dimension,e);return new Xe.SpaceNode(r)}});st({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:s((t,e)=>{var{parser:r,funcName:n}=t,i=e[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:i}},"handler"),htmlBuilder:s((t,e)=>{var r;t.alignment==="clap"?(r=Ae.makeSpan([],[vr(t.body,e)]),r=Ae.makeSpan(["inner"],[r],e)):r=Ae.makeSpan(["inner"],[vr(t.body,e)]);var n=Ae.makeSpan(["fix"],[]),i=Ae.makeSpan([t.alignment],[r,n],e),a=Ae.makeSpan(["strut"]);return a.style.height=tt(i.height+i.depth),i.depth&&(a.style.verticalAlign=tt(-i.depth)),i.children.unshift(a),i=Ae.makeSpan(["thinbox"],[i],e),Ae.makeSpan(["mord","vbox"],[i],e)},"htmlBuilder"),mathmlBuilder:s((t,e)=>{var r=new Xe.MathNode("mpadded",[nn(t.body,e)]);if(t.alignment!=="rlap"){var n=t.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r},"mathmlBuilder")});st({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(t,e){var{funcName:r,parser:n}=t,i=n.mode;n.switchMode("math");var a=r==="\\("?"\\)":"$",o=n.parseExpression(!1,a);return n.expect(a),n.switchMode(i),{type:"styling",mode:n.mode,style:"text",body:o}}});st({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(t,e){throw new je("Mismatched "+t.funcName)}});HF=s((t,e)=>{switch(e.style.size){case Nt.DISPLAY.size:return t.display;case Nt.TEXT.size:return t.text;case Nt.SCRIPT.size:return t.script;case Nt.SCRIPTSCRIPT.size:return t.scriptscript;default:return t.text}},"chooseMathStyle");st({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:s((t,e)=>{var{parser:r}=t;return{type:"mathchoice",mode:r.mode,display:ni(e[0]),text:ni(e[1]),script:ni(e[2]),scriptscript:ni(e[3])}},"handler"),htmlBuilder:s((t,e)=>{var r=HF(t,e),n=Ti(r,e,!1);return Ae.makeFragment(n)},"htmlBuilder"),mathmlBuilder:s((t,e)=>{var r=HF(t,e);return lh(r,e)},"mathmlBuilder")});Vz=s((t,e,r,n,i,a,o)=>{t=Ae.makeSpan([],[t]);var l=r&&Mt.isCharacterBox(r),u,h;if(e){var f=vr(e,n.havingStyle(i.sup()),n);h={elem:f,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-f.depth)}}if(r){var d=vr(r,n.havingStyle(i.sub()),n);u={elem:d,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-d.height)}}var p;if(h&&u){var m=n.fontMetrics().bigOpSpacing5+u.elem.height+u.elem.depth+u.kern+t.depth+o;p=Ae.makeVList({positionType:"bottom",positionData:m,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:tt(-a)},{type:"kern",size:u.kern},{type:"elem",elem:t},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:tt(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else if(u){var g=t.height-o;p=Ae.makeVList({positionType:"top",positionData:g,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:tt(-a)},{type:"kern",size:u.kern},{type:"elem",elem:t}]},n)}else if(h){var y=t.depth+o;p=Ae.makeVList({positionType:"bottom",positionData:y,children:[{type:"elem",elem:t},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:tt(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else return t;var v=[p];if(u&&a!==0&&!l){var x=Ae.makeSpan(["mspace"],[],n);x.style.marginRight=tt(a),v.unshift(x)}return Ae.makeSpan(["mop","op-limits"],v,n)},"assembleSupSub"),Uz=["\\smallint"],np=s((t,e)=>{var r,n,i=!1,a;t.type==="supsub"?(r=t.sup,n=t.sub,a=Jt(t.base,"op"),i=!0):a=Jt(t,"op");var o=e.style,l=!1;o.size===Nt.DISPLAY.size&&a.symbol&&!Mt.contains(Uz,a.name)&&(l=!0);var u;if(a.symbol){var h=l?"Size2-Regular":"Size1-Regular",f="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(f=a.name.slice(1),a.name=f==="oiint"?"\\iint":"\\iiint"),u=Ae.makeSymbol(a.name,h,"math",e,["mop","op-symbol",l?"large-op":"small-op"]),f.length>0){var d=u.italic,p=Ae.staticSvg(f+"Size"+(l?"2":"1"),e);u=Ae.makeVList({positionType:"individualShift",children:[{type:"elem",elem:u,shift:0},{type:"elem",elem:p,shift:l?.08:0}]},e),a.name="\\"+f,u.classes.unshift("mop"),u.italic=d}}else if(a.body){var m=Ti(a.body,e,!0);m.length===1&&m[0]instanceof ls?(u=m[0],u.classes[0]="mop"):u=Ae.makeSpan(["mop"],m,e)}else{for(var g=[],y=1;y{var r;if(t.symbol)r=new os("mo",[yo(t.name,t.mode)]),Mt.contains(Uz,t.name)&&r.setAttribute("largeop","false");else if(t.body)r=new os("mo",cs(t.body,e));else{r=new os("mi",[new Of(t.name.slice(1))]);var n=new os("mo",[yo("\u2061","text")]);t.parentIsSupSub?r=new os("mrow",[r,n]):r=yz([r,n])}return r},"mathmlBuilder$1"),$ve={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};st({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220F","\u2210","\u2211","\u22C0","\u22C1","\u22C2","\u22C3","\u2A00","\u2A01","\u2A02","\u2A04","\u2A06"],props:{numArgs:0},handler:s((t,e)=>{var{parser:r,funcName:n}=t,i=n;return i.length===1&&(i=$ve[i]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},"handler"),htmlBuilder:np,mathmlBuilder:U1});st({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:s((t,e)=>{var{parser:r}=t,n=e[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:ni(n)}},"handler"),htmlBuilder:np,mathmlBuilder:U1});Gve={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};st({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(t){var{parser:e,funcName:r}=t;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:np,mathmlBuilder:U1});st({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(t){var{parser:e,funcName:r}=t;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:np,mathmlBuilder:U1});st({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler(t){var{parser:e,funcName:r}=t,n=r;return n.length===1&&(n=Gve[n]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:np,mathmlBuilder:U1});qz=s((t,e)=>{var r,n,i=!1,a;t.type==="supsub"?(r=t.sup,n=t.sub,a=Jt(t.base,"operatorname"),i=!0):a=Jt(t,"operatorname");var o;if(a.body.length>0){for(var l=a.body.map(d=>{var p=d.text;return typeof p=="string"?{type:"textord",mode:d.mode,text:p}:d}),u=Ti(l,e.withFont("mathrm"),!0),h=0;h{for(var r=cs(t.body,e.withFont("mathrm")),n=!0,i=0;if.toText()).join("");r=[new Xe.TextNode(l)]}var u=new Xe.MathNode("mi",r);u.setAttribute("mathvariant","normal");var h=new Xe.MathNode("mo",[yo("\u2061","text")]);return t.parentIsSupSub?new Xe.MathNode("mrow",[u,h]):Xe.newDocumentFragment([u,h])},"mathmlBuilder");st({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:s((t,e)=>{var{parser:r,funcName:n}=t,i=e[0];return{type:"operatorname",mode:r.mode,body:ni(i),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},"handler"),htmlBuilder:qz,mathmlBuilder:Vve});J("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Ff({type:"ordgroup",htmlBuilder(t,e){return t.semisimple?Ae.makeFragment(Ti(t.body,e,!1)):Ae.makeSpan(["mord"],Ti(t.body,e,!0),e)},mathmlBuilder(t,e){return lh(t.body,e,!0)}});st({type:"overline",names:["\\overline"],props:{numArgs:1},handler(t,e){var{parser:r}=t,n=e[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(t,e){var r=vr(t.body,e.havingCrampedStyle()),n=Ae.makeLineSpan("overline-line",e),i=e.fontMetrics().defaultRuleThickness,a=Ae.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n},{type:"kern",size:i}]},e);return Ae.makeSpan(["mord","overline"],[a],e)},mathmlBuilder(t,e){var r=new Xe.MathNode("mo",[new Xe.TextNode("\u203E")]);r.setAttribute("stretchy","true");var n=new Xe.MathNode("mover",[nn(t.body,e),r]);return n.setAttribute("accent","true"),n}});st({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:s((t,e)=>{var{parser:r}=t,n=e[0];return{type:"phantom",mode:r.mode,body:ni(n)}},"handler"),htmlBuilder:s((t,e)=>{var r=Ti(t.body,e.withPhantom(),!1);return Ae.makeFragment(r)},"htmlBuilder"),mathmlBuilder:s((t,e)=>{var r=cs(t.body,e);return new Xe.MathNode("mphantom",r)},"mathmlBuilder")});st({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:s((t,e)=>{var{parser:r}=t,n=e[0];return{type:"hphantom",mode:r.mode,body:n}},"handler"),htmlBuilder:s((t,e)=>{var r=Ae.makeSpan([],[vr(t.body,e.withPhantom())]);if(r.height=0,r.depth=0,r.children)for(var n=0;n{var r=cs(ni(t.body),e),n=new Xe.MathNode("mphantom",r),i=new Xe.MathNode("mpadded",[n]);return i.setAttribute("height","0px"),i.setAttribute("depth","0px"),i},"mathmlBuilder")});st({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:s((t,e)=>{var{parser:r}=t,n=e[0];return{type:"vphantom",mode:r.mode,body:n}},"handler"),htmlBuilder:s((t,e)=>{var r=Ae.makeSpan(["inner"],[vr(t.body,e.withPhantom())]),n=Ae.makeSpan(["fix"],[]);return Ae.makeSpan(["mord","rlap"],[r,n],e)},"htmlBuilder"),mathmlBuilder:s((t,e)=>{var r=cs(ni(t.body),e),n=new Xe.MathNode("mphantom",r),i=new Xe.MathNode("mpadded",[n]);return i.setAttribute("width","0px"),i},"mathmlBuilder")});st({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(t,e){var{parser:r}=t,n=Jt(e[0],"size").value,i=e[1];return{type:"raisebox",mode:r.mode,dy:n,body:i}},htmlBuilder(t,e){var r=vr(t.body,e),n=Bn(t.dy,e);return Ae.makeVList({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]},e)},mathmlBuilder(t,e){var r=new Xe.MathNode("mpadded",[nn(t.body,e)]),n=t.dy.number+t.dy.unit;return r.setAttribute("voffset",n),r}});st({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(t){var{parser:e}=t;return{type:"internal",mode:e.mode}}});st({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(t,e,r){var{parser:n}=t,i=r[0],a=Jt(e[0],"size"),o=Jt(e[1],"size");return{type:"rule",mode:n.mode,shift:i&&Jt(i,"size").value,width:a.value,height:o.value}},htmlBuilder(t,e){var r=Ae.makeSpan(["mord","rule"],[],e),n=Bn(t.width,e),i=Bn(t.height,e),a=t.shift?Bn(t.shift,e):0;return r.style.borderRightWidth=tt(n),r.style.borderTopWidth=tt(i),r.style.bottom=tt(a),r.width=n,r.height=i+a,r.depth=-a,r.maxFontSize=i*1.125*e.sizeMultiplier,r},mathmlBuilder(t,e){var r=Bn(t.width,e),n=Bn(t.height,e),i=t.shift?Bn(t.shift,e):0,a=e.color&&e.getColor()||"black",o=new Xe.MathNode("mspace");o.setAttribute("mathbackground",a),o.setAttribute("width",tt(r)),o.setAttribute("height",tt(n));var l=new Xe.MathNode("mpadded",[o]);return i>=0?l.setAttribute("height",tt(i)):(l.setAttribute("height",tt(i)),l.setAttribute("depth",tt(-i))),l.setAttribute("voffset",tt(i)),l}});s(Wz,"sizingGroup");YF=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Uve=s((t,e)=>{var r=e.havingSize(t.size);return Wz(t.body,r,e)},"htmlBuilder");st({type:"sizing",names:YF,props:{numArgs:0,allowedInText:!0},handler:s((t,e)=>{var{breakOnTokenText:r,funcName:n,parser:i}=t,a=i.parseExpression(!1,r);return{type:"sizing",mode:i.mode,size:YF.indexOf(n)+1,body:a}},"handler"),htmlBuilder:Uve,mathmlBuilder:s((t,e)=>{var r=e.havingSize(t.size),n=cs(t.body,r),i=new Xe.MathNode("mstyle",n);return i.setAttribute("mathsize",tt(r.sizeMultiplier)),i},"mathmlBuilder")});st({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:s((t,e,r)=>{var{parser:n}=t,i=!1,a=!1,o=r[0]&&Jt(r[0],"ordgroup");if(o)for(var l="",u=0;u{var r=Ae.makeSpan([],[vr(t.body,e)]);if(!t.smashHeight&&!t.smashDepth)return r;if(t.smashHeight&&(r.height=0,r.children))for(var n=0;n{var r=new Xe.MathNode("mpadded",[nn(t.body,e)]);return t.smashHeight&&r.setAttribute("height","0px"),t.smashDepth&&r.setAttribute("depth","0px"),r},"mathmlBuilder")});st({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(t,e,r){var{parser:n}=t,i=r[0],a=e[0];return{type:"sqrt",mode:n.mode,body:a,index:i}},htmlBuilder(t,e){var r=vr(t.body,e.havingCrampedStyle());r.height===0&&(r.height=e.fontMetrics().xHeight),r=Ae.wrapFragment(r,e);var n=e.fontMetrics(),i=n.defaultRuleThickness,a=i;e.style.idr.height+r.depth+o&&(o=(o+d-r.height-r.depth)/2);var p=u.height-r.height-o-h;r.style.paddingLeft=tt(f);var m=Ae.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+p)},{type:"elem",elem:u},{type:"kern",size:h}]},e);if(t.index){var g=e.havingStyle(Nt.SCRIPTSCRIPT),y=vr(t.index,g,e),v=.6*(m.height-m.depth),x=Ae.makeVList({positionType:"shift",positionData:-v,children:[{type:"elem",elem:y}]},e),b=Ae.makeSpan(["root"],[x]);return Ae.makeSpan(["mord","sqrt"],[b,m],e)}else return Ae.makeSpan(["mord","sqrt"],[m],e)},mathmlBuilder(t,e){var{body:r,index:n}=t;return n?new Xe.MathNode("mroot",[nn(r,e),nn(n,e)]):new Xe.MathNode("msqrt",[nn(r,e)])}});XF={display:Nt.DISPLAY,text:Nt.TEXT,script:Nt.SCRIPT,scriptscript:Nt.SCRIPTSCRIPT};st({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t,e){var{breakOnTokenText:r,funcName:n,parser:i}=t,a=i.parseExpression(!0,r),o=n.slice(1,n.length-5);return{type:"styling",mode:i.mode,style:o,body:a}},htmlBuilder(t,e){var r=XF[t.style],n=e.havingStyle(r).withFont("");return Wz(t.body,n,e)},mathmlBuilder(t,e){var r=XF[t.style],n=e.havingStyle(r),i=cs(t.body,n),a=new Xe.MathNode("mstyle",i),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},l=o[t.style];return a.setAttribute("scriptlevel",l[0]),a.setAttribute("displaystyle",l[1]),a}});qve=s(function(e,r){var n=e.base;if(n)if(n.type==="op"){var i=n.limits&&(r.style.size===Nt.DISPLAY.size||n.alwaysHandleSupSub);return i?np:null}else if(n.type==="operatorname"){var a=n.alwaysHandleSupSub&&(r.style.size===Nt.DISPLAY.size||n.limits);return a?qz:null}else{if(n.type==="accent")return Mt.isCharacterBox(n.base)?XE:null;if(n.type==="horizBrace"){var o=!e.sub;return o===n.isOver?Gz:null}else return null}else return null},"htmlBuilderDelegate");Ff({type:"supsub",htmlBuilder(t,e){var r=qve(t,e);if(r)return r(t,e);var{base:n,sup:i,sub:a}=t,o=vr(n,e),l,u,h=e.fontMetrics(),f=0,d=0,p=n&&Mt.isCharacterBox(n);if(i){var m=e.havingStyle(e.style.sup());l=vr(i,m,e),p||(f=o.height-m.fontMetrics().supDrop*m.sizeMultiplier/e.sizeMultiplier)}if(a){var g=e.havingStyle(e.style.sub());u=vr(a,g,e),p||(d=o.depth+g.fontMetrics().subDrop*g.sizeMultiplier/e.sizeMultiplier)}var y;e.style===Nt.DISPLAY?y=h.sup1:e.style.cramped?y=h.sup3:y=h.sup2;var v=e.sizeMultiplier,x=tt(.5/h.ptPerEm/v),b=null;if(u){var k=t.base&&t.base.type==="op"&&t.base.name&&(t.base.name==="\\oiint"||t.base.name==="\\oiiint");(o instanceof ls||k)&&(b=tt(-o.italic))}var A;if(l&&u){f=Math.max(f,y,l.depth+.25*h.xHeight),d=Math.max(d,h.sub2);var w=h.defaultRuleThickness,T=4*w;if(f-l.depth-(u.height-d)0&&(f+=C,d-=C)}var E=[{type:"elem",elem:u,shift:d,marginRight:x,marginLeft:b},{type:"elem",elem:l,shift:-f,marginRight:x}];A=Ae.makeVList({positionType:"individualShift",children:E},e)}else if(u){d=Math.max(d,h.sub1,u.height-.8*h.xHeight);var S=[{type:"elem",elem:u,marginLeft:b,marginRight:x}];A=Ae.makeVList({positionType:"shift",positionData:d,children:S},e)}else if(l)f=Math.max(f,y,l.depth+.25*h.xHeight),A=Ae.makeVList({positionType:"shift",positionData:-f,children:[{type:"elem",elem:l,marginRight:x}]},e);else throw new Error("supsub must have either sup or sub.");var R=NE(o,"right")||"mord";return Ae.makeSpan([R],[o,Ae.makeSpan(["msupsub"],[A])],e)},mathmlBuilder(t,e){var r=!1,n,i;t.base&&t.base.type==="horizBrace"&&(i=!!t.sup,i===t.base.isOver&&(r=!0,n=t.base.isOver)),t.base&&(t.base.type==="op"||t.base.type==="operatorname")&&(t.base.parentIsSupSub=!0);var a=[nn(t.base,e)];t.sub&&a.push(nn(t.sub,e)),t.sup&&a.push(nn(t.sup,e));var o;if(r)o=n?"mover":"munder";else if(t.sub)if(t.sup){var h=t.base;h&&h.type==="op"&&h.limits&&e.style===Nt.DISPLAY||h&&h.type==="operatorname"&&h.alwaysHandleSupSub&&(e.style===Nt.DISPLAY||h.limits)?o="munderover":o="msubsup"}else{var u=t.base;u&&u.type==="op"&&u.limits&&(e.style===Nt.DISPLAY||u.alwaysHandleSupSub)||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(u.limits||e.style===Nt.DISPLAY)?o="munder":o="msub"}else{var l=t.base;l&&l.type==="op"&&l.limits&&(e.style===Nt.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||e.style===Nt.DISPLAY)?o="mover":o="msup"}return new Xe.MathNode(o,a)}});Ff({type:"atom",htmlBuilder(t,e){return Ae.mathsym(t.text,t.mode,e,["m"+t.family])},mathmlBuilder(t,e){var r=new Xe.MathNode("mo",[yo(t.text,t.mode)]);if(t.family==="bin"){var n=HE(t,e);n==="bold-italic"&&r.setAttribute("mathvariant",n)}else t.family==="punct"?r.setAttribute("separator","true"):(t.family==="open"||t.family==="close")&&r.setAttribute("stretchy","false");return r}});Hz={mi:"italic",mn:"normal",mtext:"normal"};Ff({type:"mathord",htmlBuilder(t,e){return Ae.makeOrd(t,e,"mathord")},mathmlBuilder(t,e){var r=new Xe.MathNode("mi",[yo(t.text,t.mode,e)]),n=HE(t,e)||"italic";return n!==Hz[r.type]&&r.setAttribute("mathvariant",n),r}});Ff({type:"textord",htmlBuilder(t,e){return Ae.makeOrd(t,e,"textord")},mathmlBuilder(t,e){var r=yo(t.text,t.mode,e),n=HE(t,e)||"normal",i;return t.mode==="text"?i=new Xe.MathNode("mtext",[r]):/[0-9]/.test(t.text)?i=new Xe.MathNode("mn",[r]):t.text==="\\prime"?i=new Xe.MathNode("mo",[r]):i=new Xe.MathNode("mi",[r]),n!==Hz[i.type]&&i.setAttribute("mathvariant",n),i}});_E={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},AE={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Ff({type:"spacing",htmlBuilder(t,e){if(AE.hasOwnProperty(t.text)){var r=AE[t.text].className||"";if(t.mode==="text"){var n=Ae.makeOrd(t,e,"textord");return n.classes.push(r),n}else return Ae.makeSpan(["mspace",r],[Ae.mathsym(t.text,t.mode,e)],e)}else{if(_E.hasOwnProperty(t.text))return Ae.makeSpan(["mspace",_E[t.text]],[],e);throw new je('Unknown type of space "'+t.text+'"')}},mathmlBuilder(t,e){var r;if(AE.hasOwnProperty(t.text))r=new Xe.MathNode("mtext",[new Xe.TextNode("\xA0")]);else{if(_E.hasOwnProperty(t.text))return new Xe.MathNode("mspace");throw new je('Unknown type of space "'+t.text+'"')}return r}});jF=s(()=>{var t=new Xe.MathNode("mtd",[]);return t.setAttribute("width","50%"),t},"pad");Ff({type:"tag",mathmlBuilder(t,e){var r=new Xe.MathNode("mtable",[new Xe.MathNode("mtr",[jF(),new Xe.MathNode("mtd",[lh(t.body,e)]),jF(),new Xe.MathNode("mtd",[lh(t.tag,e)])])]);return r.setAttribute("width","100%"),r}});KF={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},QF={"\\textbf":"textbf","\\textmd":"textmd"},Wve={"\\textit":"textit","\\textup":"textup"},ZF=s((t,e)=>{var r=t.font;if(r){if(KF[r])return e.withTextFontFamily(KF[r]);if(QF[r])return e.withTextFontWeight(QF[r]);if(r==="\\emph")return e.fontShape==="textit"?e.withTextFontShape("textup"):e.withTextFontShape("textit")}else return e;return e.withTextFontShape(Wve[r])},"optionsWithFont");st({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(t,e){var{parser:r,funcName:n}=t,i=e[0];return{type:"text",mode:r.mode,body:ni(i),font:n}},htmlBuilder(t,e){var r=ZF(t,e),n=Ti(t.body,r,!0);return Ae.makeSpan(["mord","text"],n,r)},mathmlBuilder(t,e){var r=ZF(t,e);return lh(t.body,r)}});st({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(t,e){var{parser:r}=t;return{type:"underline",mode:r.mode,body:e[0]}},htmlBuilder(t,e){var r=vr(t.body,e),n=Ae.makeLineSpan("underline-line",e),i=e.fontMetrics().defaultRuleThickness,a=Ae.makeVList({positionType:"top",positionData:r.height,children:[{type:"kern",size:i},{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r}]},e);return Ae.makeSpan(["mord","underline"],[a],e)},mathmlBuilder(t,e){var r=new Xe.MathNode("mo",[new Xe.TextNode("\u203E")]);r.setAttribute("stretchy","true");var n=new Xe.MathNode("munder",[nn(t.body,e),r]);return n.setAttribute("accentunder","true"),n}});st({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(t,e){var{parser:r}=t;return{type:"vcenter",mode:r.mode,body:e[0]}},htmlBuilder(t,e){var r=vr(t.body,e),n=e.fontMetrics().axisHeight,i=.5*(r.height-n-(r.depth+n));return Ae.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:r}]},e)},mathmlBuilder(t,e){return new Xe.MathNode("mpadded",[nn(t.body,e)],["vcenter"])}});st({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(t,e,r){throw new je("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(t,e){for(var r=JF(t),n=[],i=e.havingStyle(e.style.text()),a=0;at.body.replace(/ /g,t.star?"\u2423":"\xA0"),"makeVerb"),sh=mz,Yz=`[ \r
]`,Hve="\\\\[a-zA-Z@]+",Yve="\\\\[^\uD800-\uDFFF]",Xve="("+Hve+")"+Yz+"*",jve=`\\\\(
|[ \r ]+
?)[ \r ]*`,zE="[\u0300-\u036F]",Kve=new RegExp(zE+"+$"),Qve="("+Yz+"+)|"+(jve+"|")+"([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(zE+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(zE+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+Xve)+("|"+Yve+")"),Gb=class{static{s(this,"Lexer")}constructor(e,r){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=r,this.tokenRegex=new RegExp(Qve,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,r){this.catcodes[e]=r}lex(){var e=this.input,r=this.tokenRegex.lastIndex;if(r===e.length)return new go("EOF",new $s(this,r,r));var n=this.tokenRegex.exec(e);if(n===null||n.index!==r)throw new je("Unexpected character: '"+e[r]+"'",new go(e[r],new $s(this,r,r+1)));var i=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[i]===14){var a=e.indexOf(`
`,this.tokenRegex.lastIndex);return a===-1?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=a+1,this.lex()}return new go(i,new $s(this,r,this.tokenRegex.lastIndex))}},$E=class{static{s(this,"Namespace")}constructor(e,r){e===void 0&&(e={}),r===void 0&&(r={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=r,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new je("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var r in e)e.hasOwnProperty(r)&&(e[r]==null?delete this.current[r]:this.current[r]=e[r])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,r,n){if(n===void 0&&(n=!1),n){for(var i=0;i0&&(this.undefStack[this.undefStack.length-1][e]=r)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(e)&&(a[e]=this.current[e])}r==null?delete this.current[e]:this.current[e]=r}},Zve=Pz;J("\\noexpand",function(t){var e=t.popToken();return t.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});J("\\expandafter",function(t){var e=t.popToken();return t.expandOnce(!0),{tokens:[e],numArgs:0}});J("\\@firstoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[0],numArgs:0}});J("\\@secondoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[1],numArgs:0}});J("\\@ifnextchar",function(t){var e=t.consumeArgs(3);t.consumeSpaces();var r=t.future();return e[0].length===1&&e[0][0].text===r.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}});J("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");J("\\TextOrMath",function(t){var e=t.consumeArgs(2);return t.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});ez={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};J("\\char",function(t){var e=t.popToken(),r,n="";if(e.text==="'")r=8,e=t.popToken();else if(e.text==='"')r=16,e=t.popToken();else if(e.text==="`")if(e=t.popToken(),e.text[0]==="\\")n=e.text.charCodeAt(1);else{if(e.text==="EOF")throw new je("\\char` missing argument");n=e.text.charCodeAt(0)}else r=10;if(r){if(n=ez[e.text],n==null||n>=r)throw new je("Invalid base-"+r+" digit "+e.text);for(var i;(i=ez[t.future().text])!=null&&i{var n=t.consumeArg().tokens;if(n.length!==1)throw new je("\\newcommand's first argument must be a macro name");var i=n[0].text,a=t.isDefined(i);if(a&&!e)throw new je("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!a&&!r)throw new je("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var o=0;if(n=t.consumeArg().tokens,n.length===1&&n[0].text==="["){for(var l="",u=t.expandNextToken();u.text!=="]"&&u.text!=="EOF";)l+=u.text,u=t.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new je("Invalid number of arguments: "+l);o=parseInt(l),n=t.consumeArg().tokens}return t.macros.set(i,{tokens:n,numArgs:o}),""},"newcommand");J("\\newcommand",t=>rC(t,!1,!0));J("\\renewcommand",t=>rC(t,!0,!1));J("\\providecommand",t=>rC(t,!0,!0));J("\\message",t=>{var e=t.consumeArgs(1)[0];return console.log(e.reverse().map(r=>r.text).join("")),""});J("\\errmessage",t=>{var e=t.consumeArgs(1)[0];return console.error(e.reverse().map(r=>r.text).join("")),""});J("\\show",t=>{var e=t.popToken(),r=e.text;return console.log(e,t.macros.get(r),sh[r],dn.math[r],dn.text[r]),""});J("\\bgroup","{");J("\\egroup","}");J("~","\\nobreakspace");J("\\lq","`");J("\\rq","'");J("\\aa","\\r a");J("\\AA","\\r A");J("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}");J("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");J("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}");J("\u212C","\\mathscr{B}");J("\u2130","\\mathscr{E}");J("\u2131","\\mathscr{F}");J("\u210B","\\mathscr{H}");J("\u2110","\\mathscr{I}");J("\u2112","\\mathscr{L}");J("\u2133","\\mathscr{M}");J("\u211B","\\mathscr{R}");J("\u212D","\\mathfrak{C}");J("\u210C","\\mathfrak{H}");J("\u2128","\\mathfrak{Z}");J("\\Bbbk","\\Bbb{k}");J("\xB7","\\cdotp");J("\\llap","\\mathllap{\\textrm{#1}}");J("\\rlap","\\mathrlap{\\textrm{#1}}");J("\\clap","\\mathclap{\\textrm{#1}}");J("\\mathstrut","\\vphantom{(}");J("\\underbar","\\underline{\\text{#1}}");J("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');J("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}");J("\\ne","\\neq");J("\u2260","\\neq");J("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}");J("\u2209","\\notin");J("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}");J("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}");J("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}");J("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}");J("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}");J("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}");J("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}");J("\u27C2","\\perp");J("\u203C","\\mathclose{!\\mkern-0.8mu!}");J("\u220C","\\notni");J("\u231C","\\ulcorner");J("\u231D","\\urcorner");J("\u231E","\\llcorner");J("\u231F","\\lrcorner");J("\xA9","\\copyright");J("\xAE","\\textregistered");J("\uFE0F","\\textregistered");J("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');J("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');J("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');J("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');J("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}");J("\u22EE","\\vdots");J("\\varGamma","\\mathit{\\Gamma}");J("\\varDelta","\\mathit{\\Delta}");J("\\varTheta","\\mathit{\\Theta}");J("\\varLambda","\\mathit{\\Lambda}");J("\\varXi","\\mathit{\\Xi}");J("\\varPi","\\mathit{\\Pi}");J("\\varSigma","\\mathit{\\Sigma}");J("\\varUpsilon","\\mathit{\\Upsilon}");J("\\varPhi","\\mathit{\\Phi}");J("\\varPsi","\\mathit{\\Psi}");J("\\varOmega","\\mathit{\\Omega}");J("\\substack","\\begin{subarray}{c}#1\\end{subarray}");J("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");J("\\boxed","\\fbox{$\\displaystyle{#1}$}");J("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");J("\\implies","\\DOTSB\\;\\Longrightarrow\\;");J("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");tz={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};J("\\dots",function(t){var e="\\dotso",r=t.expandAfterFuture().text;return r in tz?e=tz[r]:(r.slice(0,4)==="\\not"||r in dn.math&&Mt.contains(["bin","rel"],dn.math[r].group))&&(e="\\dotsb"),e});nC={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};J("\\dotso",function(t){var e=t.future().text;return e in nC?"\\ldots\\,":"\\ldots"});J("\\dotsc",function(t){var e=t.future().text;return e in nC&&e!==","?"\\ldots\\,":"\\ldots"});J("\\cdots",function(t){var e=t.future().text;return e in nC?"\\@cdots\\,":"\\@cdots"});J("\\dotsb","\\cdots");J("\\dotsm","\\cdots");J("\\dotsi","\\!\\cdots");J("\\dotsx","\\ldots\\,");J("\\DOTSI","\\relax");J("\\DOTSB","\\relax");J("\\DOTSX","\\relax");J("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");J("\\,","\\tmspace+{3mu}{.1667em}");J("\\thinspace","\\,");J("\\>","\\mskip{4mu}");J("\\:","\\tmspace+{4mu}{.2222em}");J("\\medspace","\\:");J("\\;","\\tmspace+{5mu}{.2777em}");J("\\thickspace","\\;");J("\\!","\\tmspace-{3mu}{.1667em}");J("\\negthinspace","\\!");J("\\negmedspace","\\tmspace-{4mu}{.2222em}");J("\\negthickspace","\\tmspace-{5mu}{.277em}");J("\\enspace","\\kern.5em ");J("\\enskip","\\hskip.5em\\relax");J("\\quad","\\hskip1em\\relax");J("\\qquad","\\hskip2em\\relax");J("\\tag","\\@ifstar\\tag@literal\\tag@paren");J("\\tag@paren","\\tag@literal{({#1})}");J("\\tag@literal",t=>{if(t.macros.get("\\df@tag"))throw new je("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});J("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");J("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");J("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");J("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");J("\\newline","\\\\\\relax");J("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");Xz=tt(zl["Main-Regular"][84][1]-.7*zl["Main-Regular"][65][1]);J("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Xz+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");J("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Xz+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");J("\\hspace","\\@ifstar\\@hspacer\\@hspace");J("\\@hspace","\\hskip #1\\relax");J("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");J("\\ordinarycolon",":");J("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");J("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');J("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');J("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');J("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');J("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');J("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');J("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');J("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');J("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');J("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');J("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');J("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');J("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');J("\u2237","\\dblcolon");J("\u2239","\\eqcolon");J("\u2254","\\coloneqq");J("\u2255","\\eqqcolon");J("\u2A74","\\Coloneqq");J("\\ratio","\\vcentcolon");J("\\coloncolon","\\dblcolon");J("\\colonequals","\\coloneqq");J("\\coloncolonequals","\\Coloneqq");J("\\equalscolon","\\eqqcolon");J("\\equalscoloncolon","\\Eqqcolon");J("\\colonminus","\\coloneq");J("\\coloncolonminus","\\Coloneq");J("\\minuscolon","\\eqcolon");J("\\minuscoloncolon","\\Eqcolon");J("\\coloncolonapprox","\\Colonapprox");J("\\coloncolonsim","\\Colonsim");J("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");J("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");J("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");J("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");J("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}");J("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");J("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");J("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");J("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");J("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");J("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");J("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");J("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");J("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}");J("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}");J("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}");J("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}");J("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}");J("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}");J("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}");J("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}");J("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}");J("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}");J("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}");J("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}");J("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}");J("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}");J("\\imath","\\html@mathml{\\@imath}{\u0131}");J("\\jmath","\\html@mathml{\\@jmath}{\u0237}");J("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}");J("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}");J("\u27E6","\\llbracket");J("\u27E7","\\rrbracket");J("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}");J("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}");J("\u2983","\\lBrace");J("\u2984","\\rBrace");J("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`\u29B5}}");J("\u29B5","\\minuso");J("\\darr","\\downarrow");J("\\dArr","\\Downarrow");J("\\Darr","\\Downarrow");J("\\lang","\\langle");J("\\rang","\\rangle");J("\\uarr","\\uparrow");J("\\uArr","\\Uparrow");J("\\Uarr","\\Uparrow");J("\\N","\\mathbb{N}");J("\\R","\\mathbb{R}");J("\\Z","\\mathbb{Z}");J("\\alef","\\aleph");J("\\alefsym","\\aleph");J("\\Alpha","\\mathrm{A}");J("\\Beta","\\mathrm{B}");J("\\bull","\\bullet");J("\\Chi","\\mathrm{X}");J("\\clubs","\\clubsuit");J("\\cnums","\\mathbb{C}");J("\\Complex","\\mathbb{C}");J("\\Dagger","\\ddagger");J("\\diamonds","\\diamondsuit");J("\\empty","\\emptyset");J("\\Epsilon","\\mathrm{E}");J("\\Eta","\\mathrm{H}");J("\\exist","\\exists");J("\\harr","\\leftrightarrow");J("\\hArr","\\Leftrightarrow");J("\\Harr","\\Leftrightarrow");J("\\hearts","\\heartsuit");J("\\image","\\Im");J("\\infin","\\infty");J("\\Iota","\\mathrm{I}");J("\\isin","\\in");J("\\Kappa","\\mathrm{K}");J("\\larr","\\leftarrow");J("\\lArr","\\Leftarrow");J("\\Larr","\\Leftarrow");J("\\lrarr","\\leftrightarrow");J("\\lrArr","\\Leftrightarrow");J("\\Lrarr","\\Leftrightarrow");J("\\Mu","\\mathrm{M}");J("\\natnums","\\mathbb{N}");J("\\Nu","\\mathrm{N}");J("\\Omicron","\\mathrm{O}");J("\\plusmn","\\pm");J("\\rarr","\\rightarrow");J("\\rArr","\\Rightarrow");J("\\Rarr","\\Rightarrow");J("\\real","\\Re");J("\\reals","\\mathbb{R}");J("\\Reals","\\mathbb{R}");J("\\Rho","\\mathrm{P}");J("\\sdot","\\cdot");J("\\sect","\\S");J("\\spades","\\spadesuit");J("\\sub","\\subset");J("\\sube","\\subseteq");J("\\supe","\\supseteq");J("\\Tau","\\mathrm{T}");J("\\thetasym","\\vartheta");J("\\weierp","\\wp");J("\\Zeta","\\mathrm{Z}");J("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");J("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");J("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");J("\\bra","\\mathinner{\\langle{#1}|}");J("\\ket","\\mathinner{|{#1}\\rangle}");J("\\braket","\\mathinner{\\langle{#1}\\rangle}");J("\\Bra","\\left\\langle#1\\right|");J("\\Ket","\\left|#1\\right\\rangle");jz=s(t=>e=>{var r=e.consumeArg().tokens,n=e.consumeArg().tokens,i=e.consumeArg().tokens,a=e.consumeArg().tokens,o=e.macros.get("|"),l=e.macros.get("\\|");e.macros.beginGroup();var u=s(d=>p=>{t&&(p.macros.set("|",o),i.length&&p.macros.set("\\|",l));var m=d;if(!d&&i.length){var g=p.future();g.text==="|"&&(p.popToken(),m=!0)}return{tokens:m?i:n,numArgs:0}},"midMacro");e.macros.set("|",u(!1)),i.length&&e.macros.set("\\|",u(!0));var h=e.consumeArg().tokens,f=e.expandTokens([...a,...h,...r]);return e.macros.endGroup(),{tokens:f.reverse(),numArgs:0}},"braketHelper");J("\\bra@ket",jz(!1));J("\\bra@set",jz(!0));J("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");J("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");J("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");J("\\angln","{\\angl n}");J("\\blue","\\textcolor{##6495ed}{#1}");J("\\orange","\\textcolor{##ffa500}{#1}");J("\\pink","\\textcolor{##ff00af}{#1}");J("\\red","\\textcolor{##df0030}{#1}");J("\\green","\\textcolor{##28ae7b}{#1}");J("\\gray","\\textcolor{gray}{#1}");J("\\purple","\\textcolor{##9d38bd}{#1}");J("\\blueA","\\textcolor{##ccfaff}{#1}");J("\\blueB","\\textcolor{##80f6ff}{#1}");J("\\blueC","\\textcolor{##63d9ea}{#1}");J("\\blueD","\\textcolor{##11accd}{#1}");J("\\blueE","\\textcolor{##0c7f99}{#1}");J("\\tealA","\\textcolor{##94fff5}{#1}");J("\\tealB","\\textcolor{##26edd5}{#1}");J("\\tealC","\\textcolor{##01d1c1}{#1}");J("\\tealD","\\textcolor{##01a995}{#1}");J("\\tealE","\\textcolor{##208170}{#1}");J("\\greenA","\\textcolor{##b6ffb0}{#1}");J("\\greenB","\\textcolor{##8af281}{#1}");J("\\greenC","\\textcolor{##74cf70}{#1}");J("\\greenD","\\textcolor{##1fab54}{#1}");J("\\greenE","\\textcolor{##0d923f}{#1}");J("\\goldA","\\textcolor{##ffd0a9}{#1}");J("\\goldB","\\textcolor{##ffbb71}{#1}");J("\\goldC","\\textcolor{##ff9c39}{#1}");J("\\goldD","\\textcolor{##e07d10}{#1}");J("\\goldE","\\textcolor{##a75a05}{#1}");J("\\redA","\\textcolor{##fca9a9}{#1}");J("\\redB","\\textcolor{##ff8482}{#1}");J("\\redC","\\textcolor{##f9685d}{#1}");J("\\redD","\\textcolor{##e84d39}{#1}");J("\\redE","\\textcolor{##bc2612}{#1}");J("\\maroonA","\\textcolor{##ffbde0}{#1}");J("\\maroonB","\\textcolor{##ff92c6}{#1}");J("\\maroonC","\\textcolor{##ed5fa6}{#1}");J("\\maroonD","\\textcolor{##ca337c}{#1}");J("\\maroonE","\\textcolor{##9e034e}{#1}");J("\\purpleA","\\textcolor{##ddd7ff}{#1}");J("\\purpleB","\\textcolor{##c6b9fc}{#1}");J("\\purpleC","\\textcolor{##aa87ff}{#1}");J("\\purpleD","\\textcolor{##7854ab}{#1}");J("\\purpleE","\\textcolor{##543b78}{#1}");J("\\mintA","\\textcolor{##f5f9e8}{#1}");J("\\mintB","\\textcolor{##edf2df}{#1}");J("\\mintC","\\textcolor{##e0e5cc}{#1}");J("\\grayA","\\textcolor{##f6f7f7}{#1}");J("\\grayB","\\textcolor{##f0f1f2}{#1}");J("\\grayC","\\textcolor{##e3e5e6}{#1}");J("\\grayD","\\textcolor{##d6d8da}{#1}");J("\\grayE","\\textcolor{##babec2}{#1}");J("\\grayF","\\textcolor{##888d93}{#1}");J("\\grayG","\\textcolor{##626569}{#1}");J("\\grayH","\\textcolor{##3b3e40}{#1}");J("\\grayI","\\textcolor{##21242c}{#1}");J("\\kaBlue","\\textcolor{##314453}{#1}");J("\\kaGreen","\\textcolor{##71B307}{#1}");Kz={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},GE=class{static{s(this,"MacroExpander")}constructor(e,r,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=r,this.expansionCount=0,this.feed(e),this.macros=new $E(Zve,r.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new Gb(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var r,n,i;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:i,end:n}=this.consumeArg(["]"])}else({tokens:i,start:r,end:n}=this.consumeArg());return this.pushToken(new go("EOF",n.loc)),this.pushTokens(i),r.range(n,"")}consumeSpaces(){for(;;){var e=this.future();if(e.text===" ")this.stack.pop();else break}}consumeArg(e){var r=[],n=e&&e.length>0;n||this.consumeSpaces();var i=this.future(),a,o=0,l=0;do{if(a=this.popToken(),r.push(a),a.text==="{")++o;else if(a.text==="}"){if(--o,o===-1)throw new je("Extra }",a)}else if(a.text==="EOF")throw new je("Unexpected end of input in a macro argument, expected '"+(e&&n?e[l]:"}")+"'",a);if(e&&n)if((o===0||o===1&&e[l]==="{")&&a.text===e[l]){if(++l,l===e.length){r.splice(-l,l);break}}else l=0}while(o!==0||n);return i.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:i,end:a}}consumeArgs(e,r){if(r){if(r.length!==e+1)throw new je("The length of delimiters doesn't match the number of args!");for(var n=r[0],i=0;ithis.settings.maxExpand)throw new je("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var r=this.popToken(),n=r.text,i=r.noexpand?null:this._getExpansion(n);if(i==null||e&&i.unexpandable){if(e&&i==null&&n[0]==="\\"&&!this.isDefined(n))throw new je("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var a=i.tokens,o=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){a=a.slice();for(var l=a.length-1;l>=0;--l){var u=a[l];if(u.text==="#"){if(l===0)throw new je("Incomplete placeholder at end of macro body",u);if(u=a[--l],u.text==="#")a.splice(l+1,1);else if(/^[1-9]$/.test(u.text))a.splice(l,2,...o[+u.text-1]);else throw new je("Not a valid argument number",u)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new go(e)]):void 0}expandTokens(e){var r=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),r.push(i)}return this.countExpansion(r.length),r}expandMacroAsText(e){var r=this.expandMacro(e);return r&&r.map(n=>n.text).join("")}_getExpansion(e){var r=this.macros.get(e);if(r==null)return r;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var i=typeof r=="function"?r(this):r;if(typeof i=="string"){var a=0;if(i.indexOf("#")!==-1)for(var o=i.replace(/##/g,"");o.indexOf("#"+(a+1))!==-1;)++a;for(var l=new Gb(i,this.settings),u=[],h=l.lex();h.text!=="EOF";)u.push(h),h=l.lex();u.reverse();var f={tokens:u,numArgs:a};return f}return i}isDefined(e){return this.macros.has(e)||sh.hasOwnProperty(e)||dn.math.hasOwnProperty(e)||dn.text.hasOwnProperty(e)||Kz.hasOwnProperty(e)}isExpandable(e){var r=this.macros.get(e);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:sh.hasOwnProperty(e)&&!sh[e].primitive}},rz=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Mb=Object.freeze({"\u208A":"+","\u208B":"-","\u208C":"=","\u208D":"(","\u208E":")","\u2080":"0","\u2081":"1","\u2082":"2","\u2083":"3","\u2084":"4","\u2085":"5","\u2086":"6","\u2087":"7","\u2088":"8","\u2089":"9","\u2090":"a","\u2091":"e","\u2095":"h","\u1D62":"i","\u2C7C":"j","\u2096":"k","\u2097":"l","\u2098":"m","\u2099":"n","\u2092":"o","\u209A":"p","\u1D63":"r","\u209B":"s","\u209C":"t","\u1D64":"u","\u1D65":"v","\u2093":"x","\u1D66":"\u03B2","\u1D67":"\u03B3","\u1D68":"\u03C1","\u1D69":"\u03D5","\u1D6A":"\u03C7","\u207A":"+","\u207B":"-","\u207C":"=","\u207D":"(","\u207E":")","\u2070":"0","\xB9":"1","\xB2":"2","\xB3":"3","\u2074":"4","\u2075":"5","\u2076":"6","\u2077":"7","\u2078":"8","\u2079":"9","\u1D2C":"A","\u1D2E":"B","\u1D30":"D","\u1D31":"E","\u1D33":"G","\u1D34":"H","\u1D35":"I","\u1D36":"J","\u1D37":"K","\u1D38":"L","\u1D39":"M","\u1D3A":"N","\u1D3C":"O","\u1D3E":"P","\u1D3F":"R","\u1D40":"T","\u1D41":"U","\u2C7D":"V","\u1D42":"W","\u1D43":"a","\u1D47":"b","\u1D9C":"c","\u1D48":"d","\u1D49":"e","\u1DA0":"f","\u1D4D":"g",\u02B0:"h","\u2071":"i",\u02B2:"j","\u1D4F":"k",\u02E1:"l","\u1D50":"m",\u207F:"n","\u1D52":"o","\u1D56":"p",\u02B3:"r",\u02E2:"s","\u1D57":"t","\u1D58":"u","\u1D5B":"v",\u02B7:"w",\u02E3:"x",\u02B8:"y","\u1DBB":"z","\u1D5D":"\u03B2","\u1D5E":"\u03B3","\u1D5F":"\u03B4","\u1D60":"\u03D5","\u1D61":"\u03C7","\u1DBF":"\u03B8"}),LE={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030C":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030A":{text:"\\r",math:"\\mathring"},"\u030B":{text:"\\H"},"\u0327":{text:"\\c"}},nz={\u00E1:"a\u0301",\u00E0:"a\u0300",\u00E4:"a\u0308",\u01DF:"a\u0308\u0304",\u00E3:"a\u0303",\u0101:"a\u0304",\u0103:"a\u0306",\u1EAF:"a\u0306\u0301",\u1EB1:"a\u0306\u0300",\u1EB5:"a\u0306\u0303",\u01CE:"a\u030C",\u00E2:"a\u0302",\u1EA5:"a\u0302\u0301",\u1EA7:"a\u0302\u0300",\u1EAB:"a\u0302\u0303",\u0227:"a\u0307",\u01E1:"a\u0307\u0304",\u00E5:"a\u030A",\u01FB:"a\u030A\u0301",\u1E03:"b\u0307",\u0107:"c\u0301",\u1E09:"c\u0327\u0301",\u010D:"c\u030C",\u0109:"c\u0302",\u010B:"c\u0307",\u00E7:"c\u0327",\u010F:"d\u030C",\u1E0B:"d\u0307",\u1E11:"d\u0327",\u00E9:"e\u0301",\u00E8:"e\u0300",\u00EB:"e\u0308",\u1EBD:"e\u0303",\u0113:"e\u0304",\u1E17:"e\u0304\u0301",\u1E15:"e\u0304\u0300",\u0115:"e\u0306",\u1E1D:"e\u0327\u0306",\u011B:"e\u030C",\u00EA:"e\u0302",\u1EBF:"e\u0302\u0301",\u1EC1:"e\u0302\u0300",\u1EC5:"e\u0302\u0303",\u0117:"e\u0307",\u0229:"e\u0327",\u1E1F:"f\u0307",\u01F5:"g\u0301",\u1E21:"g\u0304",\u011F:"g\u0306",\u01E7:"g\u030C",\u011D:"g\u0302",\u0121:"g\u0307",\u0123:"g\u0327",\u1E27:"h\u0308",\u021F:"h\u030C",\u0125:"h\u0302",\u1E23:"h\u0307",\u1E29:"h\u0327",\u00ED:"i\u0301",\u00EC:"i\u0300",\u00EF:"i\u0308",\u1E2F:"i\u0308\u0301",\u0129:"i\u0303",\u012B:"i\u0304",\u012D:"i\u0306",\u01D0:"i\u030C",\u00EE:"i\u0302",\u01F0:"j\u030C",\u0135:"j\u0302",\u1E31:"k\u0301",\u01E9:"k\u030C",\u0137:"k\u0327",\u013A:"l\u0301",\u013E:"l\u030C",\u013C:"l\u0327",\u1E3F:"m\u0301",\u1E41:"m\u0307",\u0144:"n\u0301",\u01F9:"n\u0300",\u00F1:"n\u0303",\u0148:"n\u030C",\u1E45:"n\u0307",\u0146:"n\u0327",\u00F3:"o\u0301",\u00F2:"o\u0300",\u00F6:"o\u0308",\u022B:"o\u0308\u0304",\u00F5:"o\u0303",\u1E4D:"o\u0303\u0301",\u1E4F:"o\u0303\u0308",\u022D:"o\u0303\u0304",\u014D:"o\u0304",\u1E53:"o\u0304\u0301",\u1E51:"o\u0304\u0300",\u014F:"o\u0306",\u01D2:"o\u030C",\u00F4:"o\u0302",\u1ED1:"o\u0302\u0301",\u1ED3:"o\u0302\u0300",\u1ED7:"o\u0302\u0303",\u022F:"o\u0307",\u0231:"o\u0307\u0304",\u0151:"o\u030B",\u1E55:"p\u0301",\u1E57:"p\u0307",\u0155:"r\u0301",\u0159:"r\u030C",\u1E59:"r\u0307",\u0157:"r\u0327",\u015B:"s\u0301",\u1E65:"s\u0301\u0307",\u0161:"s\u030C",\u1E67:"s\u030C\u0307",\u015D:"s\u0302",\u1E61:"s\u0307",\u015F:"s\u0327",\u1E97:"t\u0308",\u0165:"t\u030C",\u1E6B:"t\u0307",\u0163:"t\u0327",\u00FA:"u\u0301",\u00F9:"u\u0300",\u00FC:"u\u0308",\u01D8:"u\u0308\u0301",\u01DC:"u\u0308\u0300",\u01D6:"u\u0308\u0304",\u01DA:"u\u0308\u030C",\u0169:"u\u0303",\u1E79:"u\u0303\u0301",\u016B:"u\u0304",\u1E7B:"u\u0304\u0308",\u016D:"u\u0306",\u01D4:"u\u030C",\u00FB:"u\u0302",\u016F:"u\u030A",\u0171:"u\u030B",\u1E7D:"v\u0303",\u1E83:"w\u0301",\u1E81:"w\u0300",\u1E85:"w\u0308",\u0175:"w\u0302",\u1E87:"w\u0307",\u1E98:"w\u030A",\u1E8D:"x\u0308",\u1E8B:"x\u0307",\u00FD:"y\u0301",\u1EF3:"y\u0300",\u00FF:"y\u0308",\u1EF9:"y\u0303",\u0233:"y\u0304",\u0177:"y\u0302",\u1E8F:"y\u0307",\u1E99:"y\u030A",\u017A:"z\u0301",\u017E:"z\u030C",\u1E91:"z\u0302",\u017C:"z\u0307",\u00C1:"A\u0301",\u00C0:"A\u0300",\u00C4:"A\u0308",\u01DE:"A\u0308\u0304",\u00C3:"A\u0303",\u0100:"A\u0304",\u0102:"A\u0306",\u1EAE:"A\u0306\u0301",\u1EB0:"A\u0306\u0300",\u1EB4:"A\u0306\u0303",\u01CD:"A\u030C",\u00C2:"A\u0302",\u1EA4:"A\u0302\u0301",\u1EA6:"A\u0302\u0300",\u1EAA:"A\u0302\u0303",\u0226:"A\u0307",\u01E0:"A\u0307\u0304",\u00C5:"A\u030A",\u01FA:"A\u030A\u0301",\u1E02:"B\u0307",\u0106:"C\u0301",\u1E08:"C\u0327\u0301",\u010C:"C\u030C",\u0108:"C\u0302",\u010A:"C\u0307",\u00C7:"C\u0327",\u010E:"D\u030C",\u1E0A:"D\u0307",\u1E10:"D\u0327",\u00C9:"E\u0301",\u00C8:"E\u0300",\u00CB:"E\u0308",\u1EBC:"E\u0303",\u0112:"E\u0304",\u1E16:"E\u0304\u0301",\u1E14:"E\u0304\u0300",\u0114:"E\u0306",\u1E1C:"E\u0327\u0306",\u011A:"E\u030C",\u00CA:"E\u0302",\u1EBE:"E\u0302\u0301",\u1EC0:"E\u0302\u0300",\u1EC4:"E\u0302\u0303",\u0116:"E\u0307",\u0228:"E\u0327",\u1E1E:"F\u0307",\u01F4:"G\u0301",\u1E20:"G\u0304",\u011E:"G\u0306",\u01E6:"G\u030C",\u011C:"G\u0302",\u0120:"G\u0307",\u0122:"G\u0327",\u1E26:"H\u0308",\u021E:"H\u030C",\u0124:"H\u0302",\u1E22:"H\u0307",\u1E28:"H\u0327",\u00CD:"I\u0301",\u00CC:"I\u0300",\u00CF:"I\u0308",\u1E2E:"I\u0308\u0301",\u0128:"I\u0303",\u012A:"I\u0304",\u012C:"I\u0306",\u01CF:"I\u030C",\u00CE:"I\u0302",\u0130:"I\u0307",\u0134:"J\u0302",\u1E30:"K\u0301",\u01E8:"K\u030C",\u0136:"K\u0327",\u0139:"L\u0301",\u013D:"L\u030C",\u013B:"L\u0327",\u1E3E:"M\u0301",\u1E40:"M\u0307",\u0143:"N\u0301",\u01F8:"N\u0300",\u00D1:"N\u0303",\u0147:"N\u030C",\u1E44:"N\u0307",\u0145:"N\u0327",\u00D3:"O\u0301",\u00D2:"O\u0300",\u00D6:"O\u0308",\u022A:"O\u0308\u0304",\u00D5:"O\u0303",\u1E4C:"O\u0303\u0301",\u1E4E:"O\u0303\u0308",\u022C:"O\u0303\u0304",\u014C:"O\u0304",\u1E52:"O\u0304\u0301",\u1E50:"O\u0304\u0300",\u014E:"O\u0306",\u01D1:"O\u030C",\u00D4:"O\u0302",\u1ED0:"O\u0302\u0301",\u1ED2:"O\u0302\u0300",\u1ED6:"O\u0302\u0303",\u022E:"O\u0307",\u0230:"O\u0307\u0304",\u0150:"O\u030B",\u1E54:"P\u0301",\u1E56:"P\u0307",\u0154:"R\u0301",\u0158:"R\u030C",\u1E58:"R\u0307",\u0156:"R\u0327",\u015A:"S\u0301",\u1E64:"S\u0301\u0307",\u0160:"S\u030C",\u1E66:"S\u030C\u0307",\u015C:"S\u0302",\u1E60:"S\u0307",\u015E:"S\u0327",\u0164:"T\u030C",\u1E6A:"T\u0307",\u0162:"T\u0327",\u00DA:"U\u0301",\u00D9:"U\u0300",\u00DC:"U\u0308",\u01D7:"U\u0308\u0301",\u01DB:"U\u0308\u0300",\u01D5:"U\u0308\u0304",\u01D9:"U\u0308\u030C",\u0168:"U\u0303",\u1E78:"U\u0303\u0301",\u016A:"U\u0304",\u1E7A:"U\u0304\u0308",\u016C:"U\u0306",\u01D3:"U\u030C",\u00DB:"U\u0302",\u016E:"U\u030A",\u0170:"U\u030B",\u1E7C:"V\u0303",\u1E82:"W\u0301",\u1E80:"W\u0300",\u1E84:"W\u0308",\u0174:"W\u0302",\u1E86:"W\u0307",\u1E8C:"X\u0308",\u1E8A:"X\u0307",\u00DD:"Y\u0301",\u1EF2:"Y\u0300",\u0178:"Y\u0308",\u1EF8:"Y\u0303",\u0232:"Y\u0304",\u0176:"Y\u0302",\u1E8E:"Y\u0307",\u0179:"Z\u0301",\u017D:"Z\u030C",\u1E90:"Z\u0302",\u017B:"Z\u0307",\u03AC:"\u03B1\u0301",\u1F70:"\u03B1\u0300",\u1FB1:"\u03B1\u0304",\u1FB0:"\u03B1\u0306",\u03AD:"\u03B5\u0301",\u1F72:"\u03B5\u0300",\u03AE:"\u03B7\u0301",\u1F74:"\u03B7\u0300",\u03AF:"\u03B9\u0301",\u1F76:"\u03B9\u0300",\u03CA:"\u03B9\u0308",\u0390:"\u03B9\u0308\u0301",\u1FD2:"\u03B9\u0308\u0300",\u1FD1:"\u03B9\u0304",\u1FD0:"\u03B9\u0306",\u03CC:"\u03BF\u0301",\u1F78:"\u03BF\u0300",\u03CD:"\u03C5\u0301",\u1F7A:"\u03C5\u0300",\u03CB:"\u03C5\u0308",\u03B0:"\u03C5\u0308\u0301",\u1FE2:"\u03C5\u0308\u0300",\u1FE1:"\u03C5\u0304",\u1FE0:"\u03C5\u0306",\u03CE:"\u03C9\u0301",\u1F7C:"\u03C9\u0300",\u038E:"\u03A5\u0301",\u1FEA:"\u03A5\u0300",\u03AB:"\u03A5\u0308",\u1FE9:"\u03A5\u0304",\u1FE8:"\u03A5\u0306",\u038F:"\u03A9\u0301",\u1FFA:"\u03A9\u0300"},Vb=class t{static{s(this,"Parser")}constructor(e,r){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new GE(e,r,this.mode),this.settings=r,this.leftrightDepth=0}expect(e,r){if(r===void 0&&(r=!0),this.fetch().text!==e)throw new je("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var r=this.nextToken;this.consume(),this.gullet.pushToken(new go("}")),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,n}parseExpression(e,r){for(var n=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(t.endOfExpression.indexOf(i.text)!==-1||r&&i.text===r||e&&sh[i.text]&&sh[i.text].infix)break;var a=this.parseAtom(r);if(a){if(a.type==="internal")continue}else break;n.push(a)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(e){for(var r=-1,n,i=0;i=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',e);var l=dn[this.mode][r].group,u=$s.range(e),h;if(Uye.hasOwnProperty(l)){var f=l;h={type:"atom",mode:this.mode,family:f,loc:u,text:r}}else h={type:l,mode:this.mode,loc:u,text:r};o=h}else if(r.charCodeAt(0)>=128)this.settings.strict&&(az(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),e)),o={type:"textord",mode:"text",loc:$s.range(e),text:r};else return null;if(this.consume(),a)for(var d=0;d{e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")??"")}),ip.default.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)??""),e.removeAttribute(t),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener"))})}var ip,zf,n2e,i2e,n$,t$,$r,s2e,o2e,l2e,c2e,i$,u2e,hr,h2e,f2e,uh,sC,d2e,p2e,r$,oC,Ei,$f,hh,$e,Qt=_(()=>{"use strict";ip=ka(yE(),1),zf=/
/gi,n2e=s(t=>t?i$(t).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),i2e=(()=>{let t=!1;return()=>{t||(a2e(),t=!0)}})();s(a2e,"setupDompurifyHooks");n$=s(t=>(i2e(),ip.default.sanitize(t)),"removeScript"),t$=s((t,e)=>{if(e.flowchart?.htmlLabels!==!1){let r=e.securityLevel;r==="antiscript"||r==="strict"?t=n$(t):r!=="loose"&&(t=i$(t),t=t.replace(/ /g,">"),t=t.replace(/=/g,"="),t=c2e(t))}return t},"sanitizeMore"),$r=s((t,e)=>t&&(e.dompurifyConfig?t=ip.default.sanitize(t$(t,e),e.dompurifyConfig).toString():t=ip.default.sanitize(t$(t,e),{FORBID_TAGS:["style"]}).toString(),t),"sanitizeText"),s2e=s((t,e)=>typeof t=="string"?$r(t,e):t.flat().map(r=>$r(r,e)),"sanitizeTextOrArray"),o2e=s(t=>zf.test(t),"hasBreaks"),l2e=s(t=>t.split(zf),"splitBreaks"),c2e=s(t=>t.replace(/#br#/g,"
"),"placeholderToBreak"),i$=s(t=>t.replace(zf,"#br#"),"breakToPlaceholder"),u2e=s(t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=e.replaceAll(/\(/g,"\\("),e=e.replaceAll(/\)/g,"\\)")),e},"getUrl"),hr=s(t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),"evaluate"),h2e=s(function(...t){let e=t.filter(r=>!isNaN(r));return Math.max(...e)},"getMax"),f2e=s(function(...t){let e=t.filter(r=>!isNaN(r));return Math.min(...e)},"getMin"),uh=s(function(t){let e=t.split(/(,)/),r=[];for(let n=0;n0&&n+1Math.max(0,t.split(e).length-1),"countOccurrence"),d2e=s((t,e)=>{let r=sC(t,"~"),n=sC(e,"~");return r===1&&n===1},"shouldCombineSets"),p2e=s(t=>{let e=sC(t,"~"),r=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),r=!0);let n=[...t],i=n.indexOf("~"),a=n.lastIndexOf("~");for(;i!==-1&&a!==-1&&i!==a;)n[i]="<",n[a]=">",i=n.indexOf("~"),a=n.lastIndexOf("~");return r&&n.unshift("~"),n.join("")},"processSet"),r$=s(()=>window.MathMLElement!==void 0,"isMathMLSupported"),oC=/\$\$(.*)\$\$/g,Ei=s(t=>(t.match(oC)?.length??0)>0,"hasKatex"),$f=s(async(t,e)=>{t=await hh(t,e);let r=document.createElement("div");r.innerHTML=t,r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0",document.querySelector("body")?.insertAdjacentElement("beforeend",r);let i={width:r.clientWidth,height:r.clientHeight};return r.remove(),i},"calculateMathMLDimensions"),hh=s(async(t,e)=>{if(!Ei(t))return t;if(!(r$()||e.legacyMathML||e.forceLegacyMathML))return t.replace(oC,"MathML is unsupported in this environment.");let{default:r}=await Promise.resolve().then(()=>(e$(),Jz)),n=e.forceLegacyMathML||!r$()&&e.legacyMathML?"htmlAndMathml":"mathml";return t.split(zf).map(i=>Ei(i)?`${i}`:`${i}`).join("").replace(oC,(i,a)=>r.renderToString(a,{throwOnError:!0,displayMode:!0,output:n}).replace(/\n/g," ").replace(//g,""))},"renderKatex"),$e={getRows:n2e,sanitizeText:$r,sanitizeTextOrArray:s2e,hasBreaks:o2e,splitBreaks:l2e,lineBreakRegex:zf,removeScript:n$,getUrl:u2e,evaluate:hr,getMax:h2e,getMin:f2e}});var m2e,g2e,xr,ql,Un=_(()=>{"use strict";it();m2e=s(function(t,e){for(let r of e)t.attr(r[0],r[1])},"d3Attrs"),g2e=s(function(t,e,r){let n=new Map;return r?(n.set("width","100%"),n.set("style",`max-width: ${e}px;`)):(n.set("height",t),n.set("width",e)),n},"calculateSvgSizeAttrs"),xr=s(function(t,e,r,n){let i=g2e(e,r,n);m2e(t,i)},"configureSvgSize"),ql=s(function(t,e,r,n){let i=e.node().getBBox(),a=i.width,o=i.height;V.info(`SVG bounds: ${a}x${o}`,i);let l=0,u=0;V.info(`Graph bounds: ${l}x${u}`,t),l=a+r*2,u=o+r*2,V.info(`Calculated bounds: ${l}x${u}`),xr(e,u,l,n);let h=`${i.x-r} ${i.y-r} ${i.width+2*r} ${i.height+2*r}`;e.attr("viewBox",h)},"setupGraphViewbox")});var jb,y2e,a$,s$,lC=_(()=>{"use strict";it();jb={},y2e=s((t,e,r)=>{let n="";return t in jb&&jb[t]?n=jb[t](r):V.warn(`No theme found for ${t}`),` & {
font-family: ${r.fontFamily};
font-size: ${r.fontSize};
fill: ${r.textColor}
}
/* Classes common for multiple diagrams */
& .error-icon {
fill: ${r.errorBkgColor};
}
& .error-text {
fill: ${r.errorTextColor};
stroke: ${r.errorTextColor};
}
& .edge-thickness-normal {
stroke-width: 1px;
}
& .edge-thickness-thick {
stroke-width: 3.5px
}
& .edge-pattern-solid {
stroke-dasharray: 0;
}
& .edge-thickness-invisible {
stroke-width: 0;
fill: none;
}
& .edge-pattern-dashed{
stroke-dasharray: 3;
}
.edge-pattern-dotted {
stroke-dasharray: 2;
}
& .marker {
fill: ${r.lineColor};
stroke: ${r.lineColor};
}
& .marker.cross {
stroke: ${r.lineColor};
}
& svg {
font-family: ${r.fontFamily};
font-size: ${r.fontSize};
}
& p {
margin: 0
}
${n}
${e}
`},"getStyles"),a$=s((t,e)=>{e!==void 0&&(jb[t]=e)},"addStylesForDiagram"),s$=y2e});var q1={};ur(q1,{clear:()=>br,getAccDescription:()=>Ur,getAccTitle:()=>Gr,getDiagramTitle:()=>Qr,setAccDescription:()=>Vr,setAccTitle:()=>Ar,setDiagramTitle:()=>an});var cC,uC,hC,fC,br,Ar,Gr,Vr,Ur,an,Qr,Ci=_(()=>{"use strict";Qt();zs();cC="",uC="",hC="",fC=s(t=>$r(t,_r()),"sanitizeText"),br=s(()=>{cC="",hC="",uC=""},"clear"),Ar=s(t=>{cC=fC(t).replace(/^\s+/g,"")},"setAccTitle"),Gr=s(()=>cC,"getAccTitle"),Vr=s(t=>{hC=fC(t).replace(/\n\s+/g,`
`)},"setAccDescription"),Ur=s(()=>hC,"getAccDescription"),an=s(t=>{uC=fC(t)},"setDiagramTitle"),Qr=s(()=>uC,"getDiagramTitle")});var o$,v2e,le,pC,Qb,x2e,mC,b2e,Kb,Gf,W1,dC,gt=_(()=>{"use strict";Mf();it();zs();Qt();Un();lC();Ci();o$=V,v2e=E1,le=_r,pC=kb,Qb=ih,x2e=s(t=>$r(t,le()),"sanitizeText"),mC=ql,b2e=s(()=>q1,"getCommonDb"),Kb={},Gf=s((t,e,r)=>{Kb[t]&&o$.warn(`Diagram with id ${t} already registered. Overwriting.`),Kb[t]=e,r&&Q7(t,r),a$(t,e.styles),e.injectUtils?.(o$,v2e,le,x2e,mC,b2e(),()=>{})},"registerDiagram"),W1=s(t=>{if(t in Kb)return Kb[t];throw new dC(t)},"getDiagram"),dC=class extends Error{static{s(this,"DiagramNotFoundError")}constructor(e){super(`Diagram ${e} not found.`)}}});var Ko,fh,Ga,jo,Wl,H1,gC,yC,Zb,Jb,l$,k2e,w2e,T2e,E2e,C2e,S2e,_2e,A2e,L2e,D2e,R2e,M2e,I2e,N2e,O2e,P2e,B2e,c$,F2e,z2e,u$,$2e,G2e,V2e,U2e,dh,q2e,W2e,H2e,Y2e,X2e,Y1,vC=_(()=>{"use strict";gt();Qt();Ci();Ko=[],fh=[""],Ga="global",jo="",Wl=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],H1=[],gC="",yC=!1,Zb=4,Jb=2,k2e=s(function(){return l$},"getC4Type"),w2e=s(function(t){l$=$r(t,le())},"setC4Type"),T2e=s(function(t,e,r,n,i,a,o,l,u){if(t==null||e===void 0||e===null||r===void 0||r===null||n===void 0||n===null)return;let h={},f=H1.find(d=>d.from===e&&d.to===r);if(f?h=f:H1.push(h),h.type=t,h.from=e,h.to=r,h.label={text:n},i==null)h.techn={text:""};else if(typeof i=="object"){let[d,p]=Object.entries(i)[0];h[d]={text:p}}else h.techn={text:i};if(a==null)h.descr={text:""};else if(typeof a=="object"){let[d,p]=Object.entries(a)[0];h[d]={text:p}}else h.descr={text:a};if(typeof o=="object"){let[d,p]=Object.entries(o)[0];h[d]=p}else h.sprite=o;if(typeof l=="object"){let[d,p]=Object.entries(l)[0];h[d]=p}else h.tags=l;if(typeof u=="object"){let[d,p]=Object.entries(u)[0];h[d]=p}else h.link=u;h.wrap=dh()},"addRel"),E2e=s(function(t,e,r,n,i,a,o){if(e===null||r===null)return;let l={},u=Ko.find(h=>h.alias===e);if(u&&e===u.alias?l=u:(l.alias=e,Ko.push(l)),r==null?l.label={text:""}:l.label={text:r},n==null)l.descr={text:""};else if(typeof n=="object"){let[h,f]=Object.entries(n)[0];l[h]={text:f}}else l.descr={text:n};if(typeof i=="object"){let[h,f]=Object.entries(i)[0];l[h]=f}else l.sprite=i;if(typeof a=="object"){let[h,f]=Object.entries(a)[0];l[h]=f}else l.tags=a;if(typeof o=="object"){let[h,f]=Object.entries(o)[0];l[h]=f}else l.link=o;l.typeC4Shape={text:t},l.parentBoundary=Ga,l.wrap=dh()},"addPersonOrSystem"),C2e=s(function(t,e,r,n,i,a,o,l){if(e===null||r===null)return;let u={},h=Ko.find(f=>f.alias===e);if(h&&e===h.alias?u=h:(u.alias=e,Ko.push(u)),r==null?u.label={text:""}:u.label={text:r},n==null)u.techn={text:""};else if(typeof n=="object"){let[f,d]=Object.entries(n)[0];u[f]={text:d}}else u.techn={text:n};if(i==null)u.descr={text:""};else if(typeof i=="object"){let[f,d]=Object.entries(i)[0];u[f]={text:d}}else u.descr={text:i};if(typeof a=="object"){let[f,d]=Object.entries(a)[0];u[f]=d}else u.sprite=a;if(typeof o=="object"){let[f,d]=Object.entries(o)[0];u[f]=d}else u.tags=o;if(typeof l=="object"){let[f,d]=Object.entries(l)[0];u[f]=d}else u.link=l;u.wrap=dh(),u.typeC4Shape={text:t},u.parentBoundary=Ga},"addContainer"),S2e=s(function(t,e,r,n,i,a,o,l){if(e===null||r===null)return;let u={},h=Ko.find(f=>f.alias===e);if(h&&e===h.alias?u=h:(u.alias=e,Ko.push(u)),r==null?u.label={text:""}:u.label={text:r},n==null)u.techn={text:""};else if(typeof n=="object"){let[f,d]=Object.entries(n)[0];u[f]={text:d}}else u.techn={text:n};if(i==null)u.descr={text:""};else if(typeof i=="object"){let[f,d]=Object.entries(i)[0];u[f]={text:d}}else u.descr={text:i};if(typeof a=="object"){let[f,d]=Object.entries(a)[0];u[f]=d}else u.sprite=a;if(typeof o=="object"){let[f,d]=Object.entries(o)[0];u[f]=d}else u.tags=o;if(typeof l=="object"){let[f,d]=Object.entries(l)[0];u[f]=d}else u.link=l;u.wrap=dh(),u.typeC4Shape={text:t},u.parentBoundary=Ga},"addComponent"),_2e=s(function(t,e,r,n,i){if(t===null||e===null)return;let a={},o=Wl.find(l=>l.alias===t);if(o&&t===o.alias?a=o:(a.alias=t,Wl.push(a)),e==null?a.label={text:""}:a.label={text:e},r==null)a.type={text:"system"};else if(typeof r=="object"){let[l,u]=Object.entries(r)[0];a[l]={text:u}}else a.type={text:r};if(typeof n=="object"){let[l,u]=Object.entries(n)[0];a[l]=u}else a.tags=n;if(typeof i=="object"){let[l,u]=Object.entries(i)[0];a[l]=u}else a.link=i;a.parentBoundary=Ga,a.wrap=dh(),jo=Ga,Ga=t,fh.push(jo)},"addPersonOrSystemBoundary"),A2e=s(function(t,e,r,n,i){if(t===null||e===null)return;let a={},o=Wl.find(l=>l.alias===t);if(o&&t===o.alias?a=o:(a.alias=t,Wl.push(a)),e==null?a.label={text:""}:a.label={text:e},r==null)a.type={text:"container"};else if(typeof r=="object"){let[l,u]=Object.entries(r)[0];a[l]={text:u}}else a.type={text:r};if(typeof n=="object"){let[l,u]=Object.entries(n)[0];a[l]=u}else a.tags=n;if(typeof i=="object"){let[l,u]=Object.entries(i)[0];a[l]=u}else a.link=i;a.parentBoundary=Ga,a.wrap=dh(),jo=Ga,Ga=t,fh.push(jo)},"addContainerBoundary"),L2e=s(function(t,e,r,n,i,a,o,l){if(e===null||r===null)return;let u={},h=Wl.find(f=>f.alias===e);if(h&&e===h.alias?u=h:(u.alias=e,Wl.push(u)),r==null?u.label={text:""}:u.label={text:r},n==null)u.type={text:"node"};else if(typeof n=="object"){let[f,d]=Object.entries(n)[0];u[f]={text:d}}else u.type={text:n};if(i==null)u.descr={text:""};else if(typeof i=="object"){let[f,d]=Object.entries(i)[0];u[f]={text:d}}else u.descr={text:i};if(typeof o=="object"){let[f,d]=Object.entries(o)[0];u[f]=d}else u.tags=o;if(typeof l=="object"){let[f,d]=Object.entries(l)[0];u[f]=d}else u.link=l;u.nodeType=t,u.parentBoundary=Ga,u.wrap=dh(),jo=Ga,Ga=e,fh.push(jo)},"addDeploymentNode"),D2e=s(function(){Ga=jo,fh.pop(),jo=fh.pop(),fh.push(jo)},"popBoundaryParseStack"),R2e=s(function(t,e,r,n,i,a,o,l,u,h,f){let d=Ko.find(p=>p.alias===e);if(!(d===void 0&&(d=Wl.find(p=>p.alias===e),d===void 0))){if(r!=null)if(typeof r=="object"){let[p,m]=Object.entries(r)[0];d[p]=m}else d.bgColor=r;if(n!=null)if(typeof n=="object"){let[p,m]=Object.entries(n)[0];d[p]=m}else d.fontColor=n;if(i!=null)if(typeof i=="object"){let[p,m]=Object.entries(i)[0];d[p]=m}else d.borderColor=i;if(a!=null)if(typeof a=="object"){let[p,m]=Object.entries(a)[0];d[p]=m}else d.shadowing=a;if(o!=null)if(typeof o=="object"){let[p,m]=Object.entries(o)[0];d[p]=m}else d.shape=o;if(l!=null)if(typeof l=="object"){let[p,m]=Object.entries(l)[0];d[p]=m}else d.sprite=l;if(u!=null)if(typeof u=="object"){let[p,m]=Object.entries(u)[0];d[p]=m}else d.techn=u;if(h!=null)if(typeof h=="object"){let[p,m]=Object.entries(h)[0];d[p]=m}else d.legendText=h;if(f!=null)if(typeof f=="object"){let[p,m]=Object.entries(f)[0];d[p]=m}else d.legendSprite=f}},"updateElStyle"),M2e=s(function(t,e,r,n,i,a,o){let l=H1.find(u=>u.from===e&&u.to===r);if(l!==void 0){if(n!=null)if(typeof n=="object"){let[u,h]=Object.entries(n)[0];l[u]=h}else l.textColor=n;if(i!=null)if(typeof i=="object"){let[u,h]=Object.entries(i)[0];l[u]=h}else l.lineColor=i;if(a!=null)if(typeof a=="object"){let[u,h]=Object.entries(a)[0];l[u]=parseInt(h)}else l.offsetX=parseInt(a);if(o!=null)if(typeof o=="object"){let[u,h]=Object.entries(o)[0];l[u]=parseInt(h)}else l.offsetY=parseInt(o)}},"updateRelStyle"),I2e=s(function(t,e,r){let n=Zb,i=Jb;if(typeof e=="object"){let a=Object.values(e)[0];n=parseInt(a)}else n=parseInt(e);if(typeof r=="object"){let a=Object.values(r)[0];i=parseInt(a)}else i=parseInt(r);n>=1&&(Zb=n),i>=1&&(Jb=i)},"updateLayoutConfig"),N2e=s(function(){return Zb},"getC4ShapeInRow"),O2e=s(function(){return Jb},"getC4BoundaryInRow"),P2e=s(function(){return Ga},"getCurrentBoundaryParse"),B2e=s(function(){return jo},"getParentBoundaryParse"),c$=s(function(t){return t==null?Ko:Ko.filter(e=>e.parentBoundary===t)},"getC4ShapeArray"),F2e=s(function(t){return Ko.find(e=>e.alias===t)},"getC4Shape"),z2e=s(function(t){return Object.keys(c$(t))},"getC4ShapeKeys"),u$=s(function(t){return t==null?Wl:Wl.filter(e=>e.parentBoundary===t)},"getBoundaries"),$2e=u$,G2e=s(function(){return H1},"getRels"),V2e=s(function(){return gC},"getTitle"),U2e=s(function(t){yC=t},"setWrap"),dh=s(function(){return yC},"autoWrap"),q2e=s(function(){Ko=[],Wl=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],jo="",Ga="global",fh=[""],H1=[],fh=[""],gC="",yC=!1,Zb=4,Jb=2},"clear"),W2e={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},H2e={FILLED:0,OPEN:1},Y2e={LEFTOF:0,RIGHTOF:1,OVER:2},X2e=s(function(t){gC=$r(t,le())},"setTitle"),Y1={addPersonOrSystem:E2e,addPersonOrSystemBoundary:_2e,addContainer:C2e,addContainerBoundary:A2e,addComponent:S2e,addDeploymentNode:L2e,popBoundaryParseStack:D2e,addRel:T2e,updateElStyle:R2e,updateRelStyle:M2e,updateLayoutConfig:I2e,autoWrap:dh,setWrap:U2e,getC4ShapeArray:c$,getC4Shape:F2e,getC4ShapeKeys:z2e,getBoundaries:u$,getBoundarys:$2e,getCurrentBoundaryParse:P2e,getParentBoundaryParse:B2e,getRels:G2e,getTitle:V2e,getC4Type:k2e,getC4ShapeInRow:N2e,getC4BoundaryInRow:O2e,setAccTitle:Ar,getAccTitle:Gr,getAccDescription:Ur,setAccDescription:Vr,getConfig:s(()=>le().c4,"getConfig"),clear:q2e,LINETYPE:W2e,ARROWTYPE:H2e,PLACEMENT:Y2e,setTitle:X2e,setC4Type:w2e}});function Vf(t,e){return t==null||e==null?NaN:te?1:t>=e?0:NaN}var xC=_(()=>{"use strict";s(Vf,"ascending")});function bC(t,e){return t==null||e==null?NaN:et?1:e>=t?0:NaN}var h$=_(()=>{"use strict";s(bC,"descending")});function Uf(t){let e,r,n;t.length!==2?(e=Vf,r=s((l,u)=>Vf(t(l),u),"compare2"),n=s((l,u)=>t(l)-u,"delta")):(e=t===Vf||t===bC?t:j2e,r=t,n=t);function i(l,u,h=0,f=l.length){if(h>>1;r(l[d],u)<0?h=d+1:f=d}while(h>>1;r(l[d],u)<=0?h=d+1:f=d}while(hh&&n(l[d-1],u)>-n(l[d],u)?d-1:d}return s(o,"center"),{left:i,center:o,right:a}}function j2e(){return 0}var kC=_(()=>{"use strict";xC();h$();s(Uf,"bisector");s(j2e,"zero")});function wC(t){return t===null?NaN:+t}var f$=_(()=>{"use strict";s(wC,"number")});var d$,p$,K2e,Q2e,TC,m$=_(()=>{"use strict";xC();kC();f$();d$=Uf(Vf),p$=d$.right,K2e=d$.left,Q2e=Uf(wC).center,TC=p$});function g$({_intern:t,_key:e},r){let n=e(r);return t.has(n)?t.get(n):r}function Z2e({_intern:t,_key:e},r){let n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}function J2e({_intern:t,_key:e},r){let n=e(r);return t.has(n)&&(r=t.get(n),t.delete(n)),r}function exe(t){return t!==null&&typeof t=="object"?t.valueOf():t}var ap,y$=_(()=>{"use strict";ap=class extends Map{static{s(this,"InternMap")}constructor(e,r=exe){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(let[n,i]of e)this.set(n,i)}get(e){return super.get(g$(this,e))}has(e){return super.has(g$(this,e))}set(e,r){return super.set(Z2e(this,e),r)}delete(e){return super.delete(J2e(this,e))}};s(g$,"intern_get");s(Z2e,"intern_set");s(J2e,"intern_delete");s(exe,"keyof")});function e4(t,e,r){let n=(e-t)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=txe?10:a>=rxe?5:a>=nxe?2:1,l,u,h;return i<0?(h=Math.pow(10,-i)/o,l=Math.round(t*h),u=Math.round(e*h),l/he&&--u,h=-h):(h=Math.pow(10,i)*o,l=Math.round(t/h),u=Math.round(e/h),l*he&&--u),u0))return[];if(t===e)return[t];let n=e=i))return[];let l=a-i+1,u=new Array(l);if(n)if(o<0)for(let h=0;h{"use strict";txe=Math.sqrt(50),rxe=Math.sqrt(10),nxe=Math.sqrt(2);s(e4,"tickSpec");s(t4,"ticks");s(X1,"tickIncrement");s(sp,"tickStep")});function r4(t,e){let r;if(e===void 0)for(let n of t)n!=null&&(r=n)&&(r=n);else{let n=-1;for(let i of t)(i=e(i,++n,t))!=null&&(r=i)&&(r=i)}return r}var x$=_(()=>{"use strict";s(r4,"max")});function n4(t,e){let r;if(e===void 0)for(let n of t)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let i of t)(i=e(i,++n,t))!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}return r}var b$=_(()=>{"use strict";s(n4,"min")});function i4(t,e,r){t=+t,e=+e,r=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((e-t)/r))|0,a=new Array(i);++n{"use strict";s(i4,"range")});var ph=_(()=>{"use strict";m$();kC();x$();b$();k$();v$();y$()});function EC(t){return t}var w$=_(()=>{"use strict";s(EC,"default")});function ixe(t){return"translate("+t+",0)"}function axe(t){return"translate(0,"+t+")"}function sxe(t){return e=>+t(e)}function oxe(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}function lxe(){return!this.__axis}function E$(t,e){var r=[],n=null,i=null,a=6,o=6,l=3,u=typeof window<"u"&&window.devicePixelRatio>1?0:.5,h=t===s4||t===a4?-1:1,f=t===a4||t===CC?"x":"y",d=t===s4||t===SC?ixe:axe;function p(m){var g=n??(e.ticks?e.ticks.apply(e,r):e.domain()),y=i??(e.tickFormat?e.tickFormat.apply(e,r):EC),v=Math.max(a,0)+l,x=e.range(),b=+x[0]+u,k=+x[x.length-1]+u,A=(e.bandwidth?oxe:sxe)(e.copy(),u),w=m.selection?m.selection():m,T=w.selectAll(".domain").data([null]),C=w.selectAll(".tick").data(g,e).order(),E=C.exit(),S=C.enter().append("g").attr("class","tick"),R=C.select("line"),D=C.select("text");T=T.merge(T.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),C=C.merge(S),R=R.merge(S.append("line").attr("stroke","currentColor").attr(f+"2",h*a)),D=D.merge(S.append("text").attr("fill","currentColor").attr(f,h*v).attr("dy",t===s4?"0em":t===SC?"0.71em":"0.32em")),m!==w&&(T=T.transition(m),C=C.transition(m),R=R.transition(m),D=D.transition(m),E=E.transition(m).attr("opacity",T$).attr("transform",function(L){return isFinite(L=A(L))?d(L+u):this.getAttribute("transform")}),S.attr("opacity",T$).attr("transform",function(L){var P=this.parentNode.__axis;return d((P&&isFinite(P=P(L))?P:A(L))+u)})),E.remove(),T.attr("d",t===a4||t===CC?o?"M"+h*o+","+b+"H"+u+"V"+k+"H"+h*o:"M"+u+","+b+"V"+k:o?"M"+b+","+h*o+"V"+u+"H"+k+"V"+h*o:"M"+b+","+u+"H"+k),C.attr("opacity",1).attr("transform",function(L){return d(A(L)+u)}),R.attr(f+"2",h*a),D.attr(f,h*v).text(y),w.filter(lxe).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===CC?"start":t===a4?"end":"middle"),w.each(function(){this.__axis=A})}return s(p,"axis"),p.scale=function(m){return arguments.length?(e=m,p):e},p.ticks=function(){return r=Array.from(arguments),p},p.tickArguments=function(m){return arguments.length?(r=m==null?[]:Array.from(m),p):r.slice()},p.tickValues=function(m){return arguments.length?(n=m==null?null:Array.from(m),p):n&&n.slice()},p.tickFormat=function(m){return arguments.length?(i=m,p):i},p.tickSize=function(m){return arguments.length?(a=o=+m,p):a},p.tickSizeInner=function(m){return arguments.length?(a=+m,p):a},p.tickSizeOuter=function(m){return arguments.length?(o=+m,p):o},p.tickPadding=function(m){return arguments.length?(l=+m,p):l},p.offset=function(m){return arguments.length?(u=+m,p):u},p}function _C(t){return E$(s4,t)}function AC(t){return E$(SC,t)}var s4,CC,SC,a4,T$,C$=_(()=>{"use strict";w$();s4=1,CC=2,SC=3,a4=4,T$=1e-6;s(ixe,"translateX");s(axe,"translateY");s(sxe,"number");s(oxe,"center");s(lxe,"entering");s(E$,"axis");s(_C,"axisTop");s(AC,"axisBottom")});var S$=_(()=>{"use strict";C$()});function A$(){for(var t=0,e=arguments.length,r={},n;t=0&&(n=r.slice(i+1),r=r.slice(0,i)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:n}})}function hxe(t,e){for(var r=0,n=t.length,i;r{"use strict";cxe={value:s(()=>{},"value")};s(A$,"dispatch");s(o4,"Dispatch");s(uxe,"parseTypenames");o4.prototype=A$.prototype={constructor:o4,on:s(function(t,e){var r=this._,n=uxe(t+"",r),i,a=-1,o=n.length;if(arguments.length<2){for(;++a0)for(var r=new Array(i),n=0,i,a;n{"use strict";L$()});var l4,RC,MC=_(()=>{"use strict";l4="http://www.w3.org/1999/xhtml",RC={svg:"http://www.w3.org/2000/svg",xhtml:l4,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}});function Hl(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),RC.hasOwnProperty(e)?{space:RC[e],local:t}:t}var c4=_(()=>{"use strict";MC();s(Hl,"default")});function fxe(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===l4&&e.documentElement.namespaceURI===l4?e.createElement(t):e.createElementNS(r,t)}}function dxe(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function j1(t){var e=Hl(t);return(e.local?dxe:fxe)(e)}var IC=_(()=>{"use strict";c4();MC();s(fxe,"creatorInherit");s(dxe,"creatorFixed");s(j1,"default")});function pxe(){}function mh(t){return t==null?pxe:function(){return this.querySelector(t)}}var u4=_(()=>{"use strict";s(pxe,"none");s(mh,"default")});function NC(t){typeof t!="function"&&(t=mh(t));for(var e=this._groups,r=e.length,n=new Array(r),i=0;i{"use strict";Qo();u4();s(NC,"default")});function OC(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}var R$=_(()=>{"use strict";s(OC,"array")});function mxe(){return[]}function op(t){return t==null?mxe:function(){return this.querySelectorAll(t)}}var PC=_(()=>{"use strict";s(mxe,"empty");s(op,"default")});function gxe(t){return function(){return OC(t.apply(this,arguments))}}function BC(t){typeof t=="function"?t=gxe(t):t=op(t);for(var e=this._groups,r=e.length,n=[],i=[],a=0;a{"use strict";Qo();R$();PC();s(gxe,"arrayAll");s(BC,"default")});function lp(t){return function(){return this.matches(t)}}function h4(t){return function(e){return e.matches(t)}}var K1=_(()=>{"use strict";s(lp,"default");s(h4,"childMatcher")});function vxe(t){return function(){return yxe.call(this.children,t)}}function xxe(){return this.firstElementChild}function FC(t){return this.select(t==null?xxe:vxe(typeof t=="function"?t:h4(t)))}var yxe,I$=_(()=>{"use strict";K1();yxe=Array.prototype.find;s(vxe,"childFind");s(xxe,"childFirst");s(FC,"default")});function kxe(){return Array.from(this.children)}function wxe(t){return function(){return bxe.call(this.children,t)}}function zC(t){return this.selectAll(t==null?kxe:wxe(typeof t=="function"?t:h4(t)))}var bxe,N$=_(()=>{"use strict";K1();bxe=Array.prototype.filter;s(kxe,"children");s(wxe,"childrenFilter");s(zC,"default")});function $C(t){typeof t!="function"&&(t=lp(t));for(var e=this._groups,r=e.length,n=new Array(r),i=0;i{"use strict";Qo();K1();s($C,"default")});function Q1(t){return new Array(t.length)}var GC=_(()=>{"use strict";s(Q1,"default")});function VC(){return new qn(this._enter||this._groups.map(Q1),this._parents)}function Z1(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}var UC=_(()=>{"use strict";GC();Qo();s(VC,"default");s(Z1,"EnterNode");Z1.prototype={constructor:Z1,appendChild:s(function(t){return this._parent.insertBefore(t,this._next)},"appendChild"),insertBefore:s(function(t,e){return this._parent.insertBefore(t,e)},"insertBefore"),querySelector:s(function(t){return this._parent.querySelector(t)},"querySelector"),querySelectorAll:s(function(t){return this._parent.querySelectorAll(t)},"querySelectorAll")}});function qC(t){return function(){return t}}var P$=_(()=>{"use strict";s(qC,"default")});function Txe(t,e,r,n,i,a){for(var o=0,l,u=e.length,h=a.length;o=k&&(k=b+1);!(w=v[k])&&++k{"use strict";Qo();UC();P$();s(Txe,"bindIndex");s(Exe,"bindKey");s(Cxe,"datum");s(WC,"default");s(Sxe,"arraylike")});function HC(){return new qn(this._exit||this._groups.map(Q1),this._parents)}var F$=_(()=>{"use strict";GC();Qo();s(HC,"default")});function YC(t,e,r){var n=this.enter(),i=this,a=this.exit();return typeof t=="function"?(n=t(n),n&&(n=n.selection())):n=n.append(t+""),e!=null&&(i=e(i),i&&(i=i.selection())),r==null?a.remove():r(a),n&&i?n.merge(i).order():i}var z$=_(()=>{"use strict";s(YC,"default")});function XC(t){for(var e=t.selection?t.selection():t,r=this._groups,n=e._groups,i=r.length,a=n.length,o=Math.min(i,a),l=new Array(i),u=0;u{"use strict";Qo();s(XC,"default")});function jC(){for(var t=this._groups,e=-1,r=t.length;++e=0;)(o=n[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}var G$=_(()=>{"use strict";s(jC,"default")});function KC(t){t||(t=_xe);function e(d,p){return d&&p?t(d.__data__,p.__data__):!d-!p}s(e,"compareNode");for(var r=this._groups,n=r.length,i=new Array(n),a=0;ae?1:t>=e?0:NaN}var V$=_(()=>{"use strict";Qo();s(KC,"default");s(_xe,"ascending")});function QC(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}var U$=_(()=>{"use strict";s(QC,"default")});function ZC(){return Array.from(this)}var q$=_(()=>{"use strict";s(ZC,"default")});function JC(){for(var t=this._groups,e=0,r=t.length;e{"use strict";s(JC,"default")});function eS(){let t=0;for(let e of this)++t;return t}var H$=_(()=>{"use strict";s(eS,"default")});function tS(){return!this.node()}var Y$=_(()=>{"use strict";s(tS,"default")});function rS(t){for(var e=this._groups,r=0,n=e.length;r{"use strict";s(rS,"default")});function Axe(t){return function(){this.removeAttribute(t)}}function Lxe(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Dxe(t,e){return function(){this.setAttribute(t,e)}}function Rxe(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Mxe(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function Ixe(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function nS(t,e){var r=Hl(t);if(arguments.length<2){var n=this.node();return r.local?n.getAttributeNS(r.space,r.local):n.getAttribute(r)}return this.each((e==null?r.local?Lxe:Axe:typeof e=="function"?r.local?Ixe:Mxe:r.local?Rxe:Dxe)(r,e))}var j$=_(()=>{"use strict";c4();s(Axe,"attrRemove");s(Lxe,"attrRemoveNS");s(Dxe,"attrConstant");s(Rxe,"attrConstantNS");s(Mxe,"attrFunction");s(Ixe,"attrFunctionNS");s(nS,"default")});function J1(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}var iS=_(()=>{"use strict";s(J1,"default")});function Nxe(t){return function(){this.style.removeProperty(t)}}function Oxe(t,e,r){return function(){this.style.setProperty(t,e,r)}}function Pxe(t,e,r){return function(){var n=e.apply(this,arguments);n==null?this.style.removeProperty(t):this.style.setProperty(t,n,r)}}function aS(t,e,r){return arguments.length>1?this.each((e==null?Nxe:typeof e=="function"?Pxe:Oxe)(t,e,r??"")):gh(this.node(),t)}function gh(t,e){return t.style.getPropertyValue(e)||J1(t).getComputedStyle(t,null).getPropertyValue(e)}var sS=_(()=>{"use strict";iS();s(Nxe,"styleRemove");s(Oxe,"styleConstant");s(Pxe,"styleFunction");s(aS,"default");s(gh,"styleValue")});function Bxe(t){return function(){delete this[t]}}function Fxe(t,e){return function(){this[t]=e}}function zxe(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function oS(t,e){return arguments.length>1?this.each((e==null?Bxe:typeof e=="function"?zxe:Fxe)(t,e)):this.node()[t]}var K$=_(()=>{"use strict";s(Bxe,"propertyRemove");s(Fxe,"propertyConstant");s(zxe,"propertyFunction");s(oS,"default")});function Q$(t){return t.trim().split(/^|\s+/)}function lS(t){return t.classList||new Z$(t)}function Z$(t){this._node=t,this._names=Q$(t.getAttribute("class")||"")}function J$(t,e){for(var r=lS(t),n=-1,i=e.length;++n{"use strict";s(Q$,"classArray");s(lS,"classList");s(Z$,"ClassList");Z$.prototype={add:s(function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},"add"),remove:s(function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},"remove"),contains:s(function(t){return this._names.indexOf(t)>=0},"contains")};s(J$,"classedAdd");s(eG,"classedRemove");s($xe,"classedTrue");s(Gxe,"classedFalse");s(Vxe,"classedFunction");s(cS,"default")});function Uxe(){this.textContent=""}function qxe(t){return function(){this.textContent=t}}function Wxe(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function uS(t){return arguments.length?this.each(t==null?Uxe:(typeof t=="function"?Wxe:qxe)(t)):this.node().textContent}var rG=_(()=>{"use strict";s(Uxe,"textRemove");s(qxe,"textConstant");s(Wxe,"textFunction");s(uS,"default")});function Hxe(){this.innerHTML=""}function Yxe(t){return function(){this.innerHTML=t}}function Xxe(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function hS(t){return arguments.length?this.each(t==null?Hxe:(typeof t=="function"?Xxe:Yxe)(t)):this.node().innerHTML}var nG=_(()=>{"use strict";s(Hxe,"htmlRemove");s(Yxe,"htmlConstant");s(Xxe,"htmlFunction");s(hS,"default")});function jxe(){this.nextSibling&&this.parentNode.appendChild(this)}function fS(){return this.each(jxe)}var iG=_(()=>{"use strict";s(jxe,"raise");s(fS,"default")});function Kxe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function dS(){return this.each(Kxe)}var aG=_(()=>{"use strict";s(Kxe,"lower");s(dS,"default")});function pS(t){var e=typeof t=="function"?t:j1(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}var sG=_(()=>{"use strict";IC();s(pS,"default")});function Qxe(){return null}function mS(t,e){var r=typeof t=="function"?t:j1(t),n=e==null?Qxe:typeof e=="function"?e:mh(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),n.apply(this,arguments)||null)})}var oG=_(()=>{"use strict";IC();u4();s(Qxe,"constantNull");s(mS,"default")});function Zxe(){var t=this.parentNode;t&&t.removeChild(this)}function gS(){return this.each(Zxe)}var lG=_(()=>{"use strict";s(Zxe,"remove");s(gS,"default")});function Jxe(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function ebe(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function yS(t){return this.select(t?ebe:Jxe)}var cG=_(()=>{"use strict";s(Jxe,"selection_cloneShallow");s(ebe,"selection_cloneDeep");s(yS,"default")});function vS(t){return arguments.length?this.property("__data__",t):this.node().__data__}var uG=_(()=>{"use strict";s(vS,"default")});function tbe(t){return function(e){t.call(this,e,this.__data__)}}function rbe(t){return t.trim().split(/^|\s+/).map(function(e){var r="",n=e.indexOf(".");return n>=0&&(r=e.slice(n+1),e=e.slice(0,n)),{type:e,name:r}})}function nbe(t){return function(){var e=this.__on;if(e){for(var r=0,n=-1,i=e.length,a;r{"use strict";s(tbe,"contextListener");s(rbe,"parseTypenames");s(nbe,"onRemove");s(ibe,"onAdd");s(xS,"default")});function fG(t,e,r){var n=J1(t),i=n.CustomEvent;typeof i=="function"?i=new i(e,r):(i=n.document.createEvent("Event"),r?(i.initEvent(e,r.bubbles,r.cancelable),i.detail=r.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function abe(t,e){return function(){return fG(this,t,e)}}function sbe(t,e){return function(){return fG(this,t,e.apply(this,arguments))}}function bS(t,e){return this.each((typeof e=="function"?sbe:abe)(t,e))}var dG=_(()=>{"use strict";iS();s(fG,"dispatchEvent");s(abe,"dispatchConstant");s(sbe,"dispatchFunction");s(bS,"default")});function*kS(){for(var t=this._groups,e=0,r=t.length;e{"use strict";s(kS,"default")});function qn(t,e){this._groups=t,this._parents=e}function mG(){return new qn([[document.documentElement]],wS)}function obe(){return this}var wS,eu,Qo=_(()=>{"use strict";D$();M$();I$();N$();O$();B$();UC();F$();z$();$$();G$();V$();U$();q$();W$();H$();Y$();X$();j$();sS();K$();tG();rG();nG();iG();aG();sG();oG();lG();cG();uG();hG();dG();pG();wS=[null];s(qn,"Selection");s(mG,"selection");s(obe,"selection_selection");qn.prototype=mG.prototype={constructor:qn,select:NC,selectAll:BC,selectChild:FC,selectChildren:zC,filter:$C,data:WC,enter:VC,exit:HC,join:YC,merge:XC,selection:obe,order:jC,sort:KC,call:QC,nodes:ZC,node:JC,size:eS,empty:tS,each:rS,attr:nS,style:aS,property:oS,classed:cS,text:uS,html:hS,raise:fS,lower:dS,append:pS,insert:mS,remove:gS,clone:yS,datum:vS,on:xS,dispatch:bS,[Symbol.iterator]:kS};eu=mG});function Me(t){return typeof t=="string"?new qn([[document.querySelector(t)]],[document.documentElement]):new qn([[t]],wS)}var gG=_(()=>{"use strict";Qo();s(Me,"default")});var Zo=_(()=>{"use strict";K1();c4();gG();Qo();u4();PC();sS()});var yG=_(()=>{"use strict"});function yh(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function cp(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}var TS=_(()=>{"use strict";s(yh,"default");s(cp,"extend")});function vh(){}function xG(){return this.rgb().formatHex()}function mbe(){return this.rgb().formatHex8()}function gbe(){return SG(this).formatHsl()}function bG(){return this.rgb().formatRgb()}function el(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=lbe.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?kG(e):r===3?new Ji(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?f4(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?f4(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=cbe.exec(t))?new Ji(e[1],e[2],e[3],1):(e=ube.exec(t))?new Ji(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=hbe.exec(t))?f4(e[1],e[2],e[3],e[4]):(e=fbe.exec(t))?f4(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=dbe.exec(t))?EG(e[1],e[2]/100,e[3]/100,1):(e=pbe.exec(t))?EG(e[1],e[2]/100,e[3]/100,e[4]):vG.hasOwnProperty(t)?kG(vG[t]):t==="transparent"?new Ji(NaN,NaN,NaN,0):null}function kG(t){return new Ji(t>>16&255,t>>8&255,t&255,1)}function f4(t,e,r,n){return n<=0&&(t=e=r=NaN),new Ji(t,e,r,n)}function CS(t){return t instanceof vh||(t=el(t)),t?(t=t.rgb(),new Ji(t.r,t.g,t.b,t.opacity)):new Ji}function hp(t,e,r,n){return arguments.length===1?CS(t):new Ji(t,e,r,n??1)}function Ji(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function wG(){return`#${qf(this.r)}${qf(this.g)}${qf(this.b)}`}function ybe(){return`#${qf(this.r)}${qf(this.g)}${qf(this.b)}${qf((isNaN(this.opacity)?1:this.opacity)*255)}`}function TG(){let t=m4(this.opacity);return`${t===1?"rgb(":"rgba("}${Wf(this.r)}, ${Wf(this.g)}, ${Wf(this.b)}${t===1?")":`, ${t})`}`}function m4(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Wf(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function qf(t){return t=Wf(t),(t<16?"0":"")+t.toString(16)}function EG(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Jo(t,e,r,n)}function SG(t){if(t instanceof Jo)return new Jo(t.h,t.s,t.l,t.opacity);if(t instanceof vh||(t=el(t)),!t)return new Jo;if(t instanceof Jo)return t;t=t.rgb();var e=t.r/255,r=t.g/255,n=t.b/255,i=Math.min(e,r,n),a=Math.max(e,r,n),o=NaN,l=a-i,u=(a+i)/2;return l?(e===a?o=(r-n)/l+(r0&&u<1?0:o,new Jo(o,l,u,t.opacity)}function _G(t,e,r,n){return arguments.length===1?SG(t):new Jo(t,e,r,n??1)}function Jo(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function CG(t){return t=(t||0)%360,t<0?t+360:t}function d4(t){return Math.max(0,Math.min(1,t||0))}function ES(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}var ey,p4,up,ty,Yl,lbe,cbe,ube,hbe,fbe,dbe,pbe,vG,SS=_(()=>{"use strict";TS();s(vh,"Color");ey=.7,p4=1/ey,up="\\s*([+-]?\\d+)\\s*",ty="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Yl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",lbe=/^#([0-9a-f]{3,8})$/,cbe=new RegExp(`^rgb\\(${up},${up},${up}\\)$`),ube=new RegExp(`^rgb\\(${Yl},${Yl},${Yl}\\)$`),hbe=new RegExp(`^rgba\\(${up},${up},${up},${ty}\\)$`),fbe=new RegExp(`^rgba\\(${Yl},${Yl},${Yl},${ty}\\)$`),dbe=new RegExp(`^hsl\\(${ty},${Yl},${Yl}\\)$`),pbe=new RegExp(`^hsla\\(${ty},${Yl},${Yl},${ty}\\)$`),vG={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};yh(vh,el,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:xG,formatHex:xG,formatHex8:mbe,formatHsl:gbe,formatRgb:bG,toString:bG});s(xG,"color_formatHex");s(mbe,"color_formatHex8");s(gbe,"color_formatHsl");s(bG,"color_formatRgb");s(el,"color");s(kG,"rgbn");s(f4,"rgba");s(CS,"rgbConvert");s(hp,"rgb");s(Ji,"Rgb");yh(Ji,hp,cp(vh,{brighter(t){return t=t==null?p4:Math.pow(p4,t),new Ji(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?ey:Math.pow(ey,t),new Ji(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Ji(Wf(this.r),Wf(this.g),Wf(this.b),m4(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:wG,formatHex:wG,formatHex8:ybe,formatRgb:TG,toString:TG}));s(wG,"rgb_formatHex");s(ybe,"rgb_formatHex8");s(TG,"rgb_formatRgb");s(m4,"clampa");s(Wf,"clampi");s(qf,"hex");s(EG,"hsla");s(SG,"hslConvert");s(_G,"hsl");s(Jo,"Hsl");yh(Jo,_G,cp(vh,{brighter(t){return t=t==null?p4:Math.pow(p4,t),new Jo(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?ey:Math.pow(ey,t),new Jo(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,i=2*r-n;return new Ji(ES(t>=240?t-240:t+120,i,n),ES(t,i,n),ES(t<120?t+240:t-120,i,n),this.opacity)},clamp(){return new Jo(CG(this.h),d4(this.s),d4(this.l),m4(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=m4(this.opacity);return`${t===1?"hsl(":"hsla("}${CG(this.h)}, ${d4(this.s)*100}%, ${d4(this.l)*100}%${t===1?")":`, ${t})`}`}}));s(CG,"clamph");s(d4,"clampt");s(ES,"hsl2rgb")});var AG,LG,DG=_(()=>{"use strict";AG=Math.PI/180,LG=180/Math.PI});function PG(t){if(t instanceof Xl)return new Xl(t.l,t.a,t.b,t.opacity);if(t instanceof tu)return BG(t);t instanceof Ji||(t=CS(t));var e=DS(t.r),r=DS(t.g),n=DS(t.b),i=_S((.2225045*e+.7168786*r+.0606169*n)/MG),a,o;return e===r&&r===n?a=o=i:(a=_S((.4360747*e+.3850649*r+.1430804*n)/RG),o=_S((.0139322*e+.0971045*r+.7141733*n)/IG)),new Xl(116*i-16,500*(a-i),200*(i-o),t.opacity)}function RS(t,e,r,n){return arguments.length===1?PG(t):new Xl(t,e,r,n??1)}function Xl(t,e,r,n){this.l=+t,this.a=+e,this.b=+r,this.opacity=+n}function _S(t){return t>vbe?Math.pow(t,1/3):t/OG+NG}function AS(t){return t>fp?t*t*t:OG*(t-NG)}function LS(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function DS(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function xbe(t){if(t instanceof tu)return new tu(t.h,t.c,t.l,t.opacity);if(t instanceof Xl||(t=PG(t)),t.a===0&&t.b===0)return new tu(NaN,0{"use strict";TS();SS();DG();g4=18,RG=.96422,MG=1,IG=.82521,NG=4/29,fp=6/29,OG=3*fp*fp,vbe=fp*fp*fp;s(PG,"labConvert");s(RS,"lab");s(Xl,"Lab");yh(Xl,RS,cp(vh,{brighter(t){return new Xl(this.l+g4*(t??1),this.a,this.b,this.opacity)},darker(t){return new Xl(this.l-g4*(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=RG*AS(e),t=MG*AS(t),r=IG*AS(r),new Ji(LS(3.1338561*e-1.6168667*t-.4906146*r),LS(-.9787684*e+1.9161415*t+.033454*r),LS(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}}));s(_S,"xyz2lab");s(AS,"lab2xyz");s(LS,"lrgb2rgb");s(DS,"rgb2lrgb");s(xbe,"hclConvert");s(ry,"hcl");s(tu,"Hcl");s(BG,"hcl2lab");yh(tu,ry,cp(vh,{brighter(t){return new tu(this.h,this.c,this.l+g4*(t??1),this.opacity)},darker(t){return new tu(this.h,this.c,this.l-g4*(t??1),this.opacity)},rgb(){return BG(this).rgb()}}))});var dp=_(()=>{"use strict";SS();FG()});function MS(t,e,r,n,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*r+(1+3*t+3*a-3*o)*n+o*i)/6}function IS(t){var e=t.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),i=t[n],a=t[n+1],o=n>0?t[n-1]:2*i-a,l=n{"use strict";s(MS,"basis");s(IS,"default")});function OS(t){var e=t.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*e),i=t[(n+e-1)%e],a=t[n%e],o=t[(n+1)%e],l=t[(n+2)%e];return MS((r-n/e)*e,i,a,o,l)}}var zG=_(()=>{"use strict";NS();s(OS,"default")});var pp,PS=_(()=>{"use strict";pp=s(t=>()=>t,"default")});function $G(t,e){return function(r){return t+r*e}}function bbe(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}function GG(t,e){var r=e-t;return r?$G(t,r>180||r<-180?r-360*Math.round(r/360):r):pp(isNaN(t)?e:t)}function VG(t){return(t=+t)==1?ru:function(e,r){return r-e?bbe(e,r,t):pp(isNaN(e)?r:e)}}function ru(t,e){var r=e-t;return r?$G(t,r):pp(isNaN(t)?e:t)}var BS=_(()=>{"use strict";PS();s($G,"linear");s(bbe,"exponential");s(GG,"hue");s(VG,"gamma");s(ru,"nogamma")});function UG(t){return function(e){var r=e.length,n=new Array(r),i=new Array(r),a=new Array(r),o,l;for(o=0;o{"use strict";dp();NS();zG();BS();Hf=s(function t(e){var r=VG(e);function n(i,a){var o=r((i=hp(i)).r,(a=hp(a)).r),l=r(i.g,a.g),u=r(i.b,a.b),h=ru(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=l(f),i.b=u(f),i.opacity=h(f),i+""}}return s(n,"rgb"),n.gamma=t,n},"rgbGamma")(1);s(UG,"rgbSpline");kbe=UG(IS),wbe=UG(OS)});function zS(t,e){e||(e=[]);var r=t?Math.min(e.length,t.length):0,n=e.slice(),i;return function(a){for(i=0;i{"use strict";s(zS,"default");s(qG,"isNumberArray")});function HG(t,e){var r=e?e.length:0,n=t?Math.min(r,t.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o{"use strict";y4();s(HG,"genericArray")});function $S(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}var XG=_(()=>{"use strict";s($S,"default")});function $i(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}var ny=_(()=>{"use strict";s($i,"default")});function GS(t,e){var r={},n={},i;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(i in e)i in t?r[i]=xh(t[i],e[i]):n[i]=e[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var jG=_(()=>{"use strict";y4();s(GS,"default")});function Tbe(t){return function(){return t}}function Ebe(t){return function(e){return t(e)+""}}function mp(t,e){var r=US.lastIndex=VS.lastIndex=0,n,i,a,o=-1,l=[],u=[];for(t=t+"",e=e+"";(n=US.exec(t))&&(i=VS.exec(e));)(a=i.index)>r&&(a=e.slice(r,a),l[o]?l[o]+=a:l[++o]=a),(n=n[0])===(i=i[0])?l[o]?l[o]+=i:l[++o]=i:(l[++o]=null,u.push({i:o,x:$i(n,i)})),r=VS.lastIndex;return r{"use strict";ny();US=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,VS=new RegExp(US.source,"g");s(Tbe,"zero");s(Ebe,"one");s(mp,"default")});function xh(t,e){var r=typeof e,n;return e==null||r==="boolean"?pp(e):(r==="number"?$i:r==="string"?(n=el(e))?(e=n,Hf):mp:e instanceof el?Hf:e instanceof Date?$S:qG(e)?zS:Array.isArray(e)?HG:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?GS:$i)(t,e)}var y4=_(()=>{"use strict";dp();FS();YG();XG();ny();jG();qS();PS();WG();s(xh,"default")});function v4(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}var KG=_(()=>{"use strict";s(v4,"default")});function b4(t,e,r,n,i,a){var o,l,u;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(u=t*r+e*n)&&(r-=t*u,n-=e*u),(l=Math.sqrt(r*r+n*n))&&(r/=l,n/=l,u/=l),t*n{"use strict";QG=180/Math.PI,x4={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};s(b4,"default")});function JG(t){let e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?x4:b4(e.a,e.b,e.c,e.d,e.e,e.f)}function eV(t){return t==null?x4:(k4||(k4=document.createElementNS("http://www.w3.org/2000/svg","g")),k4.setAttribute("transform",t),(t=k4.transform.baseVal.consolidate())?(t=t.matrix,b4(t.a,t.b,t.c,t.d,t.e,t.f)):x4)}var k4,tV=_(()=>{"use strict";ZG();s(JG,"parseCss");s(eV,"parseSvg")});function rV(t,e,r,n){function i(h){return h.length?h.pop()+" ":""}s(i,"pop");function a(h,f,d,p,m,g){if(h!==d||f!==p){var y=m.push("translate(",null,e,null,r);g.push({i:y-4,x:$i(h,d)},{i:y-2,x:$i(f,p)})}else(d||p)&&m.push("translate("+d+e+p+r)}s(a,"translate");function o(h,f,d,p){h!==f?(h-f>180?f+=360:f-h>180&&(h+=360),p.push({i:d.push(i(d)+"rotate(",null,n)-2,x:$i(h,f)})):f&&d.push(i(d)+"rotate("+f+n)}s(o,"rotate");function l(h,f,d,p){h!==f?p.push({i:d.push(i(d)+"skewX(",null,n)-2,x:$i(h,f)}):f&&d.push(i(d)+"skewX("+f+n)}s(l,"skewX");function u(h,f,d,p,m,g){if(h!==d||f!==p){var y=m.push(i(m)+"scale(",null,",",null,")");g.push({i:y-4,x:$i(h,d)},{i:y-2,x:$i(f,p)})}else(d!==1||p!==1)&&m.push(i(m)+"scale("+d+","+p+")")}return s(u,"scale"),function(h,f){var d=[],p=[];return h=t(h),f=t(f),a(h.translateX,h.translateY,f.translateX,f.translateY,d,p),o(h.rotate,f.rotate,d,p),l(h.skewX,f.skewX,d,p),u(h.scaleX,h.scaleY,f.scaleX,f.scaleY,d,p),h=f=null,function(m){for(var g=-1,y=p.length,v;++g{"use strict";ny();tV();s(rV,"interpolateTransform");WS=rV(JG,"px, ","px)","deg)"),HS=rV(eV,", ",")",")")});function iV(t){return function(e,r){var n=t((e=ry(e)).h,(r=ry(r)).h),i=ru(e.c,r.c),a=ru(e.l,r.l),o=ru(e.opacity,r.opacity);return function(l){return e.h=n(l),e.c=i(l),e.l=a(l),e.opacity=o(l),e+""}}}var YS,Cbe,aV=_(()=>{"use strict";dp();BS();s(iV,"hcl");YS=iV(GG),Cbe=iV(ru)});var gp=_(()=>{"use strict";y4();ny();KG();qS();nV();FS();aV()});function cy(){return Yf||(lV(Sbe),Yf=oy.now()+E4)}function Sbe(){Yf=0}function ly(){this._call=this._time=this._next=null}function C4(t,e,r){var n=new ly;return n.restart(t,e,r),n}function cV(){cy(),++yp;for(var t=w4,e;t;)(e=Yf-t._time)>=0&&t._call.call(void 0,e),t=t._next;--yp}function sV(){Yf=(T4=oy.now())+E4,yp=ay=0;try{cV()}finally{yp=0,Abe(),Yf=0}}function _be(){var t=oy.now(),e=t-T4;e>oV&&(E4-=e,T4=t)}function Abe(){for(var t,e=w4,r,n=1/0;e;)e._call?(n>e._time&&(n=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:w4=r);sy=t,XS(n)}function XS(t){if(!yp){ay&&(ay=clearTimeout(ay));var e=t-Yf;e>24?(t<1/0&&(ay=setTimeout(sV,t-oy.now()-E4)),iy&&(iy=clearInterval(iy))):(iy||(T4=oy.now(),iy=setInterval(_be,oV)),yp=1,lV(sV))}}var yp,ay,iy,oV,w4,sy,T4,Yf,E4,oy,lV,jS=_(()=>{"use strict";yp=0,ay=0,iy=0,oV=1e3,T4=0,Yf=0,E4=0,oy=typeof performance=="object"&&performance.now?performance:Date,lV=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};s(cy,"now");s(Sbe,"clearNow");s(ly,"Timer");ly.prototype=C4.prototype={constructor:ly,restart:s(function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?cy():+r)+(e==null?0:+e),!this._next&&sy!==this&&(sy?sy._next=this:w4=this,sy=this),this._call=t,this._time=r,XS()},"restart"),stop:s(function(){this._call&&(this._call=null,this._time=1/0,XS())},"stop")};s(C4,"timer");s(cV,"timerFlush");s(sV,"wake");s(_be,"poke");s(Abe,"nap");s(XS,"sleep")});function uy(t,e,r){var n=new ly;return e=e==null?0:+e,n.restart(i=>{n.stop(),t(i+e)},e,r),n}var uV=_(()=>{"use strict";jS();s(uy,"default")});var S4=_(()=>{"use strict";jS();uV()});function nu(t,e,r,n,i,a){var o=t.__transition;if(!o)t.__transition={};else if(r in o)return;Rbe(t,r,{name:e,index:n,group:i,on:Lbe,tween:Dbe,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:dV})}function fy(t,e){var r=Si(t,e);if(r.state>dV)throw new Error("too late; already scheduled");return r}function ea(t,e){var r=Si(t,e);if(r.state>_4)throw new Error("too late; already running");return r}function Si(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function Rbe(t,e,r){var n=t.__transition,i;n[e]=r,r.timer=C4(a,0,r.time);function a(h){r.state=hV,r.timer.restart(o,r.delay,r.time),r.delay<=h&&o(h-r.delay)}s(a,"schedule");function o(h){var f,d,p,m;if(r.state!==hV)return u();for(f in n)if(m=n[f],m.name===r.name){if(m.state===_4)return uy(o);m.state===fV?(m.state=hy,m.timer.stop(),m.on.call("interrupt",t,t.__data__,m.index,m.group),delete n[f]):+f{"use strict";DC();S4();Lbe=LC("start","end","cancel","interrupt"),Dbe=[],dV=0,hV=1,A4=2,_4=3,fV=4,L4=5,hy=6;s(nu,"default");s(fy,"init");s(ea,"set");s(Si,"get");s(Rbe,"create")});function dy(t,e){var r=t.__transition,n,i,a=!0,o;if(r){e=e==null?null:e+"";for(o in r){if((n=r[o]).name!==e){a=!1;continue}i=n.state>A4&&n.state{"use strict";us();s(dy,"default")});function KS(t){return this.each(function(){dy(this,t)})}var mV=_(()=>{"use strict";pV();s(KS,"default")});function Mbe(t,e){var r,n;return function(){var i=ea(this,t),a=i.tween;if(a!==r){n=r=a;for(var o=0,l=n.length;o{"use strict";us();s(Mbe,"tweenRemove");s(Ibe,"tweenFunction");s(QS,"default");s(vp,"tweenValue")});function my(t,e){var r;return(typeof e=="number"?$i:e instanceof el?Hf:(r=el(e))?(e=r,Hf):mp)(t,e)}var ZS=_(()=>{"use strict";dp();gp();s(my,"default")});function Nbe(t){return function(){this.removeAttribute(t)}}function Obe(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Pbe(t,e,r){var n,i=r+"",a;return function(){var o=this.getAttribute(t);return o===i?null:o===n?a:a=e(n=o,r)}}function Bbe(t,e,r){var n,i=r+"",a;return function(){var o=this.getAttributeNS(t.space,t.local);return o===i?null:o===n?a:a=e(n=o,r)}}function Fbe(t,e,r){var n,i,a;return function(){var o,l=r(this),u;return l==null?void this.removeAttribute(t):(o=this.getAttribute(t),u=l+"",o===u?null:o===n&&u===i?a:(i=u,a=e(n=o,l)))}}function zbe(t,e,r){var n,i,a;return function(){var o,l=r(this),u;return l==null?void this.removeAttributeNS(t.space,t.local):(o=this.getAttributeNS(t.space,t.local),u=l+"",o===u?null:o===n&&u===i?a:(i=u,a=e(n=o,l)))}}function JS(t,e){var r=Hl(t),n=r==="transform"?HS:my;return this.attrTween(t,typeof e=="function"?(r.local?zbe:Fbe)(r,n,vp(this,"attr."+t,e)):e==null?(r.local?Obe:Nbe)(r):(r.local?Bbe:Pbe)(r,n,e))}var gV=_(()=>{"use strict";gp();Zo();py();ZS();s(Nbe,"attrRemove");s(Obe,"attrRemoveNS");s(Pbe,"attrConstant");s(Bbe,"attrConstantNS");s(Fbe,"attrFunction");s(zbe,"attrFunctionNS");s(JS,"default")});function $be(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function Gbe(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function Vbe(t,e){var r,n;function i(){var a=e.apply(this,arguments);return a!==n&&(r=(n=a)&&Gbe(t,a)),r}return s(i,"tween"),i._value=e,i}function Ube(t,e){var r,n;function i(){var a=e.apply(this,arguments);return a!==n&&(r=(n=a)&&$be(t,a)),r}return s(i,"tween"),i._value=e,i}function e8(t,e){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;var n=Hl(t);return this.tween(r,(n.local?Vbe:Ube)(n,e))}var yV=_(()=>{"use strict";Zo();s($be,"attrInterpolate");s(Gbe,"attrInterpolateNS");s(Vbe,"attrTweenNS");s(Ube,"attrTween");s(e8,"default")});function qbe(t,e){return function(){fy(this,t).delay=+e.apply(this,arguments)}}function Wbe(t,e){return e=+e,function(){fy(this,t).delay=e}}function t8(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?qbe:Wbe)(e,t)):Si(this.node(),e).delay}var vV=_(()=>{"use strict";us();s(qbe,"delayFunction");s(Wbe,"delayConstant");s(t8,"default")});function Hbe(t,e){return function(){ea(this,t).duration=+e.apply(this,arguments)}}function Ybe(t,e){return e=+e,function(){ea(this,t).duration=e}}function r8(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Hbe:Ybe)(e,t)):Si(this.node(),e).duration}var xV=_(()=>{"use strict";us();s(Hbe,"durationFunction");s(Ybe,"durationConstant");s(r8,"default")});function Xbe(t,e){if(typeof e!="function")throw new Error;return function(){ea(this,t).ease=e}}function n8(t){var e=this._id;return arguments.length?this.each(Xbe(e,t)):Si(this.node(),e).ease}var bV=_(()=>{"use strict";us();s(Xbe,"easeConstant");s(n8,"default")});function jbe(t,e){return function(){var r=e.apply(this,arguments);if(typeof r!="function")throw new Error;ea(this,t).ease=r}}function i8(t){if(typeof t!="function")throw new Error;return this.each(jbe(this._id,t))}var kV=_(()=>{"use strict";us();s(jbe,"easeVarying");s(i8,"default")});function a8(t){typeof t!="function"&&(t=lp(t));for(var e=this._groups,r=e.length,n=new Array(r),i=0;i{"use strict";Zo();Xf();s(a8,"default")});function s8(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,r=t._groups,n=e.length,i=r.length,a=Math.min(n,i),o=new Array(n),l=0;l{"use strict";Xf();s(s8,"default")});function Kbe(t){return(t+"").trim().split(/^|\s+/).every(function(e){var r=e.indexOf(".");return r>=0&&(e=e.slice(0,r)),!e||e==="start"})}function Qbe(t,e,r){var n,i,a=Kbe(e)?fy:ea;return function(){var o=a(this,t),l=o.on;l!==n&&(i=(n=l).copy()).on(e,r),o.on=i}}function o8(t,e){var r=this._id;return arguments.length<2?Si(this.node(),r).on.on(t):this.each(Qbe(r,t,e))}var EV=_(()=>{"use strict";us();s(Kbe,"start");s(Qbe,"onFunction");s(o8,"default")});function Zbe(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}function l8(){return this.on("end.remove",Zbe(this._id))}var CV=_(()=>{"use strict";s(Zbe,"removeFunction");s(l8,"default")});function c8(t){var e=this._name,r=this._id;typeof t!="function"&&(t=mh(t));for(var n=this._groups,i=n.length,a=new Array(i),o=0;o{"use strict";Zo();Xf();us();s(c8,"default")});function u8(t){var e=this._name,r=this._id;typeof t!="function"&&(t=op(t));for(var n=this._groups,i=n.length,a=[],o=[],l=0;l{"use strict";Zo();Xf();us();s(u8,"default")});function h8(){return new Jbe(this._groups,this._parents)}var Jbe,AV=_(()=>{"use strict";Zo();Jbe=eu.prototype.constructor;s(h8,"default")});function e4e(t,e){var r,n,i;return function(){var a=gh(this,t),o=(this.style.removeProperty(t),gh(this,t));return a===o?null:a===r&&o===n?i:i=e(r=a,n=o)}}function LV(t){return function(){this.style.removeProperty(t)}}function t4e(t,e,r){var n,i=r+"",a;return function(){var o=gh(this,t);return o===i?null:o===n?a:a=e(n=o,r)}}function r4e(t,e,r){var n,i,a;return function(){var o=gh(this,t),l=r(this),u=l+"";return l==null&&(u=l=(this.style.removeProperty(t),gh(this,t))),o===u?null:o===n&&u===i?a:(i=u,a=e(n=o,l))}}function n4e(t,e){var r,n,i,a="style."+e,o="end."+a,l;return function(){var u=ea(this,t),h=u.on,f=u.value[a]==null?l||(l=LV(e)):void 0;(h!==r||i!==f)&&(n=(r=h).copy()).on(o,i=f),u.on=n}}function f8(t,e,r){var n=(t+="")=="transform"?WS:my;return e==null?this.styleTween(t,e4e(t,n)).on("end.style."+t,LV(t)):typeof e=="function"?this.styleTween(t,r4e(t,n,vp(this,"style."+t,e))).each(n4e(this._id,t)):this.styleTween(t,t4e(t,n,e),r).on("end.style."+t,null)}var DV=_(()=>{"use strict";gp();Zo();us();py();ZS();s(e4e,"styleNull");s(LV,"styleRemove");s(t4e,"styleConstant");s(r4e,"styleFunction");s(n4e,"styleMaybeRemove");s(f8,"default")});function i4e(t,e,r){return function(n){this.style.setProperty(t,e.call(this,n),r)}}function a4e(t,e,r){var n,i;function a(){var o=e.apply(this,arguments);return o!==i&&(n=(i=o)&&i4e(t,o,r)),n}return s(a,"tween"),a._value=e,a}function d8(t,e,r){var n="style."+(t+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;return this.tween(n,a4e(t,e,r??""))}var RV=_(()=>{"use strict";s(i4e,"styleInterpolate");s(a4e,"styleTween");s(d8,"default")});function s4e(t){return function(){this.textContent=t}}function o4e(t){return function(){var e=t(this);this.textContent=e??""}}function p8(t){return this.tween("text",typeof t=="function"?o4e(vp(this,"text",t)):s4e(t==null?"":t+""))}var MV=_(()=>{"use strict";py();s(s4e,"textConstant");s(o4e,"textFunction");s(p8,"default")});function l4e(t){return function(e){this.textContent=t.call(this,e)}}function c4e(t){var e,r;function n(){var i=t.apply(this,arguments);return i!==r&&(e=(r=i)&&l4e(i)),e}return s(n,"tween"),n._value=t,n}function m8(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,c4e(t))}var IV=_(()=>{"use strict";s(l4e,"textInterpolate");s(c4e,"textTween");s(m8,"default")});function g8(){for(var t=this._name,e=this._id,r=D4(),n=this._groups,i=n.length,a=0;a{"use strict";Xf();us();s(g8,"default")});function y8(){var t,e,r=this,n=r._id,i=r.size();return new Promise(function(a,o){var l={value:o},u={value:s(function(){--i===0&&a()},"value")};r.each(function(){var h=ea(this,n),f=h.on;f!==t&&(e=(t=f).copy(),e._.cancel.push(l),e._.interrupt.push(l),e._.end.push(u)),h.on=e}),i===0&&a()})}var OV=_(()=>{"use strict";us();s(y8,"default")});function Va(t,e,r,n){this._groups=t,this._parents=e,this._name=r,this._id=n}function PV(t){return eu().transition(t)}function D4(){return++u4e}var u4e,iu,Xf=_(()=>{"use strict";Zo();gV();yV();vV();xV();bV();kV();wV();TV();EV();CV();SV();_V();AV();DV();RV();MV();IV();NV();py();OV();u4e=0;s(Va,"Transition");s(PV,"transition");s(D4,"newId");iu=eu.prototype;Va.prototype=PV.prototype={constructor:Va,select:c8,selectAll:u8,selectChild:iu.selectChild,selectChildren:iu.selectChildren,filter:a8,merge:s8,selection:h8,transition:g8,call:iu.call,nodes:iu.nodes,node:iu.node,size:iu.size,empty:iu.empty,each:iu.each,on:o8,attr:JS,attrTween:e8,style:f8,styleTween:d8,text:p8,textTween:m8,remove:l8,tween:QS,delay:t8,duration:r8,ease:n8,easeVarying:i8,end:y8,[Symbol.iterator]:iu[Symbol.iterator]}});function R4(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var BV=_(()=>{"use strict";s(R4,"cubicInOut")});var v8=_(()=>{"use strict";BV()});function f4e(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}function x8(t){var e,r;t instanceof Va?(e=t._id,t=t._name):(e=D4(),(r=h4e).time=cy(),t=t==null?null:t+"");for(var n=this._groups,i=n.length,a=0;a{"use strict";Xf();us();v8();S4();h4e={time:null,delay:0,duration:250,ease:R4};s(f4e,"inherit");s(x8,"default")});var zV=_(()=>{"use strict";Zo();mV();FV();eu.prototype.interrupt=KS;eu.prototype.transition=x8});var M4=_(()=>{"use strict";zV()});var $V=_(()=>{"use strict"});var GV=_(()=>{"use strict"});var VV=_(()=>{"use strict"});function UV(t){return[+t[0],+t[1]]}function d4e(t){return[UV(t[0]),UV(t[1])]}function b8(t){return{type:t}}var tft,rft,nft,ift,aft,sft,qV=_(()=>{"use strict";M4();$V();GV();VV();({abs:tft,max:rft,min:nft}=Math);s(UV,"number1");s(d4e,"number2");ift={name:"x",handles:["w","e"].map(b8),input:s(function(t,e){return t==null?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},"input"),output:s(function(t){return t&&[t[0][0],t[1][0]]},"output")},aft={name:"y",handles:["n","s"].map(b8),input:s(function(t,e){return t==null?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},"input"),output:s(function(t){return t&&[t[0][1],t[1][1]]},"output")},sft={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(b8),input:s(function(t){return t==null?null:d4e(t)},"input"),output:s(function(t){return t},"output")};s(b8,"type")});var WV=_(()=>{"use strict";qV()});function HV(t){this._+=t[0];for(let e=1,r=t.length;e=0))throw new Error(`invalid digits: ${t}`);if(e>15)return HV;let r=10**e;return function(n){this._+=n[0];for(let i=1,a=n.length;i{"use strict";k8=Math.PI,w8=2*k8,jf=1e-6,p4e=w8-jf;s(HV,"append");s(m4e,"appendRound");Kf=class{static{s(this,"Path")}constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?HV:m4e(e)}moveTo(e,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,r){this._append`L${this._x1=+e},${this._y1=+r}`}quadraticCurveTo(e,r,n,i){this._append`Q${+e},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(e,r,n,i,a,o){this._append`C${+e},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(e,r,n,i,a){if(e=+e,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,l=this._y1,u=n-e,h=i-r,f=o-e,d=l-r,p=f*f+d*d;if(this._x1===null)this._append`M${this._x1=e},${this._y1=r}`;else if(p>jf)if(!(Math.abs(d*u-h*f)>jf)||!a)this._append`L${this._x1=e},${this._y1=r}`;else{let m=n-o,g=i-l,y=u*u+h*h,v=m*m+g*g,x=Math.sqrt(y),b=Math.sqrt(p),k=a*Math.tan((k8-Math.acos((y+p-v)/(2*x*b)))/2),A=k/b,w=k/x;Math.abs(A-1)>jf&&this._append`L${e+A*f},${r+A*d}`,this._append`A${a},${a},0,0,${+(d*m>f*g)},${this._x1=e+w*u},${this._y1=r+w*h}`}}arc(e,r,n,i,a,o){if(e=+e,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let l=n*Math.cos(i),u=n*Math.sin(i),h=e+l,f=r+u,d=1^o,p=o?i-a:a-i;this._x1===null?this._append`M${h},${f}`:(Math.abs(this._x1-h)>jf||Math.abs(this._y1-f)>jf)&&this._append`L${h},${f}`,n&&(p<0&&(p=p%w8+w8),p>p4e?this._append`A${n},${n},0,1,${d},${e-l},${r-u}A${n},${n},0,1,${d},${this._x1=h},${this._y1=f}`:p>jf&&this._append`A${n},${n},0,${+(p>=k8)},${d},${this._x1=e+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(e,r,n,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}};s(YV,"path");YV.prototype=Kf.prototype});var T8=_(()=>{"use strict";XV()});var jV=_(()=>{"use strict"});var KV=_(()=>{"use strict"});var QV=_(()=>{"use strict"});var ZV=_(()=>{"use strict"});var JV=_(()=>{"use strict"});var eU=_(()=>{"use strict"});var tU=_(()=>{"use strict"});function E8(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Qf(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}var gy=_(()=>{"use strict";s(E8,"default");s(Qf,"formatDecimalParts")});function tl(t){return t=Qf(Math.abs(t)),t?t[1]:NaN}var yy=_(()=>{"use strict";gy();s(tl,"default")});function C8(t,e){return function(r,n){for(var i=r.length,a=[],o=0,l=t[0],u=0;i>0&&l>0&&(u+l+1>n&&(l=Math.max(1,n-u)),a.push(r.substring(i-=l,i+l)),!((u+=l+1)>n));)l=t[o=(o+1)%t.length];return a.reverse().join(e)}}var rU=_(()=>{"use strict";s(C8,"default")});function S8(t){return function(e){return e.replace(/[0-9]/g,function(r){return t[+r]})}}var nU=_(()=>{"use strict";s(S8,"default")});function bh(t){if(!(e=g4e.exec(t)))throw new Error("invalid format: "+t);var e;return new I4({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function I4(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}var g4e,_8=_(()=>{"use strict";g4e=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;s(bh,"formatSpecifier");bh.prototype=I4.prototype;s(I4,"FormatSpecifier");I4.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type}});function A8(t){e:for(var e=t.length,r=1,n=-1,i;r0&&(n=0);break}return n>0?t.slice(0,n)+t.slice(i+1):t}var iU=_(()=>{"use strict";s(A8,"default")});function D8(t,e){var r=Qf(t,e);if(!r)return t+"";var n=r[0],i=r[1],a=i-(L8=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+Qf(t,Math.max(0,e+a-1))[0]}var L8,R8=_(()=>{"use strict";gy();s(D8,"default")});function N4(t,e){var r=Qf(t,e);if(!r)return t+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}var aU=_(()=>{"use strict";gy();s(N4,"default")});var M8,sU=_(()=>{"use strict";gy();R8();aU();M8={"%":s((t,e)=>(t*100).toFixed(e),"%"),b:s(t=>Math.round(t).toString(2),"b"),c:s(t=>t+"","c"),d:E8,e:s((t,e)=>t.toExponential(e),"e"),f:s((t,e)=>t.toFixed(e),"f"),g:s((t,e)=>t.toPrecision(e),"g"),o:s(t=>Math.round(t).toString(8),"o"),p:s((t,e)=>N4(t*100,e),"p"),r:N4,s:D8,X:s(t=>Math.round(t).toString(16).toUpperCase(),"X"),x:s(t=>Math.round(t).toString(16),"x")}});function O4(t){return t}var oU=_(()=>{"use strict";s(O4,"default")});function I8(t){var e=t.grouping===void 0||t.thousands===void 0?O4:C8(lU.call(t.grouping,Number),t.thousands+""),r=t.currency===void 0?"":t.currency[0]+"",n=t.currency===void 0?"":t.currency[1]+"",i=t.decimal===void 0?".":t.decimal+"",a=t.numerals===void 0?O4:S8(lU.call(t.numerals,String)),o=t.percent===void 0?"%":t.percent+"",l=t.minus===void 0?"\u2212":t.minus+"",u=t.nan===void 0?"NaN":t.nan+"";function h(d){d=bh(d);var p=d.fill,m=d.align,g=d.sign,y=d.symbol,v=d.zero,x=d.width,b=d.comma,k=d.precision,A=d.trim,w=d.type;w==="n"?(b=!0,w="g"):M8[w]||(k===void 0&&(k=12),A=!0,w="g"),(v||p==="0"&&m==="=")&&(v=!0,p="0",m="=");var T=y==="$"?r:y==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",C=y==="$"?n:/[%p]/.test(w)?o:"",E=M8[w],S=/[defgprs%]/.test(w);k=k===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,k)):Math.max(0,Math.min(20,k));function R(D){var L=T,P=C,M,F,I;if(w==="c")P=E(D)+P,D="";else{D=+D;var O=D<0||1/D<0;if(D=isNaN(D)?u:E(Math.abs(D),k),A&&(D=A8(D)),O&&+D==0&&g!=="+"&&(O=!1),L=(O?g==="("?g:l:g==="-"||g==="("?"":g)+L,P=(w==="s"?cU[8+L8/3]:"")+P+(O&&g==="("?")":""),S){for(M=-1,F=D.length;++MI||I>57){P=(I===46?i+D.slice(M+1):D.slice(M))+P,D=D.slice(0,M);break}}}b&&!v&&(D=e(D,1/0));var z=L.length+D.length+P.length,N=z>1)+L+D+P+N.slice(z);break;default:D=N+L+D+P;break}return a(D)}return s(R,"format"),R.toString=function(){return d+""},R}s(h,"newFormat");function f(d,p){var m=h((d=bh(d),d.type="f",d)),g=Math.max(-8,Math.min(8,Math.floor(tl(p)/3)))*3,y=Math.pow(10,-g),v=cU[8+g/3];return function(x){return m(y*x)+v}}return s(f,"formatPrefix"),{format:h,formatPrefix:f}}var lU,cU,uU=_(()=>{"use strict";yy();rU();nU();_8();iU();sU();R8();oU();lU=Array.prototype.map,cU=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];s(I8,"default")});function N8(t){return P4=I8(t),B4=P4.format,F4=P4.formatPrefix,P4}var P4,B4,F4,hU=_(()=>{"use strict";uU();N8({thousands:",",grouping:[3],currency:["$",""]});s(N8,"defaultLocale")});function z4(t){return Math.max(0,-tl(Math.abs(t)))}var fU=_(()=>{"use strict";yy();s(z4,"default")});function $4(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(tl(e)/3)))*3-tl(Math.abs(t)))}var dU=_(()=>{"use strict";yy();s($4,"default")});function G4(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,tl(e)-tl(t))+1}var pU=_(()=>{"use strict";yy();s(G4,"default")});var O8=_(()=>{"use strict";hU();_8();fU();dU();pU()});var mU=_(()=>{"use strict"});var gU=_(()=>{"use strict"});var yU=_(()=>{"use strict"});var vU=_(()=>{"use strict"});function kh(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}var vy=_(()=>{"use strict";s(kh,"initRange")});function au(){var t=new ap,e=[],r=[],n=P8;function i(a){let o=t.get(a);if(o===void 0){if(n!==P8)return n;t.set(a,o=e.push(a)-1)}return r[o%r.length]}return s(i,"scale"),i.domain=function(a){if(!arguments.length)return e.slice();e=[],t=new ap;for(let o of a)t.has(o)||t.set(o,e.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return au(e,r).unknown(n)},kh.apply(i,arguments),i}var P8,B8=_(()=>{"use strict";ph();vy();P8=Symbol("implicit");s(au,"ordinal")});function xp(){var t=au().unknown(void 0),e=t.domain,r=t.range,n=0,i=1,a,o,l=!1,u=0,h=0,f=.5;delete t.unknown;function d(){var p=e().length,m=i{"use strict";ph();vy();B8();s(xp,"band")});function F8(t){return function(){return t}}var bU=_(()=>{"use strict";s(F8,"constants")});function z8(t){return+t}var kU=_(()=>{"use strict";s(z8,"number")});function bp(t){return t}function $8(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:F8(isNaN(e)?NaN:.5)}function y4e(t,e){var r;return t>e&&(r=t,t=e,e=r),function(n){return Math.max(t,Math.min(e,n))}}function v4e(t,e,r){var n=t[0],i=t[1],a=e[0],o=e[1];return i2?x4e:v4e,u=h=null,d}s(f,"rescale");function d(p){return p==null||isNaN(p=+p)?a:(u||(u=l(t.map(n),e,r)))(n(o(p)))}return s(d,"scale"),d.invert=function(p){return o(i((h||(h=l(e,t.map(n),$i)))(p)))},d.domain=function(p){return arguments.length?(t=Array.from(p,z8),f()):t.slice()},d.range=function(p){return arguments.length?(e=Array.from(p),f()):e.slice()},d.rangeRound=function(p){return e=Array.from(p),r=v4,f()},d.clamp=function(p){return arguments.length?(o=p?!0:bp,f()):o!==bp},d.interpolate=function(p){return arguments.length?(r=p,f()):r},d.unknown=function(p){return arguments.length?(a=p,d):a},function(p,m){return n=p,i=m,f()}}function xy(){return b4e()(bp,bp)}var wU,G8=_(()=>{"use strict";ph();gp();bU();kU();wU=[0,1];s(bp,"identity");s($8,"normalize");s(y4e,"clamper");s(v4e,"bimap");s(x4e,"polymap");s(V4,"copy");s(b4e,"transformer");s(xy,"continuous")});function V8(t,e,r,n){var i=sp(t,e,r),a;switch(n=bh(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(t),Math.abs(e));return n.precision==null&&!isNaN(a=$4(i,o))&&(n.precision=a),F4(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=G4(i,Math.max(Math.abs(t),Math.abs(e))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=z4(i))&&(n.precision=a-(n.type==="%")*2);break}}return B4(n)}var TU=_(()=>{"use strict";ph();O8();s(V8,"tickFormat")});function k4e(t){var e=t.domain;return t.ticks=function(r){var n=e();return t4(n[0],n[n.length-1],r??10)},t.tickFormat=function(r,n){var i=e();return V8(i[0],i[i.length-1],r??10,n)},t.nice=function(r){r==null&&(r=10);var n=e(),i=0,a=n.length-1,o=n[i],l=n[a],u,h,f=10;for(l0;){if(h=X1(o,l,r),h===u)return n[i]=o,n[a]=l,e(n);if(h>0)o=Math.floor(o/h)*h,l=Math.ceil(l/h)*h;else if(h<0)o=Math.ceil(o*h)/h,l=Math.floor(l*h)/h;else break;u=h}return t},t}function rl(){var t=xy();return t.copy=function(){return V4(t,rl())},kh.apply(t,arguments),k4e(t)}var EU=_(()=>{"use strict";ph();G8();vy();TU();s(k4e,"linearish");s(rl,"linear")});function U8(t,e){t=t.slice();var r=0,n=t.length-1,i=t[r],a=t[n],o;return a{"use strict";s(U8,"nice")});function sn(t,e,r,n){function i(a){return t(a=arguments.length===0?new Date:new Date(+a)),a}return s(i,"interval"),i.floor=a=>(t(a=new Date(+a)),a),i.ceil=a=>(t(a=new Date(a-1)),e(a,1),t(a),a),i.round=a=>{let o=i(a),l=i.ceil(a);return a-o(e(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,l)=>{let u=[];if(a=i.ceil(a),l=l==null?1:Math.floor(l),!(a0))return u;let h;do u.push(h=new Date(+a)),e(a,l),t(a);while(hsn(o=>{if(o>=o)for(;t(o),!a(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;e(o,-1),!a(o););else for(;--l>=0;)for(;e(o,1),!a(o););}),r&&(i.count=(a,o)=>(q8.setTime(+a),W8.setTime(+o),t(q8),t(W8),Math.floor(r(q8,W8))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}var q8,W8,su=_(()=>{"use strict";q8=new Date,W8=new Date;s(sn,"timeInterval")});var jl,SU,H8=_(()=>{"use strict";su();jl=sn(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);jl.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?sn(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):jl);SU=jl.range});var Vs,_U,Y8=_(()=>{"use strict";su();Vs=sn(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*1e3)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds()),_U=Vs.range});var ou,w4e,U4,T4e,X8=_(()=>{"use strict";su();ou=sn(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*1e3)},(t,e)=>{t.setTime(+t+e*6e4)},(t,e)=>(e-t)/6e4,t=>t.getMinutes()),w4e=ou.range,U4=sn(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*6e4)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes()),T4e=U4.range});var lu,E4e,q4,C4e,j8=_(()=>{"use strict";su();lu=sn(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*1e3-t.getMinutes()*6e4)},(t,e)=>{t.setTime(+t+e*36e5)},(t,e)=>(e-t)/36e5,t=>t.getHours()),E4e=lu.range,q4=sn(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*36e5)},(t,e)=>(e-t)/36e5,t=>t.getUTCHours()),C4e=q4.range});var vo,S4e,ky,_4e,W4,A4e,K8=_(()=>{"use strict";su();vo=sn(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/864e5,t=>t.getDate()-1),S4e=vo.range,ky=sn(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1),_4e=ky.range,W4=sn(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>Math.floor(t/864e5)),A4e=W4.range});function ed(t){return sn(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,r)=>{e.setDate(e.getDate()+r*7)},(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/6048e5)}function td(t){return sn(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r*7)},(e,r)=>(r-e)/6048e5)}var nl,wh,H4,Y4,Ql,X4,j4,LU,L4e,D4e,R4e,M4e,I4e,N4e,rd,kp,DU,RU,Th,MU,IU,NU,O4e,P4e,B4e,F4e,z4e,$4e,Q8=_(()=>{"use strict";su();s(ed,"timeWeekday");nl=ed(0),wh=ed(1),H4=ed(2),Y4=ed(3),Ql=ed(4),X4=ed(5),j4=ed(6),LU=nl.range,L4e=wh.range,D4e=H4.range,R4e=Y4.range,M4e=Ql.range,I4e=X4.range,N4e=j4.range;s(td,"utcWeekday");rd=td(0),kp=td(1),DU=td(2),RU=td(3),Th=td(4),MU=td(5),IU=td(6),NU=rd.range,O4e=kp.range,P4e=DU.range,B4e=RU.range,F4e=Th.range,z4e=MU.range,$4e=IU.range});var cu,G4e,K4,V4e,Z8=_(()=>{"use strict";su();cu=sn(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth()),G4e=cu.range,K4=sn(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth()),V4e=K4.range});var Us,U4e,il,q4e,J8=_(()=>{"use strict";su();Us=sn(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());Us.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:sn(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)});U4e=Us.range,il=sn(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());il.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:sn(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)});q4e=il.range});function PU(t,e,r,n,i,a){let o=[[Vs,1,1e3],[Vs,5,5*1e3],[Vs,15,15*1e3],[Vs,30,30*1e3],[a,1,6e4],[a,5,5*6e4],[a,15,15*6e4],[a,30,30*6e4],[i,1,36e5],[i,3,3*36e5],[i,6,6*36e5],[i,12,12*36e5],[n,1,864e5],[n,2,2*864e5],[r,1,6048e5],[e,1,2592e6],[e,3,3*2592e6],[t,1,31536e6]];function l(h,f,d){let p=fv).right(o,p);if(m===o.length)return t.every(sp(h/31536e6,f/31536e6,d));if(m===0)return jl.every(Math.max(sp(h,f,d),1));let[g,y]=o[p/o[m-1][2]{"use strict";ph();H8();Y8();X8();j8();K8();Q8();Z8();J8();s(PU,"ticker");[H4e,Y4e]=PU(il,K4,rd,W4,q4,U4),[e_,t_]=PU(Us,cu,nl,vo,lu,ou)});var Q4=_(()=>{"use strict";H8();Y8();X8();j8();K8();Q8();Z8();J8();BU()});function r_(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function n_(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function wy(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}function i_(t){var e=t.dateTime,r=t.date,n=t.time,i=t.periods,a=t.days,o=t.shortDays,l=t.months,u=t.shortMonths,h=Ty(i),f=Ey(i),d=Ty(a),p=Ey(a),m=Ty(o),g=Ey(o),y=Ty(l),v=Ey(l),x=Ty(u),b=Ey(u),k={a:O,A:z,b:N,B:U,c:null,d:UU,e:UU,f:g3e,g:S3e,G:A3e,H:d3e,I:p3e,j:m3e,L:XU,m:y3e,M:v3e,p:$,q:W,Q:HU,s:YU,S:x3e,u:b3e,U:k3e,V:w3e,w:T3e,W:E3e,x:null,X:null,y:C3e,Y:_3e,Z:L3e,"%":WU},A={a:ee,A:te,b:ce,B:Z,c:null,d:qU,e:qU,f:I3e,g:U3e,G:W3e,H:D3e,I:R3e,j:M3e,L:KU,m:N3e,M:O3e,p:fe,q:ne,Q:HU,s:YU,S:P3e,u:B3e,U:F3e,V:z3e,w:$3e,W:G3e,x:null,X:null,y:V3e,Y:q3e,Z:H3e,"%":WU},w={a:R,A:D,b:L,B:P,c:M,d:GU,e:GU,f:c3e,g:$U,G:zU,H:VU,I:VU,j:a3e,L:l3e,m:i3e,M:s3e,p:S,q:n3e,Q:h3e,s:f3e,S:o3e,u:Z4e,U:J4e,V:e3e,w:Q4e,W:t3e,x:F,X:I,y:$U,Y:zU,Z:r3e,"%":u3e};k.x=T(r,k),k.X=T(n,k),k.c=T(e,k),A.x=T(r,A),A.X=T(n,A),A.c=T(e,A);function T(H,Q){return function(K){var re=[],ie=-1,ye=0,j=H.length,De,oe,Re;for(K instanceof Date||(K=new Date(+K));++ie53)return null;"w"in re||(re.w=1),"Z"in re?(ye=n_(wy(re.y,0,1)),j=ye.getUTCDay(),ye=j>4||j===0?kp.ceil(ye):kp(ye),ye=ky.offset(ye,(re.V-1)*7),re.y=ye.getUTCFullYear(),re.m=ye.getUTCMonth(),re.d=ye.getUTCDate()+(re.w+6)%7):(ye=r_(wy(re.y,0,1)),j=ye.getDay(),ye=j>4||j===0?wh.ceil(ye):wh(ye),ye=vo.offset(ye,(re.V-1)*7),re.y=ye.getFullYear(),re.m=ye.getMonth(),re.d=ye.getDate()+(re.w+6)%7)}else("W"in re||"U"in re)&&("w"in re||(re.w="u"in re?re.u%7:"W"in re?1:0),j="Z"in re?n_(wy(re.y,0,1)).getUTCDay():r_(wy(re.y,0,1)).getDay(),re.m=0,re.d="W"in re?(re.w+6)%7+re.W*7-(j+5)%7:re.w+re.U*7-(j+6)%7);return"Z"in re?(re.H+=re.Z/100|0,re.M+=re.Z%100,n_(re)):r_(re)}}s(C,"newParse");function E(H,Q,K,re){for(var ie=0,ye=Q.length,j=K.length,De,oe;ie=j)return-1;if(De=Q.charCodeAt(ie++),De===37){if(De=Q.charAt(ie++),oe=w[De in FU?Q.charAt(ie++):De],!oe||(re=oe(H,K,re))<0)return-1}else if(De!=K.charCodeAt(re++))return-1}return re}s(E,"parseSpecifier");function S(H,Q,K){var re=h.exec(Q.slice(K));return re?(H.p=f.get(re[0].toLowerCase()),K+re[0].length):-1}s(S,"parsePeriod");function R(H,Q,K){var re=m.exec(Q.slice(K));return re?(H.w=g.get(re[0].toLowerCase()),K+re[0].length):-1}s(R,"parseShortWeekday");function D(H,Q,K){var re=d.exec(Q.slice(K));return re?(H.w=p.get(re[0].toLowerCase()),K+re[0].length):-1}s(D,"parseWeekday");function L(H,Q,K){var re=x.exec(Q.slice(K));return re?(H.m=b.get(re[0].toLowerCase()),K+re[0].length):-1}s(L,"parseShortMonth");function P(H,Q,K){var re=y.exec(Q.slice(K));return re?(H.m=v.get(re[0].toLowerCase()),K+re[0].length):-1}s(P,"parseMonth");function M(H,Q,K){return E(H,e,Q,K)}s(M,"parseLocaleDateTime");function F(H,Q,K){return E(H,r,Q,K)}s(F,"parseLocaleDate");function I(H,Q,K){return E(H,n,Q,K)}s(I,"parseLocaleTime");function O(H){return o[H.getDay()]}s(O,"formatShortWeekday");function z(H){return a[H.getDay()]}s(z,"formatWeekday");function N(H){return u[H.getMonth()]}s(N,"formatShortMonth");function U(H){return l[H.getMonth()]}s(U,"formatMonth");function $(H){return i[+(H.getHours()>=12)]}s($,"formatPeriod");function W(H){return 1+~~(H.getMonth()/3)}s(W,"formatQuarter");function ee(H){return o[H.getUTCDay()]}s(ee,"formatUTCShortWeekday");function te(H){return a[H.getUTCDay()]}s(te,"formatUTCWeekday");function ce(H){return u[H.getUTCMonth()]}s(ce,"formatUTCShortMonth");function Z(H){return l[H.getUTCMonth()]}s(Z,"formatUTCMonth");function fe(H){return i[+(H.getUTCHours()>=12)]}s(fe,"formatUTCPeriod");function ne(H){return 1+~~(H.getUTCMonth()/3)}return s(ne,"formatUTCQuarter"),{format:s(function(H){var Q=T(H+="",k);return Q.toString=function(){return H},Q},"format"),parse:s(function(H){var Q=C(H+="",!1);return Q.toString=function(){return H},Q},"parse"),utcFormat:s(function(H){var Q=T(H+="",A);return Q.toString=function(){return H},Q},"utcFormat"),utcParse:s(function(H){var Q=C(H+="",!0);return Q.toString=function(){return H},Q},"utcParse")}}function Lr(t,e,r){var n=t<0?"-":"",i=(n?-t:t)+"",a=i.length;return n+(a[e.toLowerCase(),r]))}function Q4e(t,e,r){var n=Gi.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function Z4e(t,e,r){var n=Gi.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function J4e(t,e,r){var n=Gi.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function e3e(t,e,r){var n=Gi.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function t3e(t,e,r){var n=Gi.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function zU(t,e,r){var n=Gi.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function $U(t,e,r){var n=Gi.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function r3e(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function n3e(t,e,r){var n=Gi.exec(e.slice(r,r+1));return n?(t.q=n[0]*3-3,r+n[0].length):-1}function i3e(t,e,r){var n=Gi.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function GU(t,e,r){var n=Gi.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function a3e(t,e,r){var n=Gi.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function VU(t,e,r){var n=Gi.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function s3e(t,e,r){var n=Gi.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function o3e(t,e,r){var n=Gi.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function l3e(t,e,r){var n=Gi.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function c3e(t,e,r){var n=Gi.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function u3e(t,e,r){var n=X4e.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function h3e(t,e,r){var n=Gi.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function f3e(t,e,r){var n=Gi.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function UU(t,e){return Lr(t.getDate(),e,2)}function d3e(t,e){return Lr(t.getHours(),e,2)}function p3e(t,e){return Lr(t.getHours()%12||12,e,2)}function m3e(t,e){return Lr(1+vo.count(Us(t),t),e,3)}function XU(t,e){return Lr(t.getMilliseconds(),e,3)}function g3e(t,e){return XU(t,e)+"000"}function y3e(t,e){return Lr(t.getMonth()+1,e,2)}function v3e(t,e){return Lr(t.getMinutes(),e,2)}function x3e(t,e){return Lr(t.getSeconds(),e,2)}function b3e(t){var e=t.getDay();return e===0?7:e}function k3e(t,e){return Lr(nl.count(Us(t)-1,t),e,2)}function jU(t){var e=t.getDay();return e>=4||e===0?Ql(t):Ql.ceil(t)}function w3e(t,e){return t=jU(t),Lr(Ql.count(Us(t),t)+(Us(t).getDay()===4),e,2)}function T3e(t){return t.getDay()}function E3e(t,e){return Lr(wh.count(Us(t)-1,t),e,2)}function C3e(t,e){return Lr(t.getFullYear()%100,e,2)}function S3e(t,e){return t=jU(t),Lr(t.getFullYear()%100,e,2)}function _3e(t,e){return Lr(t.getFullYear()%1e4,e,4)}function A3e(t,e){var r=t.getDay();return t=r>=4||r===0?Ql(t):Ql.ceil(t),Lr(t.getFullYear()%1e4,e,4)}function L3e(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Lr(e/60|0,"0",2)+Lr(e%60,"0",2)}function qU(t,e){return Lr(t.getUTCDate(),e,2)}function D3e(t,e){return Lr(t.getUTCHours(),e,2)}function R3e(t,e){return Lr(t.getUTCHours()%12||12,e,2)}function M3e(t,e){return Lr(1+ky.count(il(t),t),e,3)}function KU(t,e){return Lr(t.getUTCMilliseconds(),e,3)}function I3e(t,e){return KU(t,e)+"000"}function N3e(t,e){return Lr(t.getUTCMonth()+1,e,2)}function O3e(t,e){return Lr(t.getUTCMinutes(),e,2)}function P3e(t,e){return Lr(t.getUTCSeconds(),e,2)}function B3e(t){var e=t.getUTCDay();return e===0?7:e}function F3e(t,e){return Lr(rd.count(il(t)-1,t),e,2)}function QU(t){var e=t.getUTCDay();return e>=4||e===0?Th(t):Th.ceil(t)}function z3e(t,e){return t=QU(t),Lr(Th.count(il(t),t)+(il(t).getUTCDay()===4),e,2)}function $3e(t){return t.getUTCDay()}function G3e(t,e){return Lr(kp.count(il(t)-1,t),e,2)}function V3e(t,e){return Lr(t.getUTCFullYear()%100,e,2)}function U3e(t,e){return t=QU(t),Lr(t.getUTCFullYear()%100,e,2)}function q3e(t,e){return Lr(t.getUTCFullYear()%1e4,e,4)}function W3e(t,e){var r=t.getUTCDay();return t=r>=4||r===0?Th(t):Th.ceil(t),Lr(t.getUTCFullYear()%1e4,e,4)}function H3e(){return"+0000"}function WU(){return"%"}function HU(t){return+t}function YU(t){return Math.floor(+t/1e3)}var FU,Gi,X4e,j4e,ZU=_(()=>{"use strict";Q4();s(r_,"localDate");s(n_,"utcDate");s(wy,"newDate");s(i_,"formatLocale");FU={"-":"",_:" ",0:"0"},Gi=/^\s*\d+/,X4e=/^%/,j4e=/[\\^$*+?|[\]().{}]/g;s(Lr,"pad");s(K4e,"requote");s(Ty,"formatRe");s(Ey,"formatLookup");s(Q4e,"parseWeekdayNumberSunday");s(Z4e,"parseWeekdayNumberMonday");s(J4e,"parseWeekNumberSunday");s(e3e,"parseWeekNumberISO");s(t3e,"parseWeekNumberMonday");s(zU,"parseFullYear");s($U,"parseYear");s(r3e,"parseZone");s(n3e,"parseQuarter");s(i3e,"parseMonthNumber");s(GU,"parseDayOfMonth");s(a3e,"parseDayOfYear");s(VU,"parseHour24");s(s3e,"parseMinutes");s(o3e,"parseSeconds");s(l3e,"parseMilliseconds");s(c3e,"parseMicroseconds");s(u3e,"parseLiteralPercent");s(h3e,"parseUnixTimestamp");s(f3e,"parseUnixTimestampSeconds");s(UU,"formatDayOfMonth");s(d3e,"formatHour24");s(p3e,"formatHour12");s(m3e,"formatDayOfYear");s(XU,"formatMilliseconds");s(g3e,"formatMicroseconds");s(y3e,"formatMonthNumber");s(v3e,"formatMinutes");s(x3e,"formatSeconds");s(b3e,"formatWeekdayNumberMonday");s(k3e,"formatWeekNumberSunday");s(jU,"dISO");s(w3e,"formatWeekNumberISO");s(T3e,"formatWeekdayNumberSunday");s(E3e,"formatWeekNumberMonday");s(C3e,"formatYear");s(S3e,"formatYearISO");s(_3e,"formatFullYear");s(A3e,"formatFullYearISO");s(L3e,"formatZone");s(qU,"formatUTCDayOfMonth");s(D3e,"formatUTCHour24");s(R3e,"formatUTCHour12");s(M3e,"formatUTCDayOfYear");s(KU,"formatUTCMilliseconds");s(I3e,"formatUTCMicroseconds");s(N3e,"formatUTCMonthNumber");s(O3e,"formatUTCMinutes");s(P3e,"formatUTCSeconds");s(B3e,"formatUTCWeekdayNumberMonday");s(F3e,"formatUTCWeekNumberSunday");s(QU,"UTCdISO");s(z3e,"formatUTCWeekNumberISO");s($3e,"formatUTCWeekdayNumberSunday");s(G3e,"formatUTCWeekNumberMonday");s(V3e,"formatUTCYear");s(U3e,"formatUTCYearISO");s(q3e,"formatUTCFullYear");s(W3e,"formatUTCFullYearISO");s(H3e,"formatUTCZone");s(WU,"formatLiteralPercent");s(HU,"formatUnixTimestamp");s(YU,"formatUnixTimestampSeconds")});function a_(t){return wp=i_(t),nd=wp.format,JU=wp.parse,eq=wp.utcFormat,tq=wp.utcParse,wp}var wp,nd,JU,eq,tq,rq=_(()=>{"use strict";ZU();a_({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});s(a_,"defaultLocale")});var s_=_(()=>{"use strict";rq()});function Y3e(t){return new Date(t)}function X3e(t){return t instanceof Date?+t:+new Date(+t)}function nq(t,e,r,n,i,a,o,l,u,h){var f=xy(),d=f.invert,p=f.domain,m=h(".%L"),g=h(":%S"),y=h("%I:%M"),v=h("%I %p"),x=h("%a %d"),b=h("%b %d"),k=h("%B"),A=h("%Y");function w(T){return(u(T){"use strict";Q4();s_();G8();vy();CU();s(Y3e,"date");s(X3e,"number");s(nq,"calendar");s(Z4,"time")});var aq=_(()=>{"use strict";xU();EU();B8();iq()});function o_(t){for(var e=t.length/6|0,r=new Array(e),n=0;n{"use strict";s(o_,"default")});var l_,oq=_(()=>{"use strict";sq();l_=o_("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab")});var lq=_(()=>{"use strict";oq()});function Cn(t){return s(function(){return t},"constant")}var J4=_(()=>{"use strict";s(Cn,"default")});function uq(t){return t>1?0:t<-1?Tp:Math.acos(t)}function u_(t){return t>=1?Cy:t<=-1?-Cy:Math.asin(t)}var c_,ta,Eh,cq,e3,al,id,Vi,Tp,Cy,Ep,t3=_(()=>{"use strict";c_=Math.abs,ta=Math.atan2,Eh=Math.cos,cq=Math.max,e3=Math.min,al=Math.sin,id=Math.sqrt,Vi=1e-12,Tp=Math.PI,Cy=Tp/2,Ep=2*Tp;s(uq,"acos");s(u_,"asin")});function r3(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(r==null)e=null;else{let n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);e=n}return t},()=>new Kf(e)}var h_=_(()=>{"use strict";T8();s(r3,"withPath")});function j3e(t){return t.innerRadius}function K3e(t){return t.outerRadius}function Q3e(t){return t.startAngle}function Z3e(t){return t.endAngle}function J3e(t){return t&&t.padAngle}function e5e(t,e,r,n,i,a,o,l){var u=r-t,h=n-e,f=o-i,d=l-a,p=d*u-f*h;if(!(p*pM*M+F*F&&(E=R,S=D),{cx:E,cy:S,x01:-f,y01:-d,x11:E*(i/w-1),y11:S*(i/w-1)}}function sl(){var t=j3e,e=K3e,r=Cn(0),n=null,i=Q3e,a=Z3e,o=J3e,l=null,u=r3(h);function h(){var f,d,p=+t.apply(this,arguments),m=+e.apply(this,arguments),g=i.apply(this,arguments)-Cy,y=a.apply(this,arguments)-Cy,v=c_(y-g),x=y>g;if(l||(l=f=u()),mVi))l.moveTo(0,0);else if(v>Ep-Vi)l.moveTo(m*Eh(g),m*al(g)),l.arc(0,0,m,g,y,!x),p>Vi&&(l.moveTo(p*Eh(y),p*al(y)),l.arc(0,0,p,y,g,x));else{var b=g,k=y,A=g,w=y,T=v,C=v,E=o.apply(this,arguments)/2,S=E>Vi&&(n?+n.apply(this,arguments):id(p*p+m*m)),R=e3(c_(m-p)/2,+r.apply(this,arguments)),D=R,L=R,P,M;if(S>Vi){var F=u_(S/p*al(E)),I=u_(S/m*al(E));(T-=F*2)>Vi?(F*=x?1:-1,A+=F,w-=F):(T=0,A=w=(g+y)/2),(C-=I*2)>Vi?(I*=x?1:-1,b+=I,k-=I):(C=0,b=k=(g+y)/2)}var O=m*Eh(b),z=m*al(b),N=p*Eh(w),U=p*al(w);if(R>Vi){var $=m*Eh(k),W=m*al(k),ee=p*Eh(A),te=p*al(A),ce;if(vVi?L>Vi?(P=n3(ee,te,O,z,m,L,x),M=n3($,W,N,U,m,L,x),l.moveTo(P.cx+P.x01,P.cy+P.y01),LVi)||!(T>Vi)?l.lineTo(N,U):D>Vi?(P=n3(N,U,$,W,p,-D,x),M=n3(O,z,ee,te,p,-D,x),l.lineTo(P.cx+P.x01,P.cy+P.y01),D{"use strict";J4();t3();h_();s(j3e,"arcInnerRadius");s(K3e,"arcOuterRadius");s(Q3e,"arcStartAngle");s(Z3e,"arcEndAngle");s(J3e,"arcPadAngle");s(e5e,"intersect");s(n3,"cornerTangents");s(sl,"default")});function Sy(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}var Opt,f_=_(()=>{"use strict";Opt=Array.prototype.slice;s(Sy,"default")});function fq(t){this._context=t}function uu(t){return new fq(t)}var d_=_(()=>{"use strict";s(fq,"Linear");fq.prototype={areaStart:s(function(){this._line=0},"areaStart"),areaEnd:s(function(){this._line=NaN},"areaEnd"),lineStart:s(function(){this._point=0},"lineStart"),lineEnd:s(function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:s(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}},"point")};s(uu,"default")});function dq(t){return t[0]}function pq(t){return t[1]}var mq=_(()=>{"use strict";s(dq,"x");s(pq,"y")});function ra(t,e){var r=Cn(!0),n=null,i=uu,a=null,o=r3(l);t=typeof t=="function"?t:t===void 0?dq:Cn(t),e=typeof e=="function"?e:e===void 0?pq:Cn(e);function l(u){var h,f=(u=Sy(u)).length,d,p=!1,m;for(n==null&&(a=i(m=o())),h=0;h<=f;++h)!(h{"use strict";f_();J4();d_();h_();mq();s(ra,"default")});function p_(t,e){return et?1:e>=t?0:NaN}var yq=_(()=>{"use strict";s(p_,"default")});function m_(t){return t}var vq=_(()=>{"use strict";s(m_,"default")});function i3(){var t=m_,e=p_,r=null,n=Cn(0),i=Cn(Ep),a=Cn(0);function o(l){var u,h=(l=Sy(l)).length,f,d,p=0,m=new Array(h),g=new Array(h),y=+n.apply(this,arguments),v=Math.min(Ep,Math.max(-Ep,i.apply(this,arguments)-y)),x,b=Math.min(Math.abs(v)/h,a.apply(this,arguments)),k=b*(v<0?-1:1),A;for(u=0;u0&&(p+=A);for(e!=null?m.sort(function(w,T){return e(g[w],g[T])}):r!=null&&m.sort(function(w,T){return r(l[w],l[T])}),u=0,d=p?(v-h*k)/p:0;u0?A*d:0)+k,g[f]={data:l[f],index:u,value:A,startAngle:y,endAngle:x,padAngle:b};return g}return s(o,"pie"),o.value=function(l){return arguments.length?(t=typeof l=="function"?l:Cn(+l),o):t},o.sortValues=function(l){return arguments.length?(e=l,r=null,o):e},o.sort=function(l){return arguments.length?(r=l,e=null,o):r},o.startAngle=function(l){return arguments.length?(n=typeof l=="function"?l:Cn(+l),o):n},o.endAngle=function(l){return arguments.length?(i=typeof l=="function"?l:Cn(+l),o):i},o.padAngle=function(l){return arguments.length?(a=typeof l=="function"?l:Cn(+l),o):a},o}var xq=_(()=>{"use strict";f_();J4();yq();vq();t3();s(i3,"default")});function g_(t){return new a3(t,!0)}function y_(t){return new a3(t,!1)}var a3,bq=_(()=>{"use strict";a3=class{static{s(this,"Bump")}constructor(e,r){this._context=e,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,r){switch(e=+e,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,r,e,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,e,this._y0,e,r);break}}this._x0=e,this._y0=r}};s(g_,"bumpX");s(y_,"bumpY")});function qs(){}var _y=_(()=>{"use strict";s(qs,"default")});function Cp(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function Ay(t){this._context=t}function hs(t){return new Ay(t)}var Ly=_(()=>{"use strict";s(Cp,"point");s(Ay,"Basis");Ay.prototype={areaStart:s(function(){this._line=0},"areaStart"),areaEnd:s(function(){this._line=NaN},"areaEnd"),lineStart:s(function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},"lineStart"),lineEnd:s(function(){switch(this._point){case 3:Cp(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:s(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Cp(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e},"point")};s(hs,"default")});function kq(t){this._context=t}function s3(t){return new kq(t)}var wq=_(()=>{"use strict";_y();Ly();s(kq,"BasisClosed");kq.prototype={areaStart:qs,areaEnd:qs,lineStart:s(function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},"lineStart"),lineEnd:s(function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},"lineEnd"),point:s(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Cp(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e},"point")};s(s3,"default")});function Tq(t){this._context=t}function o3(t){return new Tq(t)}var Eq=_(()=>{"use strict";Ly();s(Tq,"BasisOpen");Tq.prototype={areaStart:s(function(){this._line=0},"areaStart"),areaEnd:s(function(){this._line=NaN},"areaEnd"),lineStart:s(function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},"lineStart"),lineEnd:s(function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:s(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Cp(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e},"point")};s(o3,"default")});function Cq(t,e){this._basis=new Ay(t),this._beta=e}var v_,Sq=_(()=>{"use strict";Ly();s(Cq,"Bundle");Cq.prototype={lineStart:s(function(){this._x=[],this._y=[],this._basis.lineStart()},"lineStart"),lineEnd:s(function(){var t=this._x,e=this._y,r=t.length-1;if(r>0)for(var n=t[0],i=e[0],a=t[r]-n,o=e[r]-i,l=-1,u;++l<=r;)u=l/r,this._basis.point(this._beta*t[l]+(1-this._beta)*(n+u*a),this._beta*e[l]+(1-this._beta)*(i+u*o));this._x=this._y=null,this._basis.lineEnd()},"lineEnd"),point:s(function(t,e){this._x.push(+t),this._y.push(+e)},"point")};v_=s(function t(e){function r(n){return e===1?new Ay(n):new Cq(n,e)}return s(r,"bundle"),r.beta=function(n){return t(+n)},r},"custom")(.85)});function Sp(t,e,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-r),t._x2,t._y2)}function l3(t,e){this._context=t,this._k=(1-e)/6}var x_,Dy=_(()=>{"use strict";s(Sp,"point");s(l3,"Cardinal");l3.prototype={areaStart:s(function(){this._line=0},"areaStart"),areaEnd:s(function(){this._line=NaN},"areaEnd"),lineStart:s(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},"lineStart"),lineEnd:s(function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Sp(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:s(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Sp(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e},"point")};x_=s(function t(e){function r(n){return new l3(n,e)}return s(r,"cardinal"),r.tension=function(n){return t(+n)},r},"custom")(0)});function c3(t,e){this._context=t,this._k=(1-e)/6}var b_,k_=_(()=>{"use strict";_y();Dy();s(c3,"CardinalClosed");c3.prototype={areaStart:qs,areaEnd:qs,lineStart:s(function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},"lineStart"),lineEnd:s(function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},"lineEnd"),point:s(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Sp(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e},"point")};b_=s(function t(e){function r(n){return new c3(n,e)}return s(r,"cardinal"),r.tension=function(n){return t(+n)},r},"custom")(0)});function u3(t,e){this._context=t,this._k=(1-e)/6}var w_,T_=_(()=>{"use strict";Dy();s(u3,"CardinalOpen");u3.prototype={areaStart:s(function(){this._line=0},"areaStart"),areaEnd:s(function(){this._line=NaN},"areaEnd"),lineStart:s(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},"lineStart"),lineEnd:s(function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:s(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Sp(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e},"point")};w_=s(function t(e){function r(n){return new u3(n,e)}return s(r,"cardinal"),r.tension=function(n){return t(+n)},r},"custom")(0)});function Ry(t,e,r){var n=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>Vi){var l=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,u=3*t._l01_a*(t._l01_a+t._l12_a);n=(n*l-t._x0*t._l12_2a+t._x2*t._l01_2a)/u,i=(i*l-t._y0*t._l12_2a+t._y2*t._l01_2a)/u}if(t._l23_a>Vi){var h=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,f=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*h+t._x1*t._l23_2a-e*t._l12_2a)/f,o=(o*h+t._y1*t._l23_2a-r*t._l12_2a)/f}t._context.bezierCurveTo(n,i,a,o,t._x2,t._y2)}function _q(t,e){this._context=t,this._alpha=e}var E_,h3=_(()=>{"use strict";t3();Dy();s(Ry,"point");s(_q,"CatmullRom");_q.prototype={areaStart:s(function(){this._line=0},"areaStart"),areaEnd:s(function(){this._line=NaN},"areaEnd"),lineStart:s(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},"lineStart"),lineEnd:s(function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:s(function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Ry(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e},"point")};E_=s(function t(e){function r(n){return e?new _q(n,e):new l3(n,0)}return s(r,"catmullRom"),r.alpha=function(n){return t(+n)},r},"custom")(.5)});function Aq(t,e){this._context=t,this._alpha=e}var C_,Lq=_(()=>{"use strict";k_();_y();h3();s(Aq,"CatmullRomClosed");Aq.prototype={areaStart:qs,areaEnd:qs,lineStart:s(function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},"lineStart"),lineEnd:s(function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},"lineEnd"),point:s(function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Ry(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e},"point")};C_=s(function t(e){function r(n){return e?new Aq(n,e):new c3(n,0)}return s(r,"catmullRom"),r.alpha=function(n){return t(+n)},r},"custom")(.5)});function Dq(t,e){this._context=t,this._alpha=e}var S_,Rq=_(()=>{"use strict";T_();h3();s(Dq,"CatmullRomOpen");Dq.prototype={areaStart:s(function(){this._line=0},"areaStart"),areaEnd:s(function(){this._line=NaN},"areaEnd"),lineStart:s(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},"lineStart"),lineEnd:s(function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:s(function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ry(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e},"point")};S_=s(function t(e){function r(n){return e?new Dq(n,e):new u3(n,0)}return s(r,"catmullRom"),r.alpha=function(n){return t(+n)},r},"custom")(.5)});function Mq(t){this._context=t}function f3(t){return new Mq(t)}var Iq=_(()=>{"use strict";_y();s(Mq,"LinearClosed");Mq.prototype={areaStart:qs,areaEnd:qs,lineStart:s(function(){this._point=0},"lineStart"),lineEnd:s(function(){this._point&&this._context.closePath()},"lineEnd"),point:s(function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))},"point")};s(f3,"default")});function Nq(t){return t<0?-1:1}function Oq(t,e,r){var n=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(n||i<0&&-0),o=(r-t._y1)/(i||n<0&&-0),l=(a*i+o*n)/(n+i);return(Nq(a)+Nq(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(l))||0}function Pq(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function __(t,e,r){var n=t._x0,i=t._y0,a=t._x1,o=t._y1,l=(a-n)/3;t._context.bezierCurveTo(n+l,i+l*e,a-l,o-l*r,a,o)}function d3(t){this._context=t}function Bq(t){this._context=new Fq(t)}function Fq(t){this._context=t}function A_(t){return new d3(t)}function L_(t){return new Bq(t)}var zq=_(()=>{"use strict";s(Nq,"sign");s(Oq,"slope3");s(Pq,"slope2");s(__,"point");s(d3,"MonotoneX");d3.prototype={areaStart:s(function(){this._line=0},"areaStart"),areaEnd:s(function(){this._line=NaN},"areaEnd"),lineStart:s(function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},"lineStart"),lineEnd:s(function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:__(this,this._t0,Pq(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:s(function(t,e){var r=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,__(this,Pq(this,r=Oq(this,t,e)),r);break;default:__(this,this._t0,r=Oq(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}},"point")};s(Bq,"MonotoneY");(Bq.prototype=Object.create(d3.prototype)).point=function(t,e){d3.prototype.point.call(this,e,t)};s(Fq,"ReflectContext");Fq.prototype={moveTo:s(function(t,e){this._context.moveTo(e,t)},"moveTo"),closePath:s(function(){this._context.closePath()},"closePath"),lineTo:s(function(t,e){this._context.lineTo(e,t)},"lineTo"),bezierCurveTo:s(function(t,e,r,n,i,a){this._context.bezierCurveTo(e,t,n,r,a,i)},"bezierCurveTo")};s(A_,"monotoneX");s(L_,"monotoneY")});function Gq(t){this._context=t}function $q(t){var e,r=t.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(a[r-1]=(t[r]+i[r-1])/2,e=0;e{"use strict";s(Gq,"Natural");Gq.prototype={areaStart:s(function(){this._line=0},"areaStart"),areaEnd:s(function(){this._line=NaN},"areaEnd"),lineStart:s(function(){this._x=[],this._y=[]},"lineStart"),lineEnd:s(function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),r===2)this._context.lineTo(t[1],e[1]);else for(var n=$q(t),i=$q(e),a=0,o=1;o{"use strict";s(m3,"Step");m3.prototype={areaStart:s(function(){this._line=0},"areaStart"),areaEnd:s(function(){this._line=NaN},"areaEnd"),lineStart:s(function(){this._x=this._y=NaN,this._point=0},"lineStart"),lineEnd:s(function(){0=0&&(this._t=1-this._t,this._line=1-this._line)},"lineEnd"),point:s(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}break}}this._x=t,this._y=e},"point")};s(g3,"default");s(D_,"stepBefore");s(R_,"stepAfter")});var qq=_(()=>{"use strict";hq();gq();xq();wq();Eq();Ly();bq();Sq();k_();T_();Dy();Lq();Rq();h3();Iq();d_();zq();Vq();Uq()});var Wq=_(()=>{"use strict"});var Hq=_(()=>{"use strict"});function Ch(t,e,r){this.k=t,this.x=e,this.y=r}function I_(t){for(;!t.__zoom;)if(!(t=t.parentNode))return M_;return t.__zoom}var M_,N_=_(()=>{"use strict";s(Ch,"Transform");Ch.prototype={constructor:Ch,scale:s(function(t){return t===1?this:new Ch(this.k*t,this.x,this.y)},"scale"),translate:s(function(t,e){return t===0&e===0?this:new Ch(this.k,this.x+this.k*t,this.y+this.k*e)},"translate"),apply:s(function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},"apply"),applyX:s(function(t){return t*this.k+this.x},"applyX"),applyY:s(function(t){return t*this.k+this.y},"applyY"),invert:s(function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},"invert"),invertX:s(function(t){return(t-this.x)/this.k},"invertX"),invertY:s(function(t){return(t-this.y)/this.k},"invertY"),rescaleX:s(function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},"rescaleX"),rescaleY:s(function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},"rescaleY"),toString:s(function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"},"toString")};M_=new Ch(1,0,0);I_.prototype=Ch.prototype;s(I_,"transform")});var Yq=_(()=>{"use strict"});var Xq=_(()=>{"use strict";M4();Wq();Hq();N_();Yq()});var jq=_(()=>{"use strict";Xq();N_()});var Xt=_(()=>{"use strict";ph();S$();WV();jV();dp();KV();QV();DC();yG();ZV();v8();JV();tU();O8();mU();gU();gp();T8();yU();eU();vU();aq();lq();Zo();qq();Q4();s_();S4();M4();jq()});var Kq=is(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.BLANK_URL=Ui.relativeFirstCharacters=Ui.whitespaceEscapeCharsRegex=Ui.urlSchemeRegex=Ui.ctrlCharactersRegex=Ui.htmlCtrlEntityRegex=Ui.htmlEntitiesRegex=Ui.invalidProtocolRegex=void 0;Ui.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im;Ui.htmlEntitiesRegex=/(\w+)(^\w|;)?/g;Ui.htmlCtrlEntityRegex=/&(newline|tab);/gi;Ui.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;Ui.urlSchemeRegex=/^.+(:|:)/gim;Ui.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g;Ui.relativeFirstCharacters=[".","/"];Ui.BLANK_URL="about:blank"});var _p=is(y3=>{"use strict";Object.defineProperty(y3,"__esModule",{value:!0});y3.sanitizeUrl=void 0;var Ta=Kq();function t5e(t){return Ta.relativeFirstCharacters.indexOf(t[0])>-1}s(t5e,"isRelativeUrlWithoutProtocol");function r5e(t){var e=t.replace(Ta.ctrlCharactersRegex,"");return e.replace(Ta.htmlEntitiesRegex,function(r,n){return String.fromCharCode(n)})}s(r5e,"decodeHtmlCharacters");function n5e(t){return URL.canParse(t)}s(n5e,"isValidUrl");function Qq(t){try{return decodeURIComponent(t)}catch{return t}}s(Qq,"decodeURI");function i5e(t){if(!t)return Ta.BLANK_URL;var e,r=Qq(t.trim());do r=r5e(r).replace(Ta.htmlCtrlEntityRegex,"").replace(Ta.ctrlCharactersRegex,"").replace(Ta.whitespaceEscapeCharsRegex,"").trim(),r=Qq(r),e=r.match(Ta.ctrlCharactersRegex)||r.match(Ta.htmlEntitiesRegex)||r.match(Ta.htmlCtrlEntityRegex)||r.match(Ta.whitespaceEscapeCharsRegex);while(e&&e.length>0);var n=r;if(!n)return Ta.BLANK_URL;if(t5e(n))return n;var i=n.trimStart(),a=i.match(Ta.urlSchemeRegex);if(!a)return n;var o=a[0].toLowerCase().trim();if(Ta.invalidProtocolRegex.test(o))return Ta.BLANK_URL;var l=i.replace(/\\/g,"/");if(o==="mailto:"||o.includes("://"))return l;if(o==="http:"||o==="https:"){if(!n5e(l))return Ta.BLANK_URL;var u=new URL(l);return u.protocol=u.protocol.toLowerCase(),u.hostname=u.hostname.toLowerCase(),u.toString()}return l}s(i5e,"sanitizeUrl");y3.sanitizeUrl=i5e});var O_,ad,v3,Zq,Jq,eW,ol,My,Iy=_(()=>{"use strict";O_=ka(_p(),1);Qt();ad=s((t,e)=>{let r=t.append("rect");if(r.attr("x",e.x),r.attr("y",e.y),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("width",e.width),r.attr("height",e.height),e.name&&r.attr("name",e.name),e.rx&&r.attr("rx",e.rx),e.ry&&r.attr("ry",e.ry),e.attrs!==void 0)for(let n in e.attrs)r.attr(n,e.attrs[n]);return e.class&&r.attr("class",e.class),r},"drawRect"),v3=s((t,e)=>{let r={x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,stroke:e.stroke,class:"rect"};ad(t,r).lower()},"drawBackgroundRect"),Zq=s((t,e)=>{let r=e.text.replace(zf," "),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.attr("class","legend"),n.style("text-anchor",e.anchor),e.class&&n.attr("class",e.class);let i=n.append("tspan");return i.attr("x",e.x+e.textMargin*2),i.text(r),n},"drawText"),Jq=s((t,e,r,n)=>{let i=t.append("image");i.attr("x",e),i.attr("y",r);let a=(0,O_.sanitizeUrl)(n);i.attr("xlink:href",a)},"drawImage"),eW=s((t,e,r,n)=>{let i=t.append("use");i.attr("x",e),i.attr("y",r);let a=(0,O_.sanitizeUrl)(n);i.attr("xlink:href",`#${a}`)},"drawEmbeddedImage"),ol=s(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),My=s(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj")});var tW,P_,rW,a5e,s5e,o5e,l5e,c5e,u5e,h5e,f5e,d5e,p5e,m5e,g5e,hu,ll,nW=_(()=>{"use strict";Qt();Iy();tW=ka(_p(),1),P_=s(function(t,e){return ad(t,e)},"drawRect"),rW=s(function(t,e,r,n,i,a){let o=t.append("image");o.attr("width",e),o.attr("height",r),o.attr("x",n),o.attr("y",i);let l=a.startsWith("data:image/png;base64")?a:(0,tW.sanitizeUrl)(a);o.attr("xlink:href",l)},"drawImage"),a5e=s((t,e,r)=>{let n=t.append("g"),i=0;for(let a of e){let o=a.textColor?a.textColor:"#444444",l=a.lineColor?a.lineColor:"#444444",u=a.offsetX?parseInt(a.offsetX):0,h=a.offsetY?parseInt(a.offsetY):0,f="";if(i===0){let p=n.append("line");p.attr("x1",a.startPoint.x),p.attr("y1",a.startPoint.y),p.attr("x2",a.endPoint.x),p.attr("y2",a.endPoint.y),p.attr("stroke-width","1"),p.attr("stroke",l),p.style("fill","none"),a.type!=="rel_b"&&p.attr("marker-end","url("+f+"#arrowhead)"),(a.type==="birel"||a.type==="rel_b")&&p.attr("marker-start","url("+f+"#arrowend)"),i=-1}else{let p=n.append("path");p.attr("fill","none").attr("stroke-width","1").attr("stroke",l).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",a.startPoint.x).replaceAll("starty",a.startPoint.y).replaceAll("controlx",a.startPoint.x+(a.endPoint.x-a.startPoint.x)/2-(a.endPoint.x-a.startPoint.x)/4).replaceAll("controly",a.startPoint.y+(a.endPoint.y-a.startPoint.y)/2).replaceAll("stopx",a.endPoint.x).replaceAll("stopy",a.endPoint.y)),a.type!=="rel_b"&&p.attr("marker-end","url("+f+"#arrowhead)"),(a.type==="birel"||a.type==="rel_b")&&p.attr("marker-start","url("+f+"#arrowend)")}let d=r.messageFont();hu(r)(a.label.text,n,Math.min(a.startPoint.x,a.endPoint.x)+Math.abs(a.endPoint.x-a.startPoint.x)/2+u,Math.min(a.startPoint.y,a.endPoint.y)+Math.abs(a.endPoint.y-a.startPoint.y)/2+h,a.label.width,a.label.height,{fill:o},d),a.techn&&a.techn.text!==""&&(d=r.messageFont(),hu(r)("["+a.techn.text+"]",n,Math.min(a.startPoint.x,a.endPoint.x)+Math.abs(a.endPoint.x-a.startPoint.x)/2+u,Math.min(a.startPoint.y,a.endPoint.y)+Math.abs(a.endPoint.y-a.startPoint.y)/2+r.messageFontSize+5+h,Math.max(a.label.width,a.techn.width),a.techn.height,{fill:o,"font-style":"italic"},d))}},"drawRels"),s5e=s(function(t,e,r){let n=t.append("g"),i=e.bgColor?e.bgColor:"none",a=e.borderColor?e.borderColor:"#444444",o=e.fontColor?e.fontColor:"black",l={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};e.nodeType&&(l={"stroke-width":1});let u={x:e.x,y:e.y,fill:i,stroke:a,width:e.width,height:e.height,rx:2.5,ry:2.5,attrs:l};P_(n,u);let h=r.boundaryFont();h.fontWeight="bold",h.fontSize=h.fontSize+2,h.fontColor=o,hu(r)(e.label.text,n,e.x,e.y+e.label.Y,e.width,e.height,{fill:"#444444"},h),e.type&&e.type.text!==""&&(h=r.boundaryFont(),h.fontColor=o,hu(r)(e.type.text,n,e.x,e.y+e.type.Y,e.width,e.height,{fill:"#444444"},h)),e.descr&&e.descr.text!==""&&(h=r.boundaryFont(),h.fontSize=h.fontSize-2,h.fontColor=o,hu(r)(e.descr.text,n,e.x,e.y+e.descr.Y,e.width,e.height,{fill:"#444444"},h))},"drawBoundary"),o5e=s(function(t,e,r){let n=e.bgColor?e.bgColor:r[e.typeC4Shape.text+"_bg_color"],i=e.borderColor?e.borderColor:r[e.typeC4Shape.text+"_border_color"],a=e.fontColor?e.fontColor:"#FFFFFF",o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(e.typeC4Shape.text){case"person":o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";break;case"external_person":o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII=";break}let l=t.append("g");l.attr("class","person-man");let u=ol();switch(e.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":u.x=e.x,u.y=e.y,u.fill=n,u.width=e.width,u.height=e.height,u.stroke=i,u.rx=2.5,u.ry=2.5,u.attrs={"stroke-width":.5},P_(l,u);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":l.append("path").attr("fill",n).attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx",e.x).replaceAll("starty",e.y).replaceAll("half",e.width/2).replaceAll("height",e.height)),l.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",e.x).replaceAll("starty",e.y).replaceAll("half",e.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":l.append("path").attr("fill",n).attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx",e.x).replaceAll("starty",e.y).replaceAll("width",e.width).replaceAll("half",e.height/2)),l.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",e.x+e.width).replaceAll("starty",e.y).replaceAll("half",e.height/2));break}let h=g5e(r,e.typeC4Shape.text);switch(l.append("text").attr("fill",a).attr("font-family",h.fontFamily).attr("font-size",h.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",e.typeC4Shape.width).attr("x",e.x+e.width/2-e.typeC4Shape.width/2).attr("y",e.y+e.typeC4Shape.Y).text("<<"+e.typeC4Shape.text+">>"),e.typeC4Shape.text){case"person":case"external_person":rW(l,48,48,e.x+e.width/2-24,e.y+e.image.Y,o);break}let f=r[e.typeC4Shape.text+"Font"]();return f.fontWeight="bold",f.fontSize=f.fontSize+2,f.fontColor=a,hu(r)(e.label.text,l,e.x,e.y+e.label.Y,e.width,e.height,{fill:a},f),f=r[e.typeC4Shape.text+"Font"](),f.fontColor=a,e.techn&&e.techn?.text!==""?hu(r)(e.techn.text,l,e.x,e.y+e.techn.Y,e.width,e.height,{fill:a,"font-style":"italic"},f):e.type&&e.type.text!==""&&hu(r)(e.type.text,l,e.x,e.y+e.type.Y,e.width,e.height,{fill:a,"font-style":"italic"},f),e.descr&&e.descr.text!==""&&(f=r.personFont(),f.fontColor=a,hu(r)(e.descr.text,l,e.x,e.y+e.descr.Y,e.width,e.height,{fill:a},f)),e.height},"drawC4Shape"),l5e=s(function(t){t.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),c5e=s(function(t){t.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),u5e=s(function(t){t.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),h5e=s(function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},"insertArrowHead"),f5e=s(function(t){t.append("defs").append("marker").attr("id","arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")},"insertArrowEnd"),d5e=s(function(t){t.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertArrowFilledHead"),p5e=s(function(t){t.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},"insertDynamicNumber"),m5e=s(function(t){let r=t.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);r.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),r.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},"insertArrowCrossHead"),g5e=s((t,e)=>({fontFamily:t[e+"FontFamily"],fontSize:t[e+"FontSize"],fontWeight:t[e+"FontWeight"]}),"getC4ShapeFont"),hu=function(){function t(i,a,o,l,u,h,f){let d=a.append("text").attr("x",o+u/2).attr("y",l+h/2+5).style("text-anchor","middle").text(i);n(d,f)}s(t,"byText");function e(i,a,o,l,u,h,f,d){let{fontSize:p,fontFamily:m,fontWeight:g}=d,y=i.split($e.lineBreakRegex);for(let v=0;v{"use strict";y5e=typeof global=="object"&&global&&global.Object===Object&&global,b3=y5e});var v5e,x5e,Wn,xo=_(()=>{"use strict";B_();v5e=typeof self=="object"&&self&&self.Object===Object&&self,x5e=b3||v5e||Function("return this")(),Wn=x5e});var b5e,qi,sd=_(()=>{"use strict";xo();b5e=Wn.Symbol,qi=b5e});function T5e(t){var e=k5e.call(t,Ny),r=t[Ny];try{t[Ny]=void 0;var n=!0}catch{}var i=w5e.call(t);return n&&(e?t[Ny]=r:delete t[Ny]),i}var iW,k5e,w5e,Ny,aW,sW=_(()=>{"use strict";sd();iW=Object.prototype,k5e=iW.hasOwnProperty,w5e=iW.toString,Ny=qi?qi.toStringTag:void 0;s(T5e,"getRawTag");aW=T5e});function S5e(t){return C5e.call(t)}var E5e,C5e,oW,lW=_(()=>{"use strict";E5e=Object.prototype,C5e=E5e.toString;s(S5e,"objectToString");oW=S5e});function L5e(t){return t==null?t===void 0?A5e:_5e:cW&&cW in Object(t)?aW(t):oW(t)}var _5e,A5e,cW,na,fu=_(()=>{"use strict";sd();sW();lW();_5e="[object Null]",A5e="[object Undefined]",cW=qi?qi.toStringTag:void 0;s(L5e,"baseGetTag");na=L5e});function D5e(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var on,Ws=_(()=>{"use strict";s(D5e,"isObject");on=D5e});function O5e(t){if(!on(t))return!1;var e=na(t);return e==M5e||e==I5e||e==R5e||e==N5e}var R5e,M5e,I5e,N5e,fi,Oy=_(()=>{"use strict";fu();Ws();R5e="[object AsyncFunction]",M5e="[object Function]",I5e="[object GeneratorFunction]",N5e="[object Proxy]";s(O5e,"isFunction");fi=O5e});var P5e,k3,uW=_(()=>{"use strict";xo();P5e=Wn["__core-js_shared__"],k3=P5e});function B5e(t){return!!hW&&hW in t}var hW,fW,dW=_(()=>{"use strict";uW();hW=function(){var t=/[^.]+$/.exec(k3&&k3.keys&&k3.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();s(B5e,"isMasked");fW=B5e});function $5e(t){if(t!=null){try{return z5e.call(t)}catch{}try{return t+""}catch{}}return""}var F5e,z5e,du,F_=_(()=>{"use strict";F5e=Function.prototype,z5e=F5e.toString;s($5e,"toSource");du=$5e});function X5e(t){if(!on(t)||fW(t))return!1;var e=fi(t)?Y5e:V5e;return e.test(du(t))}var G5e,V5e,U5e,q5e,W5e,H5e,Y5e,pW,mW=_(()=>{"use strict";Oy();dW();Ws();F_();G5e=/[\\^$.*+?()[\]{}|]/g,V5e=/^\[object .+?Constructor\]$/,U5e=Function.prototype,q5e=Object.prototype,W5e=U5e.toString,H5e=q5e.hasOwnProperty,Y5e=RegExp("^"+W5e.call(H5e).replace(G5e,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");s(X5e,"baseIsNative");pW=X5e});function j5e(t,e){return t?.[e]}var gW,yW=_(()=>{"use strict";s(j5e,"getValue");gW=j5e});function K5e(t,e){var r=gW(t,e);return pW(r)?r:void 0}var fs,Sh=_(()=>{"use strict";mW();yW();s(K5e,"getNative");fs=K5e});var Q5e,pu,Py=_(()=>{"use strict";Sh();Q5e=fs(Object,"create"),pu=Q5e});function Z5e(){this.__data__=pu?pu(null):{},this.size=0}var vW,xW=_(()=>{"use strict";Py();s(Z5e,"hashClear");vW=Z5e});function J5e(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var bW,kW=_(()=>{"use strict";s(J5e,"hashDelete");bW=J5e});function nke(t){var e=this.__data__;if(pu){var r=e[t];return r===eke?void 0:r}return rke.call(e,t)?e[t]:void 0}var eke,tke,rke,wW,TW=_(()=>{"use strict";Py();eke="__lodash_hash_undefined__",tke=Object.prototype,rke=tke.hasOwnProperty;s(nke,"hashGet");wW=nke});function ske(t){var e=this.__data__;return pu?e[t]!==void 0:ake.call(e,t)}var ike,ake,EW,CW=_(()=>{"use strict";Py();ike=Object.prototype,ake=ike.hasOwnProperty;s(ske,"hashHas");EW=ske});function lke(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=pu&&e===void 0?oke:e,this}var oke,SW,_W=_(()=>{"use strict";Py();oke="__lodash_hash_undefined__";s(lke,"hashSet");SW=lke});function Ap(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e{"use strict";xW();kW();TW();CW();_W();s(Ap,"Hash");Ap.prototype.clear=vW;Ap.prototype.delete=bW;Ap.prototype.get=wW;Ap.prototype.has=EW;Ap.prototype.set=SW;z_=Ap});function cke(){this.__data__=[],this.size=0}var LW,DW=_(()=>{"use strict";s(cke,"listCacheClear");LW=cke});function uke(t,e){return t===e||t!==t&&e!==e}var bo,od=_(()=>{"use strict";s(uke,"eq");bo=uke});function hke(t,e){for(var r=t.length;r--;)if(bo(t[r][0],e))return r;return-1}var _h,By=_(()=>{"use strict";od();s(hke,"assocIndexOf");_h=hke});function pke(t){var e=this.__data__,r=_h(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():dke.call(e,r,1),--this.size,!0}var fke,dke,RW,MW=_(()=>{"use strict";By();fke=Array.prototype,dke=fke.splice;s(pke,"listCacheDelete");RW=pke});function mke(t){var e=this.__data__,r=_h(e,t);return r<0?void 0:e[r][1]}var IW,NW=_(()=>{"use strict";By();s(mke,"listCacheGet");IW=mke});function gke(t){return _h(this.__data__,t)>-1}var OW,PW=_(()=>{"use strict";By();s(gke,"listCacheHas");OW=gke});function yke(t,e){var r=this.__data__,n=_h(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}var BW,FW=_(()=>{"use strict";By();s(yke,"listCacheSet");BW=yke});function Lp(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e{"use strict";DW();MW();NW();PW();FW();s(Lp,"ListCache");Lp.prototype.clear=LW;Lp.prototype.delete=RW;Lp.prototype.get=IW;Lp.prototype.has=OW;Lp.prototype.set=BW;Ah=Lp});var vke,Lh,w3=_(()=>{"use strict";Sh();xo();vke=fs(Wn,"Map"),Lh=vke});function xke(){this.size=0,this.__data__={hash:new z_,map:new(Lh||Ah),string:new z_}}var zW,$W=_(()=>{"use strict";AW();Fy();w3();s(xke,"mapCacheClear");zW=xke});function bke(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var GW,VW=_(()=>{"use strict";s(bke,"isKeyable");GW=bke});function kke(t,e){var r=t.__data__;return GW(e)?r[typeof e=="string"?"string":"hash"]:r.map}var Dh,zy=_(()=>{"use strict";VW();s(kke,"getMapData");Dh=kke});function wke(t){var e=Dh(this,t).delete(t);return this.size-=e?1:0,e}var UW,qW=_(()=>{"use strict";zy();s(wke,"mapCacheDelete");UW=wke});function Tke(t){return Dh(this,t).get(t)}var WW,HW=_(()=>{"use strict";zy();s(Tke,"mapCacheGet");WW=Tke});function Eke(t){return Dh(this,t).has(t)}var YW,XW=_(()=>{"use strict";zy();s(Eke,"mapCacheHas");YW=Eke});function Cke(t,e){var r=Dh(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}var jW,KW=_(()=>{"use strict";zy();s(Cke,"mapCacheSet");jW=Cke});function Dp(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e{"use strict";$W();qW();HW();XW();KW();s(Dp,"MapCache");Dp.prototype.clear=zW;Dp.prototype.delete=UW;Dp.prototype.get=WW;Dp.prototype.has=YW;Dp.prototype.set=jW;ld=Dp});function $_(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(Ske);var r=s(function(){var n=arguments,i=e?e.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=t.apply(this,n);return r.cache=a.set(i,o)||a,o},"memoized");return r.cache=new($_.Cache||ld),r}var Ske,Rp,G_=_(()=>{"use strict";T3();Ske="Expected a function";s($_,"memoize");$_.Cache=ld;Rp=$_});function _ke(){this.__data__=new Ah,this.size=0}var QW,ZW=_(()=>{"use strict";Fy();s(_ke,"stackClear");QW=_ke});function Ake(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}var JW,eH=_(()=>{"use strict";s(Ake,"stackDelete");JW=Ake});function Lke(t){return this.__data__.get(t)}var tH,rH=_(()=>{"use strict";s(Lke,"stackGet");tH=Lke});function Dke(t){return this.__data__.has(t)}var nH,iH=_(()=>{"use strict";s(Dke,"stackHas");nH=Dke});function Mke(t,e){var r=this.__data__;if(r instanceof Ah){var n=r.__data__;if(!Lh||n.length{"use strict";Fy();w3();T3();Rke=200;s(Mke,"stackSet");aH=Mke});function Mp(t){var e=this.__data__=new Ah(t);this.size=e.size}var Zl,$y=_(()=>{"use strict";Fy();ZW();eH();rH();iH();sH();s(Mp,"Stack");Mp.prototype.clear=QW;Mp.prototype.delete=JW;Mp.prototype.get=tH;Mp.prototype.has=nH;Mp.prototype.set=aH;Zl=Mp});var Ike,Ip,V_=_(()=>{"use strict";Sh();Ike=function(){try{var t=fs(Object,"defineProperty");return t({},"",{}),t}catch{}}(),Ip=Ike});function Nke(t,e,r){e=="__proto__"&&Ip?Ip(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}var Jl,Np=_(()=>{"use strict";V_();s(Nke,"baseAssignValue");Jl=Nke});function Oke(t,e,r){(r!==void 0&&!bo(t[e],r)||r===void 0&&!(e in t))&&Jl(t,e,r)}var Gy,U_=_(()=>{"use strict";Np();od();s(Oke,"assignMergeValue");Gy=Oke});function Pke(t){return function(e,r,n){for(var i=-1,a=Object(e),o=n(e),l=o.length;l--;){var u=o[t?l:++i];if(r(a[u],u,a)===!1)break}return e}}var oH,lH=_(()=>{"use strict";s(Pke,"createBaseFor");oH=Pke});var Bke,Op,E3=_(()=>{"use strict";lH();Bke=oH(),Op=Bke});function zke(t,e){if(e)return t.slice();var r=t.length,n=hH?hH(r):new t.constructor(r);return t.copy(n),n}var fH,cH,Fke,uH,hH,C3,q_=_(()=>{"use strict";xo();fH=typeof exports=="object"&&exports&&!exports.nodeType&&exports,cH=fH&&typeof module=="object"&&module&&!module.nodeType&&module,Fke=cH&&cH.exports===fH,uH=Fke?Wn.Buffer:void 0,hH=uH?uH.allocUnsafe:void 0;s(zke,"cloneBuffer");C3=zke});var $ke,Pp,W_=_(()=>{"use strict";xo();$ke=Wn.Uint8Array,Pp=$ke});function Gke(t){var e=new t.constructor(t.byteLength);return new Pp(e).set(new Pp(t)),e}var Bp,S3=_(()=>{"use strict";W_();s(Gke,"cloneArrayBuffer");Bp=Gke});function Vke(t,e){var r=e?Bp(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}var _3,H_=_(()=>{"use strict";S3();s(Vke,"cloneTypedArray");_3=Vke});function Uke(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r{"use strict";s(Uke,"copyArray");A3=Uke});var dH,qke,pH,mH=_(()=>{"use strict";Ws();dH=Object.create,qke=function(){function t(){}return s(t,"object"),function(e){if(!on(e))return{};if(dH)return dH(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}(),pH=qke});function Wke(t,e){return function(r){return t(e(r))}}var L3,X_=_(()=>{"use strict";s(Wke,"overArg");L3=Wke});var Hke,Fp,D3=_(()=>{"use strict";X_();Hke=L3(Object.getPrototypeOf,Object),Fp=Hke});function Xke(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||Yke;return t===r}var Yke,ec,zp=_(()=>{"use strict";Yke=Object.prototype;s(Xke,"isPrototype");ec=Xke});function jke(t){return typeof t.constructor=="function"&&!ec(t)?pH(Fp(t)):{}}var R3,j_=_(()=>{"use strict";mH();D3();zp();s(jke,"initCloneObject");R3=jke});function Kke(t){return t!=null&&typeof t=="object"}var Fn,ko=_(()=>{"use strict";s(Kke,"isObjectLike");Fn=Kke});function Zke(t){return Fn(t)&&na(t)==Qke}var Qke,K_,gH=_(()=>{"use strict";fu();ko();Qke="[object Arguments]";s(Zke,"baseIsArguments");K_=Zke});var yH,Jke,e6e,t6e,cl,$p=_(()=>{"use strict";gH();ko();yH=Object.prototype,Jke=yH.hasOwnProperty,e6e=yH.propertyIsEnumerable,t6e=K_(function(){return arguments}())?K_:function(t){return Fn(t)&&Jke.call(t,"callee")&&!e6e.call(t,"callee")},cl=t6e});var r6e,ct,Dn=_(()=>{"use strict";r6e=Array.isArray,ct=r6e});function i6e(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=n6e}var n6e,Gp,M3=_(()=>{"use strict";n6e=9007199254740991;s(i6e,"isLength");Gp=i6e});function a6e(t){return t!=null&&Gp(t.length)&&!fi(t)}var Hn,wo=_(()=>{"use strict";Oy();M3();s(a6e,"isArrayLike");Hn=a6e});function s6e(t){return Fn(t)&&Hn(t)}var cd,I3=_(()=>{"use strict";wo();ko();s(s6e,"isArrayLikeObject");cd=s6e});function o6e(){return!1}var vH,xH=_(()=>{"use strict";s(o6e,"stubFalse");vH=o6e});var wH,bH,l6e,kH,c6e,u6e,ul,Vp=_(()=>{"use strict";xo();xH();wH=typeof exports=="object"&&exports&&!exports.nodeType&&exports,bH=wH&&typeof module=="object"&&module&&!module.nodeType&&module,l6e=bH&&bH.exports===wH,kH=l6e?Wn.Buffer:void 0,c6e=kH?kH.isBuffer:void 0,u6e=c6e||vH,ul=u6e});function g6e(t){if(!Fn(t)||na(t)!=h6e)return!1;var e=Fp(t);if(e===null)return!0;var r=p6e.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&TH.call(r)==m6e}var h6e,f6e,d6e,TH,p6e,m6e,EH,CH=_(()=>{"use strict";fu();D3();ko();h6e="[object Object]",f6e=Function.prototype,d6e=Object.prototype,TH=f6e.toString,p6e=d6e.hasOwnProperty,m6e=TH.call(Object);s(g6e,"isPlainObject");EH=g6e});function G6e(t){return Fn(t)&&Gp(t.length)&&!!Sn[na(t)]}var y6e,v6e,x6e,b6e,k6e,w6e,T6e,E6e,C6e,S6e,_6e,A6e,L6e,D6e,R6e,M6e,I6e,N6e,O6e,P6e,B6e,F6e,z6e,$6e,Sn,SH,_H=_(()=>{"use strict";fu();M3();ko();y6e="[object Arguments]",v6e="[object Array]",x6e="[object Boolean]",b6e="[object Date]",k6e="[object Error]",w6e="[object Function]",T6e="[object Map]",E6e="[object Number]",C6e="[object Object]",S6e="[object RegExp]",_6e="[object Set]",A6e="[object String]",L6e="[object WeakMap]",D6e="[object ArrayBuffer]",R6e="[object DataView]",M6e="[object Float32Array]",I6e="[object Float64Array]",N6e="[object Int8Array]",O6e="[object Int16Array]",P6e="[object Int32Array]",B6e="[object Uint8Array]",F6e="[object Uint8ClampedArray]",z6e="[object Uint16Array]",$6e="[object Uint32Array]",Sn={};Sn[M6e]=Sn[I6e]=Sn[N6e]=Sn[O6e]=Sn[P6e]=Sn[B6e]=Sn[F6e]=Sn[z6e]=Sn[$6e]=!0;Sn[y6e]=Sn[v6e]=Sn[D6e]=Sn[x6e]=Sn[R6e]=Sn[b6e]=Sn[k6e]=Sn[w6e]=Sn[T6e]=Sn[E6e]=Sn[C6e]=Sn[S6e]=Sn[_6e]=Sn[A6e]=Sn[L6e]=!1;s(G6e,"baseIsTypedArray");SH=G6e});function V6e(t){return function(e){return t(e)}}var To,ud=_(()=>{"use strict";s(V6e,"baseUnary");To=V6e});var AH,Vy,U6e,Q_,q6e,Eo,Uy=_(()=>{"use strict";B_();AH=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Vy=AH&&typeof module=="object"&&module&&!module.nodeType&&module,U6e=Vy&&Vy.exports===AH,Q_=U6e&&b3.process,q6e=function(){try{var t=Vy&&Vy.require&&Vy.require("util").types;return t||Q_&&Q_.binding&&Q_.binding("util")}catch{}}(),Eo=q6e});var LH,W6e,Rh,qy=_(()=>{"use strict";_H();ud();Uy();LH=Eo&&Eo.isTypedArray,W6e=LH?To(LH):SH,Rh=W6e});function H6e(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var Wy,Z_=_(()=>{"use strict";s(H6e,"safeGet");Wy=H6e});function j6e(t,e,r){var n=t[e];(!(X6e.call(t,e)&&bo(n,r))||r===void 0&&!(e in t))&&Jl(t,e,r)}var Y6e,X6e,tc,Up=_(()=>{"use strict";Np();od();Y6e=Object.prototype,X6e=Y6e.hasOwnProperty;s(j6e,"assignValue");tc=j6e});function K6e(t,e,r,n){var i=!r;r||(r={});for(var a=-1,o=e.length;++a{"use strict";Up();Np();s(K6e,"copyObject");Co=K6e});function Q6e(t,e){for(var r=-1,n=Array(t);++r{"use strict";s(Q6e,"baseTimes");DH=Q6e});function ewe(t,e){var r=typeof t;return e=e??Z6e,!!e&&(r=="number"||r!="symbol"&&J6e.test(t))&&t>-1&&t%1==0&&t{"use strict";Z6e=9007199254740991,J6e=/^(?:0|[1-9]\d*)$/;s(ewe,"isIndex");Mh=ewe});function nwe(t,e){var r=ct(t),n=!r&&cl(t),i=!r&&!n&&ul(t),a=!r&&!n&&!i&&Rh(t),o=r||n||i||a,l=o?DH(t.length,String):[],u=l.length;for(var h in t)(e||rwe.call(t,h))&&!(o&&(h=="length"||i&&(h=="offset"||h=="parent")||a&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||Mh(h,u)))&&l.push(h);return l}var twe,rwe,N3,J_=_(()=>{"use strict";RH();$p();Dn();Vp();Hy();qy();twe=Object.prototype,rwe=twe.hasOwnProperty;s(nwe,"arrayLikeKeys");N3=nwe});function iwe(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}var MH,IH=_(()=>{"use strict";s(iwe,"nativeKeysIn");MH=iwe});function owe(t){if(!on(t))return MH(t);var e=ec(t),r=[];for(var n in t)n=="constructor"&&(e||!swe.call(t,n))||r.push(n);return r}var awe,swe,NH,OH=_(()=>{"use strict";Ws();zp();IH();awe=Object.prototype,swe=awe.hasOwnProperty;s(owe,"baseKeysIn");NH=owe});function lwe(t){return Hn(t)?N3(t,!0):NH(t)}var ds,Ih=_(()=>{"use strict";J_();OH();wo();s(lwe,"keysIn");ds=lwe});function cwe(t){return Co(t,ds(t))}var PH,BH=_(()=>{"use strict";hd();Ih();s(cwe,"toPlainObject");PH=cwe});function uwe(t,e,r,n,i,a,o){var l=Wy(t,r),u=Wy(e,r),h=o.get(u);if(h){Gy(t,r,h);return}var f=a?a(l,u,r+"",t,e,o):void 0,d=f===void 0;if(d){var p=ct(u),m=!p&&ul(u),g=!p&&!m&&Rh(u);f=u,p||m||g?ct(l)?f=l:cd(l)?f=A3(l):m?(d=!1,f=C3(u,!0)):g?(d=!1,f=_3(u,!0)):f=[]:EH(u)||cl(u)?(f=l,cl(l)?f=PH(l):(!on(l)||fi(l))&&(f=R3(u))):d=!1}d&&(o.set(u,f),i(f,u,n,a,o),o.delete(u)),Gy(t,r,f)}var FH,zH=_(()=>{"use strict";U_();q_();H_();Y_();j_();$p();Dn();I3();Vp();Oy();Ws();CH();qy();Z_();BH();s(uwe,"baseMergeDeep");FH=uwe});function $H(t,e,r,n,i){t!==e&&Op(e,function(a,o){if(i||(i=new Zl),on(a))FH(t,e,o,r,$H,n,i);else{var l=n?n(Wy(t,o),a,o+"",t,e,i):void 0;l===void 0&&(l=a),Gy(t,o,l)}},ds)}var GH,VH=_(()=>{"use strict";$y();U_();E3();zH();Ws();Ih();Z_();s($H,"baseMerge");GH=$H});function hwe(t){return t}var Wi,mu=_(()=>{"use strict";s(hwe,"identity");Wi=hwe});function fwe(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}var UH,qH=_(()=>{"use strict";s(fwe,"apply");UH=fwe});function dwe(t,e,r){return e=WH(e===void 0?t.length-1:e,0),function(){for(var n=arguments,i=-1,a=WH(n.length-e,0),o=Array(a);++i{"use strict";qH();WH=Math.max;s(dwe,"overRest");O3=dwe});function pwe(t){return function(){return t}}var ps,tA=_(()=>{"use strict";s(pwe,"constant");ps=pwe});var mwe,HH,YH=_(()=>{"use strict";tA();V_();mu();mwe=Ip?function(t,e){return Ip(t,"toString",{configurable:!0,enumerable:!1,value:ps(e),writable:!0})}:Wi,HH=mwe});function xwe(t){var e=0,r=0;return function(){var n=vwe(),i=ywe-(n-r);if(r=n,i>0){if(++e>=gwe)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var gwe,ywe,vwe,XH,jH=_(()=>{"use strict";gwe=800,ywe=16,vwe=Date.now;s(xwe,"shortOut");XH=xwe});var bwe,P3,rA=_(()=>{"use strict";YH();jH();bwe=XH(HH),P3=bwe});function kwe(t,e){return P3(O3(t,e,Wi),t+"")}var rc,qp=_(()=>{"use strict";mu();eA();rA();s(kwe,"baseRest");rc=kwe});function wwe(t,e,r){if(!on(r))return!1;var n=typeof e;return(n=="number"?Hn(r)&&Mh(e,r.length):n=="string"&&e in r)?bo(r[e],t):!1}var Hs,fd=_(()=>{"use strict";od();wo();Hy();Ws();s(wwe,"isIterateeCall");Hs=wwe});function Twe(t){return rc(function(e,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,o=i>2?r[2]:void 0;for(a=t.length>3&&typeof a=="function"?(i--,a):void 0,o&&Hs(r[0],r[1],o)&&(a=i<3?void 0:a,i=1),e=Object(e);++n{"use strict";qp();fd();s(Twe,"createAssigner");B3=Twe});var Ewe,Nh,iA=_(()=>{"use strict";VH();nA();Ewe=B3(function(t,e,r){GH(t,e,r)}),Nh=Ewe});function Wp(t,e){if(!t)return e;let r=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return Cwe[r]??e}function Lwe(t,e){let r=t.trim();if(r)return e.securityLevel!=="loose"?(0,ZH.sanitizeUrl)(r):r}function tY(t,e){return!t||!e?0:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Rwe(t){let e,r=0;t.forEach(i=>{r+=tY(i,e),e=i});let n=r/2;return oA(t,n)}function Mwe(t){return t.length===1?t[0]:Rwe(t)}function Nwe(t,e,r){let n=structuredClone(r);V.info("our points",n),e!=="start_left"&&e!=="start_right"&&n.reverse();let i=25+t,a=oA(n,i),o=10+t*.5,l=Math.atan2(n[0].y-a.y,n[0].x-a.x),u={x:0,y:0};return e==="start_left"?(u.x=Math.sin(l+Math.PI)*o+(n[0].x+a.x)/2,u.y=-Math.cos(l+Math.PI)*o+(n[0].y+a.y)/2):e==="end_right"?(u.x=Math.sin(l-Math.PI)*o+(n[0].x+a.x)/2-5,u.y=-Math.cos(l-Math.PI)*o+(n[0].y+a.y)/2-5):e==="end_left"?(u.x=Math.sin(l)*o+(n[0].x+a.x)/2-5,u.y=-Math.cos(l)*o+(n[0].y+a.y)/2-5):(u.x=Math.sin(l)*o+(n[0].x+a.x)/2,u.y=-Math.cos(l)*o+(n[0].y+a.y)/2),u}function Hp(t){let e="",r="";for(let n of t)n!==void 0&&(n.startsWith("color:")||n.startsWith("text-align:")?r=r+n+";":e=e+n+";");return{style:e,labelStyle:r}}function Owe(t){let e="",r="0123456789abcdef",n=r.length;for(let i=0;i{"use strict";ZH=ka(_p(),1);Xt();Qt();fE();it();Mf();Y0();G_();iA();hb();sA="\u200B",Cwe={curveBasis:hs,curveBasisClosed:s3,curveBasisOpen:o3,curveBumpX:g_,curveBumpY:y_,curveBundle:v_,curveCardinalClosed:b_,curveCardinalOpen:w_,curveCardinal:x_,curveCatmullRomClosed:C_,curveCatmullRomOpen:S_,curveCatmullRom:E_,curveLinear:uu,curveLinearClosed:f3,curveMonotoneX:A_,curveMonotoneY:L_,curveNatural:p3,curveStep:g3,curveStepAfter:R_,curveStepBefore:D_},Swe=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,_we=s(function(t,e){let r=JH(t,/(?:init\b)|(?:initialize\b)/),n={};if(Array.isArray(r)){let o=r.map(l=>l.args);K0(o),n=An(n,[...o])}else n=r.args;if(!n)return;let i=H0(t,e),a="config";return n[a]!==void 0&&(i==="flowchart-v2"&&(i="flowchart"),n[i]=n[a],delete n[a]),n},"detectInit"),JH=s(function(t,e=null){try{let r=new RegExp(`[%]{2}(?![{]${Swe.source})(?=[}][%]{2}).*
`,"ig");t=t.trim().replace(r,"").replace(/'/gm,'"'),V.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let n,i=[];for(;(n=Df.exec(t))!==null;)if(n.index===Df.lastIndex&&Df.lastIndex++,n&&!e||e&&n[1]?.match(e)||e&&n[2]?.match(e)){let a=n[1]?n[1]:n[2],o=n[3]?n[3].trim():n[4]?JSON.parse(n[4].trim()):null;i.push({type:a,args:o})}return i.length===0?{type:t,args:null}:i.length===1?i[0]:i}catch(r){return V.error(`ERROR: ${r.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},"detectDirective"),eY=s(function(t){return t.replace(Df,"")},"removeDirectives"),Awe=s(function(t,e){for(let[r,n]of e.entries())if(n.match(t))return r;return-1},"isSubstringInArray");s(Wp,"interpolateToCurve");s(Lwe,"formatUrl");Dwe=s((t,...e)=>{let r=t.split("."),n=r.length-1,i=r[n],a=window;for(let o=0;o{let r=Math.pow(10,e);return Math.round(t*r)/r},"roundNumber"),oA=s((t,e)=>{let r,n=e;for(let i of t){if(r){let a=tY(i,r);if(a=1)return{x:i.x,y:i.y};if(o>0&&o<1)return{x:KH((1-o)*r.x+o*i.x,5),y:KH((1-o)*r.y+o*i.y,5)}}}r=i}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),Iwe=s((t,e,r)=>{V.info(`our points ${JSON.stringify(e)}`),e[0]!==r&&(e=e.reverse());let i=oA(e,25),a=t?10:5,o=Math.atan2(e[0].y-i.y,e[0].x-i.x),l={x:0,y:0};return l.x=Math.sin(o)*a+(e[0].x+i.x)/2,l.y=-Math.cos(o)*a+(e[0].y+i.y)/2,l},"calcCardinalityPosition");s(Nwe,"calcTerminalLabelPosition");s(Hp,"getStylesFromArray");QH=0,lA=s(()=>(QH++,"id-"+Math.random().toString(36).substr(2,12)+"-"+QH),"generateId");s(Owe,"makeRandomHex");cA=s(t=>Owe(t.length),"random"),Pwe=s(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),Bwe=s(function(t,e){let r=e.text.replace($e.lineBreakRegex," "),[,n]=nc(e.fontSize),i=t.append("text");i.attr("x",e.x),i.attr("y",e.y),i.style("text-anchor",e.anchor),i.style("font-family",e.fontFamily),i.style("font-size",n),i.style("font-weight",e.fontWeight),i.attr("fill",e.fill),e.class!==void 0&&i.attr("class",e.class);let a=i.append("tspan");return a.attr("x",e.x+e.textMargin*2),a.attr("fill",e.fill),a.text(r),i},"drawSimpleText"),uA=Rp((t,e,r)=>{if(!t||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
"},r),$e.lineBreakRegex.test(t)))return t;let n=t.split(" ").filter(Boolean),i=[],a="";return n.forEach((o,l)=>{let u=hl(`${o} `,r),h=hl(a,r);if(u>e){let{hyphenatedStrings:p,remainingWord:m}=Fwe(o,e,"-",r);i.push(a,...p),a=m}else h+u>=e?(i.push(a),a=o):a=[a,o].filter(Boolean).join(" ");l+1===n.length&&i.push(a)}),i.filter(o=>o!=="").join(r.joinWith)},(t,e,r)=>`${t}${e}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),Fwe=Rp((t,e,r="-",n)=>{n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},n);let i=[...t],a=[],o="";return i.forEach((l,u)=>{let h=`${o}${l}`;if(hl(h,n)>=e){let d=u+1,p=i.length===d,m=`${h}${r}`;a.push(p?h:m),o=""}else o=h}),{hyphenatedStrings:a,remainingWord:o}},(t,e,r="-",n)=>`${t}${e}${r}${n.fontSize}${n.fontWeight}${n.fontFamily}`);s(z3,"calculateTextHeight");s(hl,"calculateTextWidth");hA=Rp((t,e)=>{let{fontSize:r=12,fontFamily:n="Arial",fontWeight:i=400}=e;if(!t)return{width:0,height:0};let[,a]=nc(r),o=["sans-serif",n],l=t.split($e.lineBreakRegex),u=[],h=Me("body");if(!h.remove)return{width:0,height:0,lineHeight:0};let f=h.append("svg");for(let p of o){let m=0,g={width:0,height:0,lineHeight:0};for(let y of l){let v=Pwe();v.text=y||sA;let x=Bwe(f,v).style("font-size",a).style("font-weight",i).style("font-family",p),b=(x._groups||x)[0][0].getBBox();if(b.width===0&&b.height===0)throw new Error("svg element not in render tree");g.width=Math.round(Math.max(g.width,b.width)),m=Math.round(b.height),g.height+=m,g.lineHeight=Math.round(Math.max(g.lineHeight,m))}u.push(g)}f.remove();let d=isNaN(u[1].height)||isNaN(u[1].width)||isNaN(u[1].lineHeight)||u[0].height>u[1].height&&u[0].width>u[1].width&&u[0].lineHeight>u[1].lineHeight?0:1;return u[d]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`),aA=class{constructor(e=!1,r){this.count=0;this.count=r?r.length:0,this.next=e?()=>this.count++:()=>Date.now()}static{s(this,"InitIDGenerator")}},zwe=s(function(t){return F3=F3||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),F3.innerHTML=t,unescape(F3.textContent)},"entityDecode");s(fA,"isDetailedError");$we=s((t,e,r,n)=>{if(!n)return;let i=t.node()?.getBBox();i&&t.append("text").text(n).attr("x",i.x+i.width/2).attr("y",-r).attr("class",e)},"insertTitle"),nc=s(t=>{if(typeof t=="number")return[t,t+"px"];let e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]},"parseFontSize");s(ms,"cleanAndMerge");dt={assignWithDepth:An,wrapLabel:uA,calculateTextHeight:z3,calculateTextWidth:hl,calculateTextDimensions:hA,cleanAndMerge:ms,detectInit:_we,detectDirective:JH,isSubstringInArray:Awe,interpolateToCurve:Wp,calcLabelPosition:Mwe,calcCardinalityPosition:Iwe,calcTerminalLabelPosition:Nwe,formatUrl:Lwe,getStylesFromArray:Hp,generateId:lA,random:cA,runFunc:Dwe,entityDecode:zwe,insertTitle:$we,parseFontSize:nc,InitIDGenerator:aA},rY=s(function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),e=e.replace(/#\w+;/g,function(r){let n=r.substring(1,r.length-1);return/^\+?\d+$/.test(n)?"\uFB02\xB0\xB0"+n+"\xB6\xDF":"\uFB02\xB0"+n+"\xB6\xDF"}),e},"encodeEntities"),Ys=s(function(t){return t.replace(/fl°°/g,"").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),$3=s((t,e,{counter:r=0,prefix:n,suffix:i})=>`${n?`${n}_`:""}${t}_${e}_${r}${i?`_${i}`:""}`,"getEdgeId")});function fl(t,e,r,n,i){if(!e[t].width)if(r)e[t].text=uA(e[t].text,i,n),e[t].textLines=e[t].text.split($e.lineBreakRegex).length,e[t].width=i,e[t].height=z3(e[t].text,n);else{let a=e[t].text.split($e.lineBreakRegex);e[t].textLines=a.length;let o=0;e[t].height=0,e[t].width=0;for(let l of a)e[t].width=Math.max(hl(l,n),e[t].width),o=z3(l,n),e[t].height=e[t].height+o}}function oY(t,e,r,n,i){let a=new q3(i);a.data.widthLimit=r.data.widthLimit/Math.min(dA,n.length);for(let[o,l]of n.entries()){let u=0;l.image={width:0,height:0,Y:0},l.sprite&&(l.image.width=48,l.image.height=48,l.image.Y=u,u=l.image.Y+l.image.height);let h=l.wrap&&kt.wrap,f=G3(kt);if(f.fontSize=f.fontSize+2,f.fontWeight="bold",fl("label",l,h,f,a.data.widthLimit),l.label.Y=u+8,u=l.label.Y+l.label.height,l.type&&l.type.text!==""){l.type.text="["+l.type.text+"]";let g=G3(kt);fl("type",l,h,g,a.data.widthLimit),l.type.Y=u+5,u=l.type.Y+l.type.height}if(l.descr&&l.descr.text!==""){let g=G3(kt);g.fontSize=g.fontSize-2,fl("descr",l,h,g,a.data.widthLimit),l.descr.Y=u+20,u=l.descr.Y+l.descr.height}if(o==0||o%dA===0){let g=r.data.startx+kt.diagramMarginX,y=r.data.stopy+kt.diagramMarginY+u;a.setData(g,g,y,y)}else{let g=a.data.stopx!==a.data.startx?a.data.stopx+kt.diagramMarginX:a.data.startx,y=a.data.starty;a.setData(g,g,y,y)}a.name=l.alias;let d=i.db.getC4ShapeArray(l.alias),p=i.db.getC4ShapeKeys(l.alias);p.length>0&&sY(a,t,d,p),e=l.alias;let m=i.db.getBoundarys(e);m.length>0&&oY(t,e,a,m,i),l.alias!=="global"&&aY(t,l,a),r.data.stopy=Math.max(a.data.stopy+kt.c4ShapeMargin,r.data.stopy),r.data.stopx=Math.max(a.data.stopx+kt.c4ShapeMargin,r.data.stopx),V3=Math.max(V3,r.data.stopx),U3=Math.max(U3,r.data.stopy)}}var V3,U3,iY,dA,kt,q3,pA,Yy,G3,Gwe,aY,sY,gs,nY,Vwe,Uwe,qwe,mA,lY=_(()=>{"use strict";Xt();nW();it();Z7();Qt();vC();gt();Y0();pr();Un();V3=0,U3=0,iY=4,dA=2;C1.yy=Y1;kt={},q3=class{static{s(this,"Bounds")}constructor(e){this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,pA(e.db.getConfig())}setData(e,r,n,i){this.nextData.startx=this.data.startx=e,this.nextData.stopx=this.data.stopx=r,this.nextData.starty=this.data.starty=n,this.nextData.stopy=this.data.stopy=i}updateVal(e,r,n,i){e[r]===void 0?e[r]=n:e[r]=i(n,e[r])}insert(e){this.nextData.cnt=this.nextData.cnt+1;let r=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+e.margin:this.nextData.stopx+e.margin*2,n=r+e.width,i=this.nextData.starty+e.margin*2,a=i+e.height;(r>=this.data.widthLimit||n>=this.data.widthLimit||this.nextData.cnt>iY)&&(r=this.nextData.startx+e.margin+kt.nextLinePaddingX,i=this.nextData.stopy+e.margin*2,this.nextData.stopx=n=r+e.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=a=i+e.height,this.nextData.cnt=1),e.x=r,e.y=i,this.updateVal(this.data,"startx",r,Math.min),this.updateVal(this.data,"starty",i,Math.min),this.updateVal(this.data,"stopx",n,Math.max),this.updateVal(this.data,"stopy",a,Math.max),this.updateVal(this.nextData,"startx",r,Math.min),this.updateVal(this.nextData,"starty",i,Math.min),this.updateVal(this.nextData,"stopx",n,Math.max),this.updateVal(this.nextData,"stopy",a,Math.max)}init(e){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},pA(e.db.getConfig())}bumpLastMargin(e){this.data.stopx+=e,this.data.stopy+=e}},pA=s(function(t){An(kt,t),t.fontFamily&&(kt.personFontFamily=kt.systemFontFamily=kt.messageFontFamily=t.fontFamily),t.fontSize&&(kt.personFontSize=kt.systemFontSize=kt.messageFontSize=t.fontSize),t.fontWeight&&(kt.personFontWeight=kt.systemFontWeight=kt.messageFontWeight=t.fontWeight)},"setConf"),Yy=s((t,e)=>({fontFamily:t[e+"FontFamily"],fontSize:t[e+"FontSize"],fontWeight:t[e+"FontWeight"]}),"c4ShapeFont"),G3=s(t=>({fontFamily:t.boundaryFontFamily,fontSize:t.boundaryFontSize,fontWeight:t.boundaryFontWeight}),"boundaryFont"),Gwe=s(t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}),"messageFont");s(fl,"calcC4ShapeTextWH");aY=s(function(t,e,r){e.x=r.data.startx,e.y=r.data.starty,e.width=r.data.stopx-r.data.startx,e.height=r.data.stopy-r.data.starty,e.label.y=kt.c4ShapeMargin-35;let n=e.wrap&&kt.wrap,i=G3(kt);i.fontSize=i.fontSize+2,i.fontWeight="bold";let a=hl(e.label.text,i);fl("label",e,n,i,a),ll.drawBoundary(t,e,kt)},"drawBoundary"),sY=s(function(t,e,r,n){let i=0;for(let a of n){i=0;let o=r[a],l=Yy(kt,o.typeC4Shape.text);switch(l.fontSize=l.fontSize-2,o.typeC4Shape.width=hl("\xAB"+o.typeC4Shape.text+"\xBB",l),o.typeC4Shape.height=l.fontSize+2,o.typeC4Shape.Y=kt.c4ShapePadding,i=o.typeC4Shape.Y+o.typeC4Shape.height-4,o.image={width:0,height:0,Y:0},o.typeC4Shape.text){case"person":case"external_person":o.image.width=48,o.image.height=48,o.image.Y=i,i=o.image.Y+o.image.height;break}o.sprite&&(o.image.width=48,o.image.height=48,o.image.Y=i,i=o.image.Y+o.image.height);let u=o.wrap&&kt.wrap,h=kt.width-kt.c4ShapePadding*2,f=Yy(kt,o.typeC4Shape.text);if(f.fontSize=f.fontSize+2,f.fontWeight="bold",fl("label",o,u,f,h),o.label.Y=i+8,i=o.label.Y+o.label.height,o.type&&o.type.text!==""){o.type.text="["+o.type.text+"]";let m=Yy(kt,o.typeC4Shape.text);fl("type",o,u,m,h),o.type.Y=i+5,i=o.type.Y+o.type.height}else if(o.techn&&o.techn.text!==""){o.techn.text="["+o.techn.text+"]";let m=Yy(kt,o.techn.text);fl("techn",o,u,m,h),o.techn.Y=i+5,i=o.techn.Y+o.techn.height}let d=i,p=o.label.width;if(o.descr&&o.descr.text!==""){let m=Yy(kt,o.typeC4Shape.text);fl("descr",o,u,m,h),o.descr.Y=i+20,i=o.descr.Y+o.descr.height,p=Math.max(o.label.width,o.descr.width),d=i-o.descr.textLines*5}p=p+kt.c4ShapePadding,o.width=Math.max(o.width||kt.width,p,kt.width),o.height=Math.max(o.height||kt.height,d,kt.height),o.margin=o.margin||kt.c4ShapeMargin,t.insert(o),ll.drawC4Shape(e,o,kt)}t.bumpLastMargin(kt.c4ShapeMargin)},"drawC4ShapeArray"),gs=class{static{s(this,"Point")}constructor(e,r){this.x=e,this.y=r}},nY=s(function(t,e){let r=t.x,n=t.y,i=e.x,a=e.y,o=r+t.width/2,l=n+t.height/2,u=Math.abs(r-i),h=Math.abs(n-a),f=h/u,d=t.height/t.width,p=null;return n==a&&ri?p=new gs(r,l):r==i&&na&&(p=new gs(o,n)),r>i&&n=f?p=new gs(r,l+f*t.width/2):p=new gs(o-u/h*t.height/2,n+t.height):r=f?p=new gs(r+t.width,l+f*t.width/2):p=new gs(o+u/h*t.height/2,n+t.height):ra?d>=f?p=new gs(r+t.width,l-f*t.width/2):p=new gs(o+t.height/2*u/h,n):r>i&&n>a&&(d>=f?p=new gs(r,l-t.width/2*f):p=new gs(o-t.height/2*u/h,n)),p},"getIntersectPoint"),Vwe=s(function(t,e){let r={x:0,y:0};r.x=e.x+e.width/2,r.y=e.y+e.height/2;let n=nY(t,r);r.x=t.x+t.width/2,r.y=t.y+t.height/2;let i=nY(e,r);return{startPoint:n,endPoint:i}},"getIntersectPoints"),Uwe=s(function(t,e,r,n){let i=0;for(let a of e){i=i+1;let o=a.wrap&&kt.wrap,l=Gwe(kt);n.db.getC4Type()==="C4Dynamic"&&(a.label.text=i+": "+a.label.text);let h=hl(a.label.text,l);fl("label",a,o,l,h),a.techn&&a.techn.text!==""&&(h=hl(a.techn.text,l),fl("techn",a,o,l,h)),a.descr&&a.descr.text!==""&&(h=hl(a.descr.text,l),fl("descr",a,o,l,h));let f=r(a.from),d=r(a.to),p=Vwe(f,d);a.startPoint=p.startPoint,a.endPoint=p.endPoint}ll.drawRels(t,e,kt)},"drawRels");s(oY,"drawInsideBoundary");qwe=s(function(t,e,r,n){kt=le().c4;let i=le().securityLevel,a;i==="sandbox"&&(a=Me("#i"+e));let o=i==="sandbox"?Me(a.nodes()[0].contentDocument.body):Me("body"),l=n.db;n.db.setWrap(kt.wrap),iY=l.getC4ShapeInRow(),dA=l.getC4BoundaryInRow(),V.debug(`C:${JSON.stringify(kt,null,2)}`);let u=i==="sandbox"?o.select(`[id="${e}"]`):Me(`[id="${e}"]`);ll.insertComputerIcon(u),ll.insertDatabaseIcon(u),ll.insertClockIcon(u);let h=new q3(n);h.setData(kt.diagramMarginX,kt.diagramMarginX,kt.diagramMarginY,kt.diagramMarginY),h.data.widthLimit=screen.availWidth,V3=kt.diagramMarginX,U3=kt.diagramMarginY;let f=n.db.getTitle(),d=n.db.getBoundarys("");oY(u,"",h,d,n),ll.insertArrowHead(u),ll.insertArrowEnd(u),ll.insertArrowCrossHead(u),ll.insertArrowFilledHead(u),Uwe(u,n.db.getRels(),n.db.getC4Shape,n),h.data.stopx=V3,h.data.stopy=U3;let p=h.data,g=p.stopy-p.starty+2*kt.diagramMarginY,v=p.stopx-p.startx+2*kt.diagramMarginX;f&&u.append("text").text(f).attr("x",(p.stopx-p.startx)/2-4*kt.diagramMarginX).attr("y",p.starty+kt.diagramMarginY),xr(u,g,v,kt.useMaxWidth);let x=f?60:0;u.attr("viewBox",p.startx-kt.diagramMarginX+" -"+(kt.diagramMarginY+x)+" "+v+" "+(g+x)),V.debug("models:",p)},"draw"),mA={drawPersonOrSystemArray:sY,drawBoundary:aY,setConf:pA,draw:qwe}});var Wwe,cY,uY=_(()=>{"use strict";Wwe=s(t=>`.person {
stroke: ${t.personBorder};
fill: ${t.personBkg};
}
`,"getStyles"),cY=Wwe});var hY={};ur(hY,{diagram:()=>Hwe});var Hwe,fY=_(()=>{"use strict";Z7();vC();lY();uY();Hwe={parser:MB,db:Y1,renderer:mA,styles:cY,init:s(({c4:t,wrap:e})=>{mA.setConf(t),Y1.setWrap(e)},"init")}});function yA(t){let e=[];for(let r of t){let n=jy.get(r);n?.styles&&(e=[...e,...n.styles??[]].map(i=>i.trim())),n?.textStyles&&(e=[...e,...n.textStyles??[]].map(i=>i.trim()))}return e}var Kwe,mY,Yp,Oh,ys,jy,gu,vA,xA,W3,gA,So,H3,Y3,X3,j3,Qwe,Zwe,Jwe,eTe,tTe,rTe,nTe,bA,iTe,aTe,sTe,gY,oTe,lTe,kA,yY,vY,cTe,xY,uTe,hTe,fTe,dTe,pTe,Xy,bY,kY,mTe,gTe,wY,yTe,vTe,xTe,bTe,kTe,TY,EY,wTe,TTe,ETe,CTe,STe,_Te,K3,wA=_(()=>{"use strict";Xt();pr();gt();Qt();it();Ci();Kwe="flowchart-",mY=0,Yp=le(),Oh=new Map,ys=[],jy=new Map,gu=[],vA=new Map,xA=new Map,W3=0,gA=!0,Y3=[],X3=s(t=>$e.sanitizeText(t,Yp),"sanitizeText"),j3=s(function(t){for(let e of Oh.values())if(e.id===t)return e.domId;return t},"lookUpDomId"),Qwe=s(function(t,e,r,n,i,a,o={}){if(!t||t.trim().length===0)return;let l,u=Oh.get(t);u===void 0&&(u={id:t,labelType:"text",domId:Kwe+t+"-"+mY,styles:[],classes:[]},Oh.set(t,u)),mY++,e!==void 0?(Yp=le(),l=X3(e.text.trim()),u.labelType=e.type,l.startsWith('"')&&l.endsWith('"')&&(l=l.substring(1,l.length-1)),u.text=l):u.text===void 0&&(u.text=t),r!==void 0&&(u.type=r),n?.forEach(function(h){u.styles.push(h)}),i?.forEach(function(h){u.classes.push(h)}),a!==void 0&&(u.dir=a),u.props===void 0?u.props=o:o!==void 0&&Object.assign(u.props,o)},"addVertex"),Zwe=s(function(t,e,r){let a={start:t,end:e,type:void 0,text:"",labelType:"text"};V.info("abc78 Got edge...",a);let o=r.text;if(o!==void 0&&(a.text=X3(o.text.trim()),a.text.startsWith('"')&&a.text.endsWith('"')&&(a.text=a.text.substring(1,a.text.length-1)),a.labelType=o.type),r!==void 0&&(a.type=r.type,a.stroke=r.stroke,a.length=r.length>10?10:r.length),ys.length<(Yp.maxEdges??500))V.info("Pushing edge..."),ys.push(a);else throw new Error(`Edge limit exceeded. ${ys.length} edges found, but the limit is ${Yp.maxEdges}.
Initialize mermaid with maxEdges set to a higher number to allow more edges.
You cannot set this config via configuration inside the diagram as it is a secure config.
You have to call mermaid.initialize.`)},"addSingleLink"),Jwe=s(function(t,e,r){V.info("addLink",t,e,r);for(let n of t)for(let i of e)Zwe(n,i,r)},"addLink"),eTe=s(function(t,e){t.forEach(function(r){r==="default"?ys.defaultInterpolate=e:ys[r].interpolate=e})},"updateLinkInterpolate"),tTe=s(function(t,e){t.forEach(function(r){if(typeof r=="number"&&r>=ys.length)throw new Error(`The index ${r} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${ys.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);r==="default"?ys.defaultStyle=e:(ys[r].style=e,(ys[r]?.style?.length??0)>0&&!ys[r]?.style?.some(n=>n?.startsWith("fill"))&&ys[r]?.style?.push("fill:none"))})},"updateLink"),rTe=s(function(t,e){t.split(",").forEach(function(r){let n=jy.get(r);n===void 0&&(n={id:r,styles:[],textStyles:[]},jy.set(r,n)),e?.forEach(function(i){if(/color/.exec(i)){let a=i.replace("fill","bgFill");n.textStyles.push(a)}n.styles.push(i)})})},"addClass"),nTe=s(function(t){So=t,/.*/.exec(So)&&(So="LR"),/.*v/.exec(So)&&(So="TB"),So==="TD"&&(So="TB")},"setDirection"),bA=s(function(t,e){for(let r of t.split(",")){let n=Oh.get(r);n&&n.classes.push(e);let i=vA.get(r);i&&i.classes.push(e)}},"setClass"),iTe=s(function(t,e){if(e!==void 0){e=X3(e);for(let r of t.split(","))xA.set(H3==="gen-1"?j3(r):r,e)}},"setTooltip"),aTe=s(function(t,e,r){let n=j3(t);if(le().securityLevel!=="loose"||e===void 0)return;let i=[];if(typeof r=="string"){i=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let o=0;o")),i.classed("hover",!0)}).on("mouseout",function(){e.transition().duration(500).style("opacity",0),Me(this).classed("hover",!1)})},"setupToolTips");Y3.push(xY);uTe=s(function(t="gen-1"){Oh=new Map,jy=new Map,ys=[],Y3=[xY],gu=[],vA=new Map,W3=0,xA=new Map,gA=!0,H3=t,Yp=le(),br()},"clear"),hTe=s(t=>{H3=t||"gen-2"},"setGen"),fTe=s(function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},"defaultStyle"),dTe=s(function(t,e,r){let n=t.text.trim(),i=r.text;t===r&&/\s/.exec(r.text)&&(n=void 0);function a(h){let f={boolean:{},number:{},string:{}},d=[],p;return{nodeList:h.filter(function(g){let y=typeof g;return g.stmt&&g.stmt==="dir"?(p=g.value,!1):g.trim()===""?!1:y in f?f[y].hasOwnProperty(g)?!1:f[y][g]=!0:d.includes(g)?!1:d.push(g)}),dir:p}}s(a,"uniq");let{nodeList:o,dir:l}=a(e.flat());if(H3==="gen-1")for(let h=0;h2e3)return{result:!1,count:0};if(bY[Xy]=e,gu[e].id===t)return{result:!0,count:0};let n=0,i=1;for(;n=0){let o=kY(t,a);if(o.result)return{result:!0,count:i+o.count};i=i+o.count}n=n+1}return{result:!1,count:i}},"indexNodes2"),mTe=s(function(t){return bY[t]},"getDepthFirstPos"),gTe=s(function(){Xy=-1,gu.length>0&&kY("none",gu.length-1)},"indexNodes"),wY=s(function(){return gu},"getSubGraphs"),yTe=s(()=>gA?(gA=!1,!0):!1,"firstGraph"),vTe=s(t=>{let e=t.trim(),r="arrow_open";switch(e[0]){case"<":r="arrow_point",e=e.slice(1);break;case"x":r="arrow_cross",e=e.slice(1);break;case"o":r="arrow_circle",e=e.slice(1);break}let n="normal";return e.includes("=")&&(n="thick"),e.includes(".")&&(n="dotted"),{type:r,stroke:n}},"destructStartLink"),xTe=s((t,e)=>{let r=e.length,n=0;for(let i=0;i{let e=t.trim(),r=e.slice(0,-1),n="arrow_open";switch(e.slice(-1)){case"x":n="arrow_cross",e.startsWith("x")&&(n="double_"+n,r=r.slice(1));break;case">":n="arrow_point",e.startsWith("<")&&(n="double_"+n,r=r.slice(1));break;case"o":n="arrow_circle",e.startsWith("o")&&(n="double_"+n,r=r.slice(1));break}let i="normal",a=r.length-1;r.startsWith("=")&&(i="thick"),r.startsWith("~")&&(i="invisible");let o=xTe(".",r);return o&&(i="dotted",a=o),{type:n,stroke:i,length:a}},"destructEndLink"),kTe=s((t,e)=>{let r=bTe(t),n;if(e){if(n=vTe(e),n.stroke!==r.stroke)return{type:"INVALID",stroke:"INVALID"};if(n.type==="arrow_open")n.type=r.type;else{if(n.type!==r.type)return{type:"INVALID",stroke:"INVALID"};n.type="double_"+n.type}return n.type==="double_arrow"&&(n.type="double_arrow_point"),n.length=r.length,n}return r},"destructLink"),TY=s((t,e)=>{for(let r of t)if(r.nodes.includes(e))return!0;return!1},"exists"),EY=s((t,e)=>{let r=[];return t.nodes.forEach((n,i)=>{TY(e,n)||r.push(t.nodes[i])}),{nodes:r}},"makeUniq"),wTe={firstGraph:yTe},TTe=s(t=>t.type==="square"?"squareRect":t.type==="round"?"roundedRect":t.type??"squareRect","getTypeFromVertex"),ETe=s((t,e)=>t.find(r=>r.id===e),"findNode"),CTe=s(t=>{let e="none",r="arrow_point";switch(t){case"arrow_point":case"arrow_circle":case"arrow_cross":r=t;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":e=t.replace("double_",""),r=e;break}return{arrowTypeStart:e,arrowTypeEnd:r}},"destructEdgeType"),STe=s((t,e,r,n,i,a)=>{let o=r.get(t.id),l=n.get(t.id)??!1,u=ETe(e,t.id);u?(u.cssStyles=t.styles,u.cssCompiledStyles=yA(t.classes),u.cssClasses=t.classes.join(" ")):e.push({id:t.id,label:t.text,labelStyle:"",parentId:o,padding:i.flowchart?.padding||8,cssStyles:t.styles,cssCompiledStyles:yA(["default","node",...t.classes]),cssClasses:"default "+t.classes.join(" "),shape:TTe(t),dir:t.dir,domId:t.domId,isGroup:l,look:a,link:t.link,linkTarget:t.linkTarget,tooltip:gY(t.id)})},"addNodeFromVertex");s(yA,"getCompiledStyles");_Te=s(()=>{let t=le(),e=[],r=[],n=wY(),i=new Map,a=new Map;for(let u=n.length-1;u>=0;u--){let h=n[u];h.nodes.length>0&&a.set(h.id,!0);for(let f of h.nodes)i.set(f,h.id)}for(let u=n.length-1;u>=0;u--){let h=n[u];e.push({id:h.id,label:h.title,labelStyle:"",parentId:i.get(h.id),padding:8,cssCompiledStyles:yA(h.classes),cssClasses:h.classes.join(" "),shape:"rect",dir:h.dir,isGroup:!0,look:t.look})}yY().forEach(u=>{STe(u,e,i,a,t,t.look||"classic")});let l=vY();return l.forEach((u,h)=>{let{arrowTypeStart:f,arrowTypeEnd:d}=CTe(u.type),p=[...l.defaultStyle??[]];u.style&&p.push(...u.style);let m={id:$3(u.start,u.end,{counter:h,prefix:"L"}),start:u.start,end:u.end,type:u.type??"normal",label:u.text,labelpos:"c",thickness:u.stroke,minlen:u.length,classes:u?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:u?.stroke==="invisible"?"none":f,arrowTypeEnd:u?.stroke==="invisible"?"none":d,arrowheadStyle:"fill: #333",labelStyle:p,style:p,pattern:u.stroke,look:t.look};r.push(m)}),{nodes:e,edges:r,other:{},config:t}},"getData"),K3={defaultConfig:s(()=>Qb.flowchart,"defaultConfig"),setAccTitle:Ar,getAccTitle:Gr,getAccDescription:Ur,getData:_Te,setAccDescription:Vr,addVertex:Qwe,lookUpDomId:j3,addLink:Jwe,updateLinkInterpolate:eTe,updateLink:tTe,addClass:rTe,setDirection:nTe,setClass:bA,setTooltip:iTe,getTooltip:gY,setClickEvent:oTe,setLink:sTe,bindFunctions:lTe,getDirection:kA,getVertices:yY,getEdges:vY,getClasses:cTe,clear:uTe,setGen:hTe,defaultStyle:fTe,addSubGraph:dTe,getDepthFirstPos:mTe,indexNodes:gTe,getSubGraphs:wY,destructLink:kTe,lex:wTe,exists:TY,makeUniq:EY,setDiagramTitle:an,getDiagramTitle:Qr}});var ATe,CY,SY=_(()=>{"use strict";ATe=s(t=>{let e=new Set;for(let r of t)switch(r){case"x":e.add("right"),e.add("left");break;case"y":e.add("up"),e.add("down");break;default:e.add(r);break}return e},"expandAndDeduplicateDirections"),CY=s((t,e,r)=>{let n=ATe(t),i=2,a=e.height+2*r.padding,o=a/i,l=e.width+2*o+r.padding,u=r.padding/2;return n.has("right")&&n.has("left")&&n.has("up")&&n.has("down")?[{x:0,y:0},{x:o,y:0},{x:l/2,y:2*u},{x:l-o,y:0},{x:l,y:0},{x:l,y:-a/3},{x:l+2*u,y:-a/2},{x:l,y:-2*a/3},{x:l,y:-a},{x:l-o,y:-a},{x:l/2,y:-a-2*u},{x:o,y:-a},{x:0,y:-a},{x:0,y:-2*a/3},{x:-2*u,y:-a/2},{x:0,y:-a/3}]:n.has("right")&&n.has("left")&&n.has("up")?[{x:o,y:0},{x:l-o,y:0},{x:l,y:-a/2},{x:l-o,y:-a},{x:o,y:-a},{x:0,y:-a/2}]:n.has("right")&&n.has("left")&&n.has("down")?[{x:0,y:0},{x:o,y:-a},{x:l-o,y:-a},{x:l,y:0}]:n.has("right")&&n.has("up")&&n.has("down")?[{x:0,y:0},{x:l,y:-o},{x:l,y:-a+o},{x:0,y:-a}]:n.has("left")&&n.has("up")&&n.has("down")?[{x:l,y:0},{x:0,y:-o},{x:0,y:-a+o},{x:l,y:-a}]:n.has("right")&&n.has("left")?[{x:o,y:0},{x:o,y:-u},{x:l-o,y:-u},{x:l-o,y:0},{x:l,y:-a/2},{x:l-o,y:-a},{x:l-o,y:-a+u},{x:o,y:-a+u},{x:o,y:-a},{x:0,y:-a/2}]:n.has("up")&&n.has("down")?[{x:l/2,y:0},{x:0,y:-u},{x:o,y:-u},{x:o,y:-a+u},{x:0,y:-a+u},{x:l/2,y:-a},{x:l,y:-a+u},{x:l-o,y:-a+u},{x:l-o,y:-u},{x:l,y:-u}]:n.has("right")&&n.has("up")?[{x:0,y:0},{x:l,y:-o},{x:0,y:-a}]:n.has("right")&&n.has("down")?[{x:0,y:0},{x:l,y:0},{x:0,y:-a}]:n.has("left")&&n.has("up")?[{x:l,y:0},{x:0,y:-o},{x:l,y:-a}]:n.has("left")&&n.has("down")?[{x:l,y:0},{x:0,y:0},{x:l,y:-a}]:n.has("right")?[{x:o,y:-u},{x:o,y:-u},{x:l-o,y:-u},{x:l-o,y:0},{x:l,y:-a/2},{x:l-o,y:-a},{x:l-o,y:-a+u},{x:o,y:-a+u},{x:o,y:-a+u}]:n.has("left")?[{x:o,y:0},{x:o,y:-u},{x:l-o,y:-u},{x:l-o,y:-a+u},{x:o,y:-a+u},{x:o,y:-a},{x:0,y:-a/2}]:n.has("up")?[{x:o,y:-u},{x:o,y:-a+u},{x:0,y:-a+u},{x:l/2,y:-a},{x:l,y:-a+u},{x:l-o,y:-a+u},{x:l-o,y:-u}]:n.has("down")?[{x:l/2,y:0},{x:0,y:-u},{x:o,y:-u},{x:o,y:-a+u},{x:l-o,y:-a+u},{x:l-o,y:-u},{x:l,y:-u}]:[{x:0,y:0}]},"getArrowPoints")});function CA(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function MY(t){pd=t}function Xs(t,e){if(e){if(IY.test(t))return t.replace(LTe,_Y)}else if(NY.test(t))return t.replace(DTe,_Y);return t}function ITe(t){return t.replace(MTe,(e,r)=>(r=r.toLowerCase(),r==="colon"?":":r.charAt(0)==="#"?r.charAt(1)==="x"?String.fromCharCode(parseInt(r.substring(2),16)):String.fromCharCode(+r.substring(1)):""))}function en(t,e){let r=typeof t=="string"?t:t.source;e=e||"";let n={replace:s((i,a)=>{let o=typeof a=="string"?a:a.source;return o=o.replace(NTe,"$1"),r=r.replace(i,o),n},"replace"),getRegex:s(()=>new RegExp(r,e),"getRegex")};return n}function AY(t){try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}function LY(t,e){let r=t.replace(/\|/g,(a,o,l)=>{let u=!1,h=o;for(;--h>=0&&l[h]==="\\";)u=!u;return u?"|":" |"}),n=r.split(/ \|/),i=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length{let a=i.match(/^\s+/);if(a===null)return i;let[o]=a;return o.length>=n.length?i.slice(n.length):i}).join(`
`)}function qr(t,e){return dd.parse(t,e)}var pd,IY,LTe,NY,DTe,RTe,_Y,MTe,NTe,Zy,jp,BTe,FTe,zTe,ev,$Te,OY,PY,SA,GTe,_A,VTe,UTe,J3,AA,qTe,BY,WTe,LA,RY,HTe,YTe,FY,XTe,zY,jTe,tv,KTe,QTe,ZTe,JTe,e7e,t7e,r7e,n7e,i7e,Z3,a7e,$Y,GY,s7e,DA,o7e,TA,l7e,Q3,Qy,yu,Kp,Jy,vu,Xp,EA,dd,b3t,k3t,w3t,T3t,E3t,C3t,S3t,VY=_(()=>{"use strict";s(CA,"_getDefaults");pd=CA();s(MY,"changeDefaults");IY=/[&<>"']/,LTe=new RegExp(IY.source,"g"),NY=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,DTe=new RegExp(NY.source,"g"),RTe={"&":"&","<":"<",">":">",'"':""","'":"'"},_Y=s(t=>RTe[t],"getEscapeReplacement");s(Xs,"escape$1");MTe=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;s(ITe,"unescape");NTe=/(^|[^\[])\^/g;s(en,"edit");s(AY,"cleanUrl");Zy={exec:s(()=>null,"exec")};s(LY,"splitCells");s(Ky,"rtrim");s(OTe,"findClosingBracket");s(DY,"outputLink");s(PTe,"indentCodeCompensation");jp=class{static{s(this,"_Tokenizer")}options;rules;lexer;constructor(e){this.options=e||pd}space(e){let r=this.rules.block.newline.exec(e);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(e){let r=this.rules.block.code.exec(e);if(r){let n=r[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Ky(n,`
`)}}}fences(e){let r=this.rules.block.fences.exec(e);if(r){let n=r[0],i=PTe(n,r[3]||"");return{type:"code",raw:n,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:i}}}heading(e){let r=this.rules.block.heading.exec(e);if(r){let n=r[2].trim();if(/#$/.test(n)){let i=Ky(n,"#");(this.options.pedantic||!i||/ $/.test(i))&&(n=i.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let r=this.rules.block.hr.exec(e);if(r)return{type:"hr",raw:Ky(r[0],`
`)}}blockquote(e){let r=this.rules.block.blockquote.exec(e);if(r){let n=Ky(r[0],`
`).split(`
`),i="",a="",o=[];for(;n.length>0;){let l=!1,u=[],h;for(h=0;h/.test(n[h]))u.push(n[h]),l=!0;else if(!l)u.push(n[h]);else break;n=n.slice(h);let f=u.join(`
`),d=f.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
$1`).replace(/^ {0,3}>[ \t]?/gm,"");i=i?`${i}
${f}`:f,a=a?`${a}
${d}`:d;let p=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(d,o,!0),this.lexer.state.top=p,n.length===0)break;let m=o[o.length-1];if(m?.type==="code")break;if(m?.type==="blockquote"){let g=m,y=g.raw+`
`+n.join(`
`),v=this.blockquote(y);o[o.length-1]=v,i=i.substring(0,i.length-g.raw.length)+v.raw,a=a.substring(0,a.length-g.text.length)+v.text;break}else if(m?.type==="list"){let g=m,y=g.raw+`
`+n.join(`
`),v=this.list(y);o[o.length-1]=v,i=i.substring(0,i.length-m.raw.length)+v.raw,a=a.substring(0,a.length-g.raw.length)+v.raw,n=y.substring(o[o.length-1].raw.length).split(`
`);continue}}return{type:"blockquote",raw:i,tokens:o,text:a}}}list(e){let r=this.rules.block.list.exec(e);if(r){let n=r[1].trim(),i=n.length>1,a={type:"list",raw:"",ordered:i,start:i?+n.slice(0,-1):"",loose:!1,items:[]};n=i?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=i?n:"[*+-]");let o=new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`),l=!1;for(;e;){let u=!1,h="",f="";if(!(r=o.exec(e))||this.rules.block.hr.test(e))break;h=r[0],e=e.substring(h.length);let d=r[2].split(`
`,1)[0].replace(/^\t+/,x=>" ".repeat(3*x.length)),p=e.split(`
`,1)[0],m=!d.trim(),g=0;if(this.options.pedantic?(g=2,f=d.trimStart()):m?g=r[1].length+1:(g=r[2].search(/[^ ]/),g=g>4?1:g,f=d.slice(g),g+=r[1].length),m&&/^ *$/.test(p)&&(h+=p+`
`,e=e.substring(p.length+1),u=!0),!u){let x=new RegExp(`^ {0,${Math.min(3,g-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),b=new RegExp(`^ {0,${Math.min(3,g-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),k=new RegExp(`^ {0,${Math.min(3,g-1)}}(?:\`\`\`|~~~)`),A=new RegExp(`^ {0,${Math.min(3,g-1)}}#`);for(;e;){let w=e.split(`
`,1)[0];if(p=w,this.options.pedantic&&(p=p.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),k.test(p)||A.test(p)||x.test(p)||b.test(e))break;if(p.search(/[^ ]/)>=g||!p.trim())f+=`
`+p.slice(g);else{if(m||d.search(/[^ ]/)>=4||k.test(d)||A.test(d)||b.test(d))break;f+=`
`+p}!m&&!p.trim()&&(m=!0),h+=w+`
`,e=e.substring(w.length+1),d=p.slice(g)}}a.loose||(l?a.loose=!0:/\n *\n *$/.test(h)&&(l=!0));let y=null,v;this.options.gfm&&(y=/^\[[ xX]\] /.exec(f),y&&(v=y[0]!=="[ ] ",f=f.replace(/^\[[ xX]\] +/,""))),a.items.push({type:"list_item",raw:h,task:!!y,checked:v,loose:!1,text:f,tokens:[]}),a.raw+=h}a.items[a.items.length-1].raw=a.items[a.items.length-1].raw.trimEnd(),a.items[a.items.length-1].text=a.items[a.items.length-1].text.trimEnd(),a.raw=a.raw.trimEnd();for(let u=0;ud.type==="space"),f=h.length>0&&h.some(d=>/\n.*\n/.test(d.raw));a.loose=f}if(a.loose)for(let u=0;u$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:n,raw:r[0],href:i,title:a}}}table(e){let r=this.rules.block.table.exec(e);if(!r||!/[:|]/.test(r[2]))return;let n=LY(r[1]),i=r[2].replace(/^\||\| *$/g,"").split("|"),a=r[3]&&r[3].trim()?r[3].replace(/\n[ \t]*$/,"").split(`
`):[],o={type:"table",raw:r[0],header:[],align:[],rows:[]};if(n.length===i.length){for(let l of i)/^ *-+: *$/.test(l)?o.align.push("right"):/^ *:-+: *$/.test(l)?o.align.push("center"):/^ *:-+ *$/.test(l)?o.align.push("left"):o.align.push(null);for(let l=0;l({text:u,tokens:this.lexer.inline(u),header:!1,align:o.align[h]})));return o}}lheading(e){let r=this.rules.block.lheading.exec(e);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(e){let r=this.rules.block.paragraph.exec(e);if(r){let n=r[1].charAt(r[1].length-1)===`
`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let r=this.rules.block.text.exec(e);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(e){let r=this.rules.inline.escape.exec(e);if(r)return{type:"escape",raw:r[0],text:Xs(r[1])}}tag(e){let r=this.rules.inline.tag.exec(e);if(r)return!this.lexer.state.inLink&&/^/i.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(e){let r=this.rules.inline.link.exec(e);if(r){let n=r[2].trim();if(!this.options.pedantic&&/^$/.test(n))return;let o=Ky(n.slice(0,-1),"\\");if((n.length-o.length)%2===0)return}else{let o=OTe(r[2],"()");if(o>-1){let u=(r[0].indexOf("!")===0?5:4)+r[1].length+o;r[2]=r[2].substring(0,o),r[0]=r[0].substring(0,u).trim(),r[3]=""}}let i=r[2],a="";if(this.options.pedantic){let o=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);o&&(i=o[1],a=o[3])}else a=r[3]?r[3].slice(1,-1):"";return i=i.trim(),/^$/.test(n)?i=i.slice(1):i=i.slice(1,-1)),DY(r,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer)}}reflink(e,r){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let i=(n[2]||n[1]).replace(/\s+/g," "),a=r[i.toLowerCase()];if(!a){let o=n[0].charAt(0);return{type:"text",raw:o,text:o}}return DY(n,a,n[0],this.lexer)}}emStrong(e,r,n=""){let i=this.rules.inline.emStrongLDelim.exec(e);if(!i||i[3]&&n.match(/[\p{L}\p{N}]/u))return;if(!(i[1]||i[2]||"")||!n||this.rules.inline.punctuation.exec(n)){let o=[...i[0]].length-1,l,u,h=o,f=0,d=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,r=r.slice(-1*e.length+o);(i=d.exec(r))!=null;){if(l=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!l)continue;if(u=[...l].length,i[3]||i[4]){h+=u;continue}else if((i[5]||i[6])&&o%3&&!((o+u)%3)){f+=u;continue}if(h-=u,h>0)continue;u=Math.min(u,u+h+f);let p=[...i[0]][0].length,m=e.slice(0,o+i.index+p+u);if(Math.min(o,u)%2){let y=m.slice(1,-1);return{type:"em",raw:m,text:y,tokens:this.lexer.inlineTokens(y)}}let g=m.slice(2,-2);return{type:"strong",raw:m,text:g,tokens:this.lexer.inlineTokens(g)}}}}codespan(e){let r=this.rules.inline.code.exec(e);if(r){let n=r[2].replace(/\n/g," "),i=/[^ ]/.test(n),a=/^ /.test(n)&&/ $/.test(n);return i&&a&&(n=n.substring(1,n.length-1)),n=Xs(n,!0),{type:"codespan",raw:r[0],text:n}}}br(e){let r=this.rules.inline.br.exec(e);if(r)return{type:"br",raw:r[0]}}del(e){let r=this.rules.inline.del.exec(e);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(e){let r=this.rules.inline.autolink.exec(e);if(r){let n,i;return r[2]==="@"?(n=Xs(r[1]),i="mailto:"+n):(n=Xs(r[1]),i=n),{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}url(e){let r;if(r=this.rules.inline.url.exec(e)){let n,i;if(r[2]==="@")n=Xs(r[0]),i="mailto:"+n;else{let a;do a=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])?.[0]??"";while(a!==r[0]);n=Xs(r[0]),r[1]==="www."?i="http://"+r[0]:i=r[0]}return{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){let r=this.rules.inline.text.exec(e);if(r){let n;return this.lexer.state.inRawBlock?n=r[0]:n=Xs(r[0]),{type:"text",raw:r[0],text:n}}}},BTe=/^(?: *(?:\n|$))+/,FTe=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,zTe=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,ev=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,$Te=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,OY=/(?:[*+-]|\d{1,9}[.)])/,PY=en(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,OY).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),SA=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,GTe=/^[^\n]+/,_A=/(?!\s*\])(?:\\.|[^\[\]\\])+/,VTe=en(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",_A).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),UTe=en(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,OY).getRegex(),J3="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",AA=/|$))/,qTe=en("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",AA).replace("tag",J3).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),BY=en(SA).replace("hr",ev).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",J3).getRegex(),WTe=en(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",BY).getRegex(),LA={blockquote:WTe,code:FTe,def:VTe,fences:zTe,heading:$Te,hr:ev,html:qTe,lheading:PY,list:UTe,newline:BTe,paragraph:BY,table:Zy,text:GTe},RY=en("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ev).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",J3).getRegex(),HTe={...LA,table:RY,paragraph:en(SA).replace("hr",ev).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",RY).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",J3).getRegex()},YTe={...LA,html:en(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)| \\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",AA).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Zy,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:en(SA).replace("hr",ev).replace("heading",` *#{1,6} *[^
]`).replace("lheading",PY).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},FY=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,XTe=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,zY=/^( {2,}|\\)\n(?!\s*$)/,jTe=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g,ZTe=en(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,tv).getRegex(),JTe=en("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,tv).getRegex(),e7e=en("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,tv).getRegex(),t7e=en(/\\([punct])/,"gu").replace(/punct/g,tv).getRegex(),r7e=en(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),n7e=en(AA).replace("(?:-->|$)","-->").getRegex(),i7e=en("^comment|^[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",n7e).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Z3=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,a7e=en(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",Z3).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),$Y=en(/^!?\[(label)\]\[(ref)\]/).replace("label",Z3).replace("ref",_A).getRegex(),GY=en(/^!?\[(ref)\](?:\[\])?/).replace("ref",_A).getRegex(),s7e=en("reflink|nolink(?!\\()","g").replace("reflink",$Y).replace("nolink",GY).getRegex(),DA={_backpedal:Zy,anyPunctuation:t7e,autolink:r7e,blockSkip:QTe,br:zY,code:XTe,del:Zy,emStrongLDelim:ZTe,emStrongRDelimAst:JTe,emStrongRDelimUnd:e7e,escape:FY,link:a7e,nolink:GY,punctuation:KTe,reflink:$Y,reflinkSearch:s7e,tag:i7e,text:jTe,url:Zy},o7e={...DA,link:en(/^!?\[(label)\]\((.*?)\)/).replace("label",Z3).getRegex(),reflink:en(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Z3).getRegex()},TA={...DA,escape:en(FY).replace("])","~|])").getRegex(),url:en(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\u+" ".repeat(h.length));let i,a,o;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(l=>(i=l.call({lexer:this},e,r))?(e=e.substring(i.raw.length),r.push(i),!0):!1))){if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length),i.raw.length===1&&r.length>0?r[r.length-1].raw+=`
`:r.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length),a=r[r.length-1],a&&(a.type==="paragraph"||a.type==="text")?(a.raw+=`
`+i.raw,a.text+=`
`+i.text,this.inlineQueue[this.inlineQueue.length-1].src=a.text):r.push(i);continue}if(i=this.tokenizer.fences(e)){e=e.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.heading(e)){e=e.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.hr(e)){e=e.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.blockquote(e)){e=e.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.list(e)){e=e.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.html(e)){e=e.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.def(e)){e=e.substring(i.raw.length),a=r[r.length-1],a&&(a.type==="paragraph"||a.type==="text")?(a.raw+=`
`+i.raw,a.text+=`
`+i.raw,this.inlineQueue[this.inlineQueue.length-1].src=a.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title});continue}if(i=this.tokenizer.table(e)){e=e.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.lheading(e)){e=e.substring(i.raw.length),r.push(i);continue}if(o=e,this.options.extensions&&this.options.extensions.startBlock){let l=1/0,u=e.slice(1),h;this.options.extensions.startBlock.forEach(f=>{h=f.call({lexer:this},u),typeof h=="number"&&h>=0&&(l=Math.min(l,h))}),l<1/0&&l>=0&&(o=e.substring(0,l+1))}if(this.state.top&&(i=this.tokenizer.paragraph(o))){a=r[r.length-1],n&&a?.type==="paragraph"?(a.raw+=`
`+i.raw,a.text+=`
`+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=a.text):r.push(i),n=o.length!==e.length,e=e.substring(i.raw.length);continue}if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length),a=r[r.length-1],a&&a.type==="text"?(a.raw+=`
`+i.raw,a.text+=`
`+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=a.text):r.push(i);continue}if(e){let l="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,r}inline(e,r=[]){return this.inlineQueue.push({src:e,tokens:r}),r}inlineTokens(e,r=[]){let n,i,a,o=e,l,u,h;if(this.tokens.links){let f=Object.keys(this.tokens.links);if(f.length>0)for(;(l=this.tokenizer.rules.inline.reflinkSearch.exec(o))!=null;)f.includes(l[0].slice(l[0].lastIndexOf("[")+1,-1))&&(o=o.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(l=this.tokenizer.rules.inline.blockSkip.exec(o))!=null;)o=o.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(l=this.tokenizer.rules.inline.anyPunctuation.exec(o))!=null;)o=o.slice(0,l.index)+"++"+o.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(u||(h=""),u=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(f=>(n=f.call({lexer:this},e,r))?(e=e.substring(n.raw.length),r.push(n),!0):!1))){if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),i=r[r.length-1],i&&n.type==="text"&&i.type==="text"?(i.raw+=n.raw,i.text+=n.text):r.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length),i=r[r.length-1],i&&n.type==="text"&&i.type==="text"?(i.raw+=n.raw,i.text+=n.text):r.push(n);continue}if(n=this.tokenizer.emStrong(e,o,h)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.codespan(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.br(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.del(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.autolink(e)){e=e.substring(n.raw.length),r.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e))){e=e.substring(n.raw.length),r.push(n);continue}if(a=e,this.options.extensions&&this.options.extensions.startInline){let f=1/0,d=e.slice(1),p;this.options.extensions.startInline.forEach(m=>{p=m.call({lexer:this},d),typeof p=="number"&&p>=0&&(f=Math.min(f,p))}),f<1/0&&f>=0&&(a=e.substring(0,f+1))}if(n=this.tokenizer.inlineText(a)){e=e.substring(n.raw.length),n.raw.slice(-1)!=="_"&&(h=n.raw.slice(-1)),u=!0,i=r[r.length-1],i&&i.type==="text"?(i.raw+=n.raw,i.text+=n.text):r.push(n);continue}if(e){let f="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(f);break}else throw new Error(f)}}return r}},Kp=class{static{s(this,"_Renderer")}options;parser;constructor(e){this.options=e||pd}space(e){return""}code({text:e,lang:r,escaped:n}){let i=(r||"").match(/^\S*/)?.[0],a=e.replace(/\n$/,"")+`
`;return i?''+(n?a:Xs(a,!0))+`
`:""+(n?a:Xs(a,!0))+`
`}blockquote({tokens:e}){return`
${this.parser.parse(e)}
`}html({text:e}){return e}heading({tokens:e,depth:r}){return`${this.parser.parseInline(e)}
`}hr(e){return`
`}list(e){let r=e.ordered,n=e.start,i="";for(let l=0;l
`+i+""+a+`>
`}listitem(e){let r="";if(e.task){let n=this.checkbox({checked:!!e.checked});e.loose?e.tokens.length>0&&e.tokens[0].type==="paragraph"?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=n+" "+e.tokens[0].tokens[0].text)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" "}):r+=n+" "}return r+=this.parser.parse(e.tokens,!!e.loose),`${r}
`}checkbox({checked:e}){return"'}paragraph({tokens:e}){return`${this.parser.parseInline(e)}
`}table(e){let r="",n="";for(let a=0;a${i}`),`
`+r+`
`+i+`
`}tablerow({text:e}){return`
${e}
`}tablecell(e){let r=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+r+`${n}>
`}strong({tokens:e}){return`${this.parser.parseInline(e)}`}em({tokens:e}){return`${this.parser.parseInline(e)}`}codespan({text:e}){return`${e}
`}br(e){return"
"}del({tokens:e}){return`${this.parser.parseInline(e)}`}link({href:e,title:r,tokens:n}){let i=this.parser.parseInline(n),a=AY(e);if(a===null)return i;e=a;let o='"+i+"",o}image({href:e,title:r,text:n}){let i=AY(e);if(i===null)return n;e=i;let a=`",a}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):e.text}},Jy=class{static{s(this,"_TextRenderer")}strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},vu=class t{static{s(this,"_Parser")}options;renderer;textRenderer;constructor(e){this.options=e||pd,this.options.renderer=this.options.renderer||new Kp,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Jy}static parse(e,r){return new t(r).parse(e)}static parseInline(e,r){return new t(r).parseInline(e)}parse(e,r=!0){let n="";for(let i=0;i{let l=a[o].flat(1/0);n=n.concat(this.walkTokens(l,r))}):a.tokens&&(n=n.concat(this.walkTokens(a.tokens,r)))}}return n}use(...e){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let i={...n};if(i.async=this.defaults.async||i.async||!1,n.extensions&&(n.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){let o=r.renderers[a.name];o?r.renderers[a.name]=function(...l){let u=a.renderer.apply(this,l);return u===!1&&(u=o.apply(this,l)),u}:r.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let o=r[a.level];o?o.unshift(a.tokenizer):r[a.level]=[a.tokenizer],a.start&&(a.level==="block"?r.startBlock?r.startBlock.push(a.start):r.startBlock=[a.start]:a.level==="inline"&&(r.startInline?r.startInline.push(a.start):r.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(r.childTokens[a.name]=a.childTokens)}),i.extensions=r),n.renderer){let a=this.defaults.renderer||new Kp(this.defaults);for(let o in n.renderer){if(!(o in a))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;let l=o,u=n.renderer[l];n.useNewRenderer||(u=this.#t(u,l,a));let h=a[l];a[l]=(...f)=>{let d=u.apply(a,f);return d===!1&&(d=h.apply(a,f)),d||""}}i.renderer=a}if(n.tokenizer){let a=this.defaults.tokenizer||new jp(this.defaults);for(let o in n.tokenizer){if(!(o in a))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;let l=o,u=n.tokenizer[l],h=a[l];a[l]=(...f)=>{let d=u.apply(a,f);return d===!1&&(d=h.apply(a,f)),d}}i.tokenizer=a}if(n.hooks){let a=this.defaults.hooks||new Xp;for(let o in n.hooks){if(!(o in a))throw new Error(`hook '${o}' does not exist`);if(o==="options")continue;let l=o,u=n.hooks[l],h=a[l];Xp.passThroughHooks.has(o)?a[l]=f=>{if(this.defaults.async)return Promise.resolve(u.call(a,f)).then(p=>h.call(a,p));let d=u.call(a,f);return h.call(a,d)}:a[l]=(...f)=>{let d=u.apply(a,f);return d===!1&&(d=h.apply(a,f)),d}}i.hooks=a}if(n.walkTokens){let a=this.defaults.walkTokens,o=n.walkTokens;i.walkTokens=function(l){let u=[];return u.push(o.call(this,l)),a&&(u=u.concat(a.call(this,l))),u}}this.defaults={...this.defaults,...i}}),this}#t(e,r,n){switch(r){case"heading":return function(i){return!i.type||i.type!==r?e.apply(this,arguments):e.call(this,n.parser.parseInline(i.tokens),i.depth,ITe(n.parser.parseInline(i.tokens,n.parser.textRenderer)))};case"code":return function(i){return!i.type||i.type!==r?e.apply(this,arguments):e.call(this,i.text,i.lang,!!i.escaped)};case"table":return function(i){if(!i.type||i.type!==r)return e.apply(this,arguments);let a="",o="";for(let u=0;u0&&f.tokens[0].type==="paragraph"?(f.tokens[0].text=g+" "+f.tokens[0].text,f.tokens[0].tokens&&f.tokens[0].tokens.length>0&&f.tokens[0].tokens[0].type==="text"&&(f.tokens[0].tokens[0].text=g+" "+f.tokens[0].tokens[0].text)):f.tokens.unshift({type:"text",text:g+" "}):m+=g+" "}m+=this.parser.parse(f.tokens,l),u+=this.listitem({type:"list_item",raw:m,text:m,task:p,checked:!!d,loose:l,tokens:f.tokens})}return e.call(this,u,a,o)};case"html":return function(i){return!i.type||i.type!==r?e.apply(this,arguments):e.call(this,i.text,i.block)};case"paragraph":return function(i){return!i.type||i.type!==r?e.apply(this,arguments):e.call(this,this.parser.parseInline(i.tokens))};case"escape":return function(i){return!i.type||i.type!==r?e.apply(this,arguments):e.call(this,i.text)};case"link":return function(i){return!i.type||i.type!==r?e.apply(this,arguments):e.call(this,i.href,i.title,this.parser.parseInline(i.tokens))};case"image":return function(i){return!i.type||i.type!==r?e.apply(this,arguments):e.call(this,i.href,i.title,i.text)};case"strong":return function(i){return!i.type||i.type!==r?e.apply(this,arguments):e.call(this,this.parser.parseInline(i.tokens))};case"em":return function(i){return!i.type||i.type!==r?e.apply(this,arguments):e.call(this,this.parser.parseInline(i.tokens))};case"codespan":return function(i){return!i.type||i.type!==r?e.apply(this,arguments):e.call(this,i.text)};case"del":return function(i){return!i.type||i.type!==r?e.apply(this,arguments):e.call(this,this.parser.parseInline(i.tokens))};case"text":return function(i){return!i.type||i.type!==r?e.apply(this,arguments):e.call(this,i.text)}}return e}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,r){return yu.lex(e,r??this.defaults)}parser(e,r){return vu.parse(e,r??this.defaults)}#e(e,r){return(n,i)=>{let a={...i},o={...this.defaults,...a};this.defaults.async===!0&&a.async===!1&&(o.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),o.async=!0);let l=this.#r(!!o.silent,!!o.async);if(typeof n>"u"||n===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(o.hooks&&(o.hooks.options=o),o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(n):n).then(u=>e(u,o)).then(u=>o.hooks?o.hooks.processAllTokens(u):u).then(u=>o.walkTokens?Promise.all(this.walkTokens(u,o.walkTokens)).then(()=>u):u).then(u=>r(u,o)).then(u=>o.hooks?o.hooks.postprocess(u):u).catch(l);try{o.hooks&&(n=o.hooks.preprocess(n));let u=e(n,o);o.hooks&&(u=o.hooks.processAllTokens(u)),o.walkTokens&&this.walkTokens(u,o.walkTokens);let h=r(u,o);return o.hooks&&(h=o.hooks.postprocess(h)),h}catch(u){return l(u)}}}#r(e,r){return n=>{if(n.message+=`
Please report this to https://github.com/markedjs/marked.`,e){let i="An error occurred:
"+Xs(n.message+"",!0)+"
";return r?Promise.resolve(i):i}if(r)return Promise.reject(n);throw n}}},dd=new EA;s(qr,"marked");qr.options=qr.setOptions=function(t){return dd.setOptions(t),qr.defaults=dd.defaults,MY(qr.defaults),qr};qr.getDefaults=CA;qr.defaults=pd;qr.use=function(...t){return dd.use(...t),qr.defaults=dd.defaults,MY(qr.defaults),qr};qr.walkTokens=function(t,e){return dd.walkTokens(t,e)};qr.parseInline=dd.parseInline;qr.Parser=vu;qr.parser=vu.parse;qr.Renderer=Kp;qr.TextRenderer=Jy;qr.Lexer=yu;qr.lexer=yu.lex;qr.Tokenizer=jp;qr.Hooks=Xp;qr.parse=qr;b3t=qr.options,k3t=qr.setOptions,w3t=qr.use,T3t=qr.walkTokens,E3t=qr.parseInline,C3t=vu.parse,S3t=yu.lex});function c7e(t,{markdownAutoWrap:e}){let n=t.replace(/
/g,`
`).replace(/\n{2,}/g,`
`),i=lb(n);return e===!1?i.replace(/ /g," "):i}function UY(t,e={}){let r=c7e(t,e),n=qr.lexer(r),i=[[]],a=0;function o(l,u="normal"){l.type==="text"?l.text.split(`
`).forEach((f,d)=>{d!==0&&(a++,i.push([])),f.split(" ").forEach(p=>{p&&i[a].push({content:p,type:u})})}):l.type==="strong"||l.type==="em"?l.tokens.forEach(h=>{o(h,l.type)}):l.type==="html"&&i[a].push({content:l.text,type:"normal"})}return s(o,"processNode"),n.forEach(l=>{l.type==="paragraph"?l.tokens?.forEach(u=>{o(u)}):l.type==="html"&&i[a].push({content:l.text,type:"normal"})}),i}function qY(t,{markdownAutoWrap:e}={}){let r=qr.lexer(t);function n(i){return i.type==="text"?e===!1?i.text.replace(/\n */g,"
").replace(/ /g," "):i.text.replace(/\n */g,"
"):i.type==="strong"?`${i.tokens?.map(n).join("")}`:i.type==="em"?`${i.tokens?.map(n).join("")}`:i.type==="paragraph"?`${i.tokens?.map(n).join("")}
`:i.type==="space"?"":i.type==="html"?`${i.text}`:`Unsupported markdown: ${i.type}`}return s(n,"output"),r.map(n).join("")}var WY=_(()=>{"use strict";VY();Y7();s(c7e,"preprocessMarkdown");s(UY,"markdownToLines");s(qY,"markdownToHTML")});function u7e(t){return Intl.Segmenter?[...new Intl.Segmenter().segment(t)].map(e=>e.segment):[...t]}function h7e(t,e){let r=u7e(e.content);return HY(t,[],r,e.type)}function HY(t,e,r,n){if(r.length===0)return[{content:e.join(""),type:n},{content:"",type:n}];let[i,...a]=r,o=[...e,i];return t([{content:o.join(""),type:n}])?HY(t,o,a,n):(e.length===0&&i&&(e.push(i),r.shift()),[{content:e.join(""),type:n},{content:r.join(""),type:n}])}function YY(t,e){if(t.some(({content:r})=>r.includes(`
`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return RA(t,e)}function RA(t,e,r=[],n=[]){if(t.length===0)return n.length>0&&r.push(n),r.length>0?r:[];let i="";t[0].content===" "&&(i=" ",t.shift());let a=t.shift()??{content:" ",type:"normal"},o=[...n];if(i!==""&&o.push({content:i,type:"normal"}),o.push(a),e(o))return RA(t,e,r,o);if(n.length>0)r.push(n),t.unshift(a);else if(a.content){let[l,u]=h7e(e,a);r.push([l]),u.content&&t.unshift(u)}return RA(t,e,r)}var XY=_(()=>{"use strict";s(u7e,"splitTextToChars");s(h7e,"splitWordToFitWidth");s(HY,"splitWordToFitWidthRecursion");s(YY,"splitLineToFitWidth");s(RA,"splitLineToFitWidthRecursion")});function jY(t,e){e&&t.attr("style",e)}async function f7e(t,e,r,n,i=!1){let a=t.append("foreignObject"),o=a.append("xhtml:div"),l=e.label;e.label&&Ei(e.label)&&(l=await hh(e.label.replace($e.lineBreakRegex,`
`),le()));let u=e.isNode?"nodeLabel":"edgeLabel",h=o.append("span");h.html(l),jY(h,e.labelStyle),h.attr("class",`${u} ${n}`),jY(o,e.labelStyle),o.style("display","table-cell"),o.style("white-space","nowrap"),o.style("line-height","1.5"),o.style("max-width",r+"px"),o.style("text-align","center"),o.attr("xmlns","http://www.w3.org/1999/xhtml"),i&&o.attr("class","labelBkg");let f=o.node().getBoundingClientRect();return f.width===r&&(o.style("display","table"),o.style("white-space","break-spaces"),o.style("width",r+"px"),f=o.node().getBoundingClientRect()),a.node()}function MA(t,e,r){return t.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*r-.1+"em").attr("dy",r+"em")}function d7e(t,e,r){let n=t.append("text"),i=MA(n,1,e);IA(i,r);let a=i.node().getComputedTextLength();return n.remove(),a}function KY(t,e,r){let n=t.append("text"),i=MA(n,1,e);IA(i,[{content:r,type:"normal"}]);let a=i.node()?.getBoundingClientRect();return a&&n.remove(),a}function p7e(t,e,r,n=!1){let a=e.append("g"),o=a.insert("rect").attr("class","background").attr("style","stroke: none"),l=a.append("text").attr("y","-10.1"),u=0;for(let h of r){let f=s(p=>d7e(a,1.1,p)<=t,"checkWidth"),d=f(h)?[h]:YY(h,f);for(let p of d){let m=MA(l,u,1.1);IA(m,p),u++}}if(n){let h=l.node().getBBox(),f=2;return o.attr("x",-f).attr("y",-f).attr("width",h.width+2*f).attr("height",h.height+2*f),a.node()}else return l.node()}function IA(t,e){t.text(""),e.forEach((r,n)=>{let i=t.append("tspan").attr("font-style",r.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",r.type==="strong"?"bold":"normal");n===0?i.text(r.content):i.text(" "+r.content)})}function NA(t){return t.replace(/fa[bklrs]?:fa-[\w-]+/g,e=>``)}var vs,ic=_(()=>{"use strict";gt();Qt();Xt();it();WY();pr();XY();s(jY,"applyStyle");s(f7e,"addHtmlSpan");s(MA,"createTspan");s(d7e,"computeWidthOfText");s(KY,"computeDimensionOfText");s(p7e,"createFormattedText");s(IA,"updateTextContentAndStyles");s(NA,"replaceIconSubstring");vs=s(async(t,e="",{style:r="",isTitle:n=!1,classes:i="",useHtmlLabels:a=!0,isNode:o=!0,width:l=200,addSvgBackground:u=!1}={},h)=>{if(V.info("XYZ createText",e,r,n,i,a,o,"addSvgBackground: ",u),a){let f=qY(e,h),d=NA(Ys(f)),p=e.replace(/\\\\/g,"\\"),m={isNode:o,label:Ei(e)?p:d,labelStyle:r.replace("fill:","color:")};return await f7e(t,m,l,i,u)}else{let f=e.replace(/
/g,"
"),d=UY(f.replace("
","
"),h),p=p7e(l,t,d,e?u:!1);if(o){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));let m=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");Me(p).attr("style",m)}else{let m=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");Me(p).select("rect").attr("style",m.replace(/background:/g,"fill:"));let g=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");Me(p).select("text").attr("style",g)}return p}},"createText")});function QY(t,e){e&&t.attr("style",e)}function m7e(t){let e=Me(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),r=e.append("xhtml:div"),n=t.label,i=t.isNode?"nodeLabel":"edgeLabel",a=r.append("span");return a.html(n),QY(a,t.labelStyle),a.attr("class",i),QY(r,t.labelStyle),r.style("display","inline-block"),r.style("white-space","nowrap"),r.attr("xmlns","http://www.w3.org/1999/xhtml"),e.node()}var g7e,Hi,rv=_(()=>{"use strict";Xt();it();gt();Qt();pr();ic();s(QY,"applyStyle");s(m7e,"addHtmlLabel");g7e=s((t,e,r,n)=>{let i=t||"";if(typeof i=="object"&&(i=i[0]),hr(le().flowchart.htmlLabels)){i=i.replace(/\\n|\n/g,"
"),V.debug("vertexText"+i);let a={isNode:n,label:NA(Ys(i)),labelStyle:e.replace("fill:","color:")};return m7e(a)}else{let a=document.createElementNS("http://www.w3.org/2000/svg","text");a.setAttribute("style",e.replace("color:","fill:"));let o=[];typeof i=="string"?o=i.split(/\\n|\n|
/gi):Array.isArray(i)?o=i:o=[];for(let l of o){let u=document.createElementNS("http://www.w3.org/2000/svg","tspan");u.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),u.setAttribute("dy","1em"),u.setAttribute("x","0"),r?u.setAttribute("class","title-row"):u.setAttribute("class","row"),u.textContent=l.trim(),a.appendChild(u)}return a}},"createLabel"),Hi=g7e});function y7e(t,e){return t.intersect(e)}var ZY,JY=_(()=>{"use strict";s(y7e,"intersectNode");ZY=y7e});function v7e(t,e,r,n){var i=t.x,a=t.y,o=i-n.x,l=a-n.y,u=Math.sqrt(e*e*l*l+r*r*o*o),h=Math.abs(e*r*o/u);n.x{"use strict";s(v7e,"intersectEllipse");e5=v7e});function x7e(t,e,r){return e5(t,e,e,r)}var eX,tX=_(()=>{"use strict";OA();s(x7e,"intersectCircle");eX=x7e});function b7e(t,e,r,n){var i,a,o,l,u,h,f,d,p,m,g,y,v,x,b;if(i=e.y-t.y,o=t.x-e.x,u=e.x*t.y-t.x*e.y,p=i*r.x+o*r.y+u,m=i*n.x+o*n.y+u,!(p!==0&&m!==0&&rX(p,m))&&(a=n.y-r.y,l=r.x-n.x,h=n.x*r.y-r.x*n.y,f=a*t.x+l*t.y+h,d=a*e.x+l*e.y+h,!(f!==0&&d!==0&&rX(f,d))&&(g=i*l-a*o,g!==0)))return y=Math.abs(g/2),v=o*h-l*u,x=v<0?(v-y)/g:(v+y)/g,v=a*u-i*h,b=v<0?(v-y)/g:(v+y)/g,{x,y:b}}function rX(t,e){return t*e>0}var nX,iX=_(()=>{"use strict";s(b7e,"intersectLine");s(rX,"sameSign");nX=b7e});function k7e(t,e,r){var n=t.x,i=t.y,a=[],o=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY;typeof e.forEach=="function"?e.forEach(function(g){o=Math.min(o,g.x),l=Math.min(l,g.y)}):(o=Math.min(o,e.x),l=Math.min(l,e.y));for(var u=n-t.width/2-o,h=i-t.height/2-l,f=0;f1&&a.sort(function(g,y){var v=g.x-r.x,x=g.y-r.y,b=Math.sqrt(v*v+x*x),k=y.x-r.x,A=y.y-r.y,w=Math.sqrt(k*k+A*A);return b{"use strict";iX();aX=k7e;s(k7e,"intersectPolygon")});var w7e,md,PA=_(()=>{"use strict";w7e=s((t,e)=>{var r=t.x,n=t.y,i=e.x-r,a=e.y-n,o=t.width/2,l=t.height/2,u,h;return Math.abs(a)*o>Math.abs(i)*l?(a<0&&(l=-l),u=a===0?0:l*i/a,h=l):(i<0&&(o=-o),u=o,h=i===0?0:o*a/i),{x:r+u,y:n+h}},"intersectRect"),md=w7e});var pn,BA=_(()=>{"use strict";JY();tX();OA();sX();PA();pn={node:ZY,circle:eX,ellipse:e5,polygon:aX,rect:md}});function dl(t,e,r,n){return t.insert("polygon",":first-child").attr("points",n.map(function(i){return i.x+","+i.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+r/2+")")}var di,mn,t5=_(()=>{"use strict";rv();ic();gt();Xt();Qt();pr();di=s(async(t,e,r,n)=>{let i=le(),a,o=e.useHtmlLabels||hr(i.flowchart.htmlLabels);r?a=r:a="node default";let l=t.insert("g").attr("class",a).attr("id",e.domId||e.id),u=l.insert("g").attr("class","label").attr("style",e.labelStyle),h;e.labelText===void 0?h="":h=typeof e.labelText=="string"?e.labelText:e.labelText[0];let f=u.node(),d;e.labelType==="markdown"?d=vs(u,$r(Ys(h),i),{useHtmlLabels:o,width:e.width||i.flowchart.wrappingWidth,classes:"markdown-node-label"},i):d=f.appendChild(Hi($r(Ys(h),i),e.labelStyle,!1,n));let p=d.getBBox(),m=e.padding/2;if(hr(i.flowchart.htmlLabels)){let g=d.children[0],y=Me(d),v=g.getElementsByTagName("img");if(v){let x=h.replace(/]*>/g,"").trim()==="";await Promise.all([...v].map(b=>new Promise(k=>{function A(){if(b.style.display="flex",b.style.flexDirection="column",x){let w=i.fontSize?i.fontSize:window.getComputedStyle(document.body).fontSize,C=parseInt(w,10)*5+"px";b.style.minWidth=C,b.style.maxWidth=C}else b.style.width="100%";k(b)}s(A,"setupImage"),setTimeout(()=>{b.complete&&A()}),b.addEventListener("error",A),b.addEventListener("load",A)})))}p=g.getBoundingClientRect(),y.attr("width",p.width),y.attr("height",p.height)}return o?u.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"):u.attr("transform","translate(0, "+-p.height/2+")"),e.centerLabel&&u.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),u.insert("rect",":first-child"),{shapeSvg:l,bbox:p,halfPadding:m,label:u}},"labelHelper"),mn=s((t,e)=>{let r=e.node().getBBox();t.width=r.width,t.height=r.height},"updateNodeBounds");s(dl,"insertPolygonShape")});var T7e,oX,lX=_(()=>{"use strict";t5();it();gt();BA();T7e=s(async(t,e)=>{e.useHtmlLabels||le().flowchart.htmlLabels||(e.centerLabel=!0);let{shapeSvg:n,bbox:i,halfPadding:a}=await di(t,e,"node "+e.classes,!0);V.info("Classes = ",e.classes);let o=n.insert("rect",":first-child");return o.attr("rx",e.rx).attr("ry",e.ry).attr("x",-i.width/2-a).attr("y",-i.height/2-a).attr("width",i.width+e.padding).attr("height",i.height+e.padding),mn(e,o),e.intersect=function(l){return pn.rect(e,l)},n},"note"),oX=T7e});function FA(t,e,r,n){let i=[],a=s(l=>{i.push(l,0)},"addBorder"),o=s(l=>{i.push(0,l)},"skipBorder");e.includes("t")?(V.debug("add top border"),a(r)):o(r),e.includes("r")?(V.debug("add right border"),a(n)):o(n),e.includes("b")?(V.debug("add bottom border"),a(r)):o(r),e.includes("l")?(V.debug("add left border"),a(n)):o(n),t.attr("stroke-dasharray",i.join(" "))}var cX,js,uX,E7e,C7e,S7e,_7e,A7e,L7e,D7e,R7e,M7e,I7e,N7e,O7e,P7e,B7e,F7e,z7e,$7e,G7e,V7e,hX,U7e,q7e,fX,Qp,Zp,dX,pX,nv,r5=_(()=>{"use strict";Xt();gt();Qt();it();SY();rv();BA();lX();t5();cX=s(t=>t?" "+t:"","formatClass"),js=s((t,e)=>`${e||"node default"}${cX(t.classes)} ${cX(t.class)}`,"getClassesFromNode"),uX=s(async(t,e)=>{let{shapeSvg:r,bbox:n}=await di(t,e,js(e,void 0),!0),i=n.width+e.padding,a=n.height+e.padding,o=i+a,l=[{x:o/2,y:0},{x:o,y:-o/2},{x:o/2,y:-o},{x:0,y:-o/2}];V.info("Question main (Circle)");let u=dl(r,o,o,l);return u.attr("style",e.style),mn(e,u),e.intersect=function(h){return V.warn("Intersect called"),pn.polygon(e,l,h)},r},"question"),E7e=s((t,e)=>{let r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),n=28,i=[{x:0,y:n/2},{x:n/2,y:0},{x:0,y:-n/2},{x:-n/2,y:0}];return r.insert("polygon",":first-child").attr("points",i.map(function(o){return o.x+","+o.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),e.width=28,e.height=28,e.intersect=function(o){return pn.circle(e,14,o)},r},"choice"),C7e=s(async(t,e)=>{let{shapeSvg:r,bbox:n}=await di(t,e,js(e,void 0),!0),i=4,a=n.height+e.padding,o=a/i,l=n.width+2*o+e.padding,u=[{x:o,y:0},{x:l-o,y:0},{x:l,y:-a/2},{x:l-o,y:-a},{x:o,y:-a},{x:0,y:-a/2}],h=dl(r,l,a,u);return h.attr("style",e.style),mn(e,h),e.intersect=function(f){return pn.polygon(e,u,f)},r},"hexagon"),S7e=s(async(t,e)=>{let{shapeSvg:r,bbox:n}=await di(t,e,void 0,!0),i=2,a=n.height+2*e.padding,o=a/i,l=n.width+2*o+e.padding,u=CY(e.directions,n,e),h=dl(r,l,a,u);return h.attr("style",e.style),mn(e,h),e.intersect=function(f){return pn.polygon(e,u,f)},r},"block_arrow"),_7e=s(async(t,e)=>{let{shapeSvg:r,bbox:n}=await di(t,e,js(e,void 0),!0),i=n.width+e.padding,a=n.height+e.padding,o=[{x:-a/2,y:0},{x:i,y:0},{x:i,y:-a},{x:-a/2,y:-a},{x:0,y:-a/2}];return dl(r,i,a,o).attr("style",e.style),e.width=i+a,e.height=a,e.intersect=function(u){return pn.polygon(e,o,u)},r},"rect_left_inv_arrow"),A7e=s(async(t,e)=>{let{shapeSvg:r,bbox:n}=await di(t,e,js(e),!0),i=n.width+e.padding,a=n.height+e.padding,o=[{x:-2*a/6,y:0},{x:i-a/6,y:0},{x:i+2*a/6,y:-a},{x:a/6,y:-a}],l=dl(r,i,a,o);return l.attr("style",e.style),mn(e,l),e.intersect=function(u){return pn.polygon(e,o,u)},r},"lean_right"),L7e=s(async(t,e)=>{let{shapeSvg:r,bbox:n}=await di(t,e,js(e,void 0),!0),i=n.width+e.padding,a=n.height+e.padding,o=[{x:2*a/6,y:0},{x:i+a/6,y:0},{x:i-2*a/6,y:-a},{x:-a/6,y:-a}],l=dl(r,i,a,o);return l.attr("style",e.style),mn(e,l),e.intersect=function(u){return pn.polygon(e,o,u)},r},"lean_left"),D7e=s(async(t,e)=>{let{shapeSvg:r,bbox:n}=await di(t,e,js(e,void 0),!0),i=n.width+e.padding,a=n.height+e.padding,o=[{x:-2*a/6,y:0},{x:i+2*a/6,y:0},{x:i-a/6,y:-a},{x:a/6,y:-a}],l=dl(r,i,a,o);return l.attr("style",e.style),mn(e,l),e.intersect=function(u){return pn.polygon(e,o,u)},r},"trapezoid"),R7e=s(async(t,e)=>{let{shapeSvg:r,bbox:n}=await di(t,e,js(e,void 0),!0),i=n.width+e.padding,a=n.height+e.padding,o=[{x:a/6,y:0},{x:i-a/6,y:0},{x:i+2*a/6,y:-a},{x:-2*a/6,y:-a}],l=dl(r,i,a,o);return l.attr("style",e.style),mn(e,l),e.intersect=function(u){return pn.polygon(e,o,u)},r},"inv_trapezoid"),M7e=s(async(t,e)=>{let{shapeSvg:r,bbox:n}=await di(t,e,js(e,void 0),!0),i=n.width+e.padding,a=n.height+e.padding,o=[{x:0,y:0},{x:i+a/2,y:0},{x:i,y:-a/2},{x:i+a/2,y:-a},{x:0,y:-a}],l=dl(r,i,a,o);return l.attr("style",e.style),mn(e,l),e.intersect=function(u){return pn.polygon(e,o,u)},r},"rect_right_inv_arrow"),I7e=s(async(t,e)=>{let{shapeSvg:r,bbox:n}=await di(t,e,js(e,void 0),!0),i=n.width+e.padding,a=i/2,o=a/(2.5+i/50),l=n.height+o+e.padding,u="M 0,"+o+" a "+a+","+o+" 0,0,0 "+i+" 0 a "+a+","+o+" 0,0,0 "+-i+" 0 l 0,"+l+" a "+a+","+o+" 0,0,0 "+i+" 0 l 0,"+-l,h=r.attr("label-offset-y",o).insert("path",":first-child").attr("style",e.style).attr("d",u).attr("transform","translate("+-i/2+","+-(l/2+o)+")");return mn(e,h),e.intersect=function(f){let d=pn.rect(e,f),p=d.x-e.x;if(a!=0&&(Math.abs(p)e.height/2-o)){let m=o*o*(1-p*p/(a*a));m!=0&&(m=Math.sqrt(m)),m=o-m,f.y-e.y>0&&(m=-m),d.y+=m}return d},r},"cylinder"),N7e=s(async(t,e)=>{let{shapeSvg:r,bbox:n,halfPadding:i}=await di(t,e,"node "+e.classes+" "+e.class,!0),a=r.insert("rect",":first-child"),o=e.positioned?e.width:n.width+e.padding,l=e.positioned?e.height:n.height+e.padding,u=e.positioned?-o/2:-n.width/2-i,h=e.positioned?-l/2:-n.height/2-i;if(a.attr("class","basic label-container").attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",u).attr("y",h).attr("width",o).attr("height",l),e.props){let f=new Set(Object.keys(e.props));e.props.borders&&(FA(a,e.props.borders,o,l),f.delete("borders")),f.forEach(d=>{V.warn(`Unknown node property ${d}`)})}return mn(e,a),e.intersect=function(f){return pn.rect(e,f)},r},"rect"),O7e=s(async(t,e)=>{let{shapeSvg:r,bbox:n,halfPadding:i}=await di(t,e,"node "+e.classes,!0),a=r.insert("rect",":first-child"),o=e.positioned?e.width:n.width+e.padding,l=e.positioned?e.height:n.height+e.padding,u=e.positioned?-o/2:-n.width/2-i,h=e.positioned?-l/2:-n.height/2-i;if(a.attr("class","basic cluster composite label-container").attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",u).attr("y",h).attr("width",o).attr("height",l),e.props){let f=new Set(Object.keys(e.props));e.props.borders&&(FA(a,e.props.borders,o,l),f.delete("borders")),f.forEach(d=>{V.warn(`Unknown node property ${d}`)})}return mn(e,a),e.intersect=function(f){return pn.rect(e,f)},r},"composite"),P7e=s(async(t,e)=>{let{shapeSvg:r}=await di(t,e,"label",!0);V.trace("Classes = ",e.class);let n=r.insert("rect",":first-child"),i=0,a=0;if(n.attr("width",i).attr("height",a),r.attr("class","label edgeLabel"),e.props){let o=new Set(Object.keys(e.props));e.props.borders&&(FA(n,e.props.borders,i,a),o.delete("borders")),o.forEach(l=>{V.warn(`Unknown node property ${l}`)})}return mn(e,n),e.intersect=function(o){return pn.rect(e,o)},r},"labelRect");s(FA,"applyNodePropertyBorders");B7e=s((t,e)=>{let r;e.classes?r="node "+e.classes:r="node default";let n=t.insert("g").attr("class",r).attr("id",e.domId||e.id),i=n.insert("rect",":first-child"),a=n.insert("line"),o=n.insert("g").attr("class","label"),l=e.labelText.flat?e.labelText.flat():e.labelText,u="";typeof l=="object"?u=l[0]:u=l,V.info("Label text abc79",u,l,typeof l=="object");let h=o.node().appendChild(Hi(u,e.labelStyle,!0,!0)),f={width:0,height:0};if(hr(le().flowchart.htmlLabels)){let y=h.children[0],v=Me(h);f=y.getBoundingClientRect(),v.attr("width",f.width),v.attr("height",f.height)}V.info("Text 2",l);let d=l.slice(1,l.length),p=h.getBBox(),m=o.node().appendChild(Hi(d.join?d.join("
"):d,e.labelStyle,!0,!0));if(hr(le().flowchart.htmlLabels)){let y=m.children[0],v=Me(m);f=y.getBoundingClientRect(),v.attr("width",f.width),v.attr("height",f.height)}let g=e.padding/2;return Me(m).attr("transform","translate( "+(f.width>p.width?0:(p.width-f.width)/2)+", "+(p.height+g+5)+")"),Me(h).attr("transform","translate( "+(f.width{let{shapeSvg:r,bbox:n}=await di(t,e,js(e,void 0),!0),i=n.height+e.padding,a=n.width+i/4+e.padding,o=r.insert("rect",":first-child").attr("style",e.style).attr("rx",i/2).attr("ry",i/2).attr("x",-a/2).attr("y",-i/2).attr("width",a).attr("height",i);return mn(e,o),e.intersect=function(l){return pn.rect(e,l)},r},"stadium"),z7e=s(async(t,e)=>{let{shapeSvg:r,bbox:n,halfPadding:i}=await di(t,e,js(e,void 0),!0),a=r.insert("circle",":first-child");return a.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",n.width/2+i).attr("width",n.width+e.padding).attr("height",n.height+e.padding),V.info("Circle main"),mn(e,a),e.intersect=function(o){return V.info("Circle intersect",e,n.width/2+i,o),pn.circle(e,n.width/2+i,o)},r},"circle"),$7e=s(async(t,e)=>{let{shapeSvg:r,bbox:n,halfPadding:i}=await di(t,e,js(e,void 0),!0),a=5,o=r.insert("g",":first-child"),l=o.insert("circle"),u=o.insert("circle");return o.attr("class",e.class),l.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",n.width/2+i+a).attr("width",n.width+e.padding+a*2).attr("height",n.height+e.padding+a*2),u.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",n.width/2+i).attr("width",n.width+e.padding).attr("height",n.height+e.padding),V.info("DoubleCircle main"),mn(e,l),e.intersect=function(h){return V.info("DoubleCircle intersect",e,n.width/2+i+a,h),pn.circle(e,n.width/2+i+a,h)},r},"doublecircle"),G7e=s(async(t,e)=>{let{shapeSvg:r,bbox:n}=await di(t,e,js(e,void 0),!0),i=n.width+e.padding,a=n.height+e.padding,o=[{x:0,y:0},{x:i,y:0},{x:i,y:-a},{x:0,y:-a},{x:0,y:0},{x:-8,y:0},{x:i+8,y:0},{x:i+8,y:-a},{x:-8,y:-a},{x:-8,y:0}],l=dl(r,i,a,o);return l.attr("style",e.style),mn(e,l),e.intersect=function(u){return pn.polygon(e,o,u)},r},"subroutine"),V7e=s((t,e)=>{let r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),n=r.insert("circle",":first-child");return n.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),mn(e,n),e.intersect=function(i){return pn.circle(e,7,i)},r},"start"),hX=s((t,e,r)=>{let n=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),i=70,a=10;r==="LR"&&(i=10,a=70);let o=n.append("rect").attr("x",-1*i/2).attr("y",-1*a/2).attr("width",i).attr("height",a).attr("class","fork-join");return mn(e,o),e.height=e.height+e.padding/2,e.width=e.width+e.padding/2,e.intersect=function(l){return pn.rect(e,l)},n},"forkJoin"),U7e=s((t,e)=>{let r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),n=r.insert("circle",":first-child"),i=r.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),n.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),mn(e,i),e.intersect=function(a){return pn.circle(e,7,a)},r},"end"),q7e=s((t,e)=>{let r=e.padding/2,n=4,i=8,a;e.classes?a="node "+e.classes:a="node default";let o=t.insert("g").attr("class",a).attr("id",e.domId||e.id),l=o.insert("rect",":first-child"),u=o.insert("line"),h=o.insert("line"),f=0,d=n,p=o.insert("g").attr("class","label"),m=0,g=e.classData.annotations?.[0],y=e.classData.annotations[0]?"\xAB"+e.classData.annotations[0]+"\xBB":"",v=p.node().appendChild(Hi(y,e.labelStyle,!0,!0)),x=v.getBBox();if(hr(le().flowchart.htmlLabels)){let E=v.children[0],S=Me(v);x=E.getBoundingClientRect(),S.attr("width",x.width),S.attr("height",x.height)}e.classData.annotations[0]&&(d+=x.height+n,f+=x.width);let b=e.classData.label;e.classData.type!==void 0&&e.classData.type!==""&&(le().flowchart.htmlLabels?b+="<"+e.classData.type+">":b+="<"+e.classData.type+">");let k=p.node().appendChild(Hi(b,e.labelStyle,!0,!0));Me(k).attr("class","classTitle");let A=k.getBBox();if(hr(le().flowchart.htmlLabels)){let E=k.children[0],S=Me(k);A=E.getBoundingClientRect(),S.attr("width",A.width),S.attr("height",A.height)}d+=A.height+n,A.width>f&&(f=A.width);let w=[];e.classData.members.forEach(E=>{let S=E.getDisplayDetails(),R=S.displayText;le().flowchart.htmlLabels&&(R=R.replace(/
/g,">"));let D=p.node().appendChild(Hi(R,S.cssStyle?S.cssStyle:e.labelStyle,!0,!0)),L=D.getBBox();if(hr(le().flowchart.htmlLabels)){let P=D.children[0],M=Me(D);L=P.getBoundingClientRect(),M.attr("width",L.width),M.attr("height",L.height)}L.width>f&&(f=L.width),d+=L.height+n,w.push(D)}),d+=i;let T=[];if(e.classData.methods.forEach(E=>{let S=E.getDisplayDetails(),R=S.displayText;le().flowchart.htmlLabels&&(R=R.replace(//g,">"));let D=p.node().appendChild(Hi(R,S.cssStyle?S.cssStyle:e.labelStyle,!0,!0)),L=D.getBBox();if(hr(le().flowchart.htmlLabels)){let P=D.children[0],M=Me(D);L=P.getBoundingClientRect(),M.attr("width",L.width),M.attr("height",L.height)}L.width>f&&(f=L.width),d+=L.height+n,T.push(D)}),d+=i,g){let E=(f-x.width)/2;Me(v).attr("transform","translate( "+(-1*f/2+E)+", "+-1*d/2+")"),m=x.height+n}let C=(f-A.width)/2;return Me(k).attr("transform","translate( "+(-1*f/2+C)+", "+(-1*d/2+m)+")"),m+=A.height+n,u.attr("class","divider").attr("x1",-f/2-r).attr("x2",f/2+r).attr("y1",-d/2-r+i+m).attr("y2",-d/2-r+i+m),m+=i,w.forEach(E=>{Me(E).attr("transform","translate( "+-f/2+", "+(-1*d/2+m+i/2)+")");let S=E?.getBBox();m+=(S?.height??0)+n}),m+=i,h.attr("class","divider").attr("x1",-f/2-r).attr("x2",f/2+r).attr("y1",-d/2-r+i+m).attr("y2",-d/2-r+i+m),m+=i,T.forEach(E=>{Me(E).attr("transform","translate( "+-f/2+", "+(-1*d/2+m)+")");let S=E?.getBBox();m+=(S?.height??0)+n}),l.attr("style",e.style).attr("class","outer title-state").attr("x",-f/2-r).attr("y",-(d/2)-r).attr("width",f+e.padding).attr("height",d+e.padding),mn(e,l),e.intersect=function(E){return pn.rect(e,E)},o},"class_box"),fX={rhombus:uX,composite:O7e,question:uX,rect:N7e,labelRect:P7e,rectWithTitle:B7e,choice:E7e,circle:z7e,doublecircle:$7e,stadium:F7e,hexagon:C7e,block_arrow:S7e,rect_left_inv_arrow:_7e,lean_right:A7e,lean_left:L7e,trapezoid:D7e,inv_trapezoid:R7e,rect_right_inv_arrow:M7e,cylinder:I7e,start:V7e,end:U7e,note:oX,subroutine:G7e,fork:hX,join:hX,class_box:q7e},Qp={},Zp=s(async(t,e,r)=>{let n,i;if(e.link){let a;le().securityLevel==="sandbox"?a="_top":e.linkTarget&&(a=e.linkTarget||"_blank"),n=t.insert("svg:a").attr("xlink:href",e.link).attr("target",a),i=await fX[e.shape](n,e,r)}else i=await fX[e.shape](t,e,r),n=i;return e.tooltip&&i.attr("title",e.tooltip),e.class&&i.attr("class","node default "+e.class),Qp[e.id]=n,e.haveCallback&&Qp[e.id].attr("class",Qp[e.id].attr("class")+" clickable"),n},"insertNode"),dX=s((t,e)=>{Qp[e.id]=t},"setNodeElem"),pX=s(()=>{Qp={}},"clear"),nv=s(t=>{let e=Qp[t.id];V.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");let r=8,n=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+n-t.width/2)+", "+(t.y-t.height/2-r)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),n},"positionNode")});var n5,zA=_(()=>{"use strict";Xt();r5();n5=s((t,e)=>{let r;return e==="sandbox"&&(r=Me("#i"+t)),(e==="sandbox"?Me(r.nodes()[0].contentDocument.body):Me("body")).select(`[id="${t}"]`)},"getDiagramElement")});var Ks,gd=_(()=>{"use strict";Ks=s(({flowchart:t})=>{let e=t?.subGraphTitleMargin?.top??0,r=t?.subGraphTitleMargin?.bottom??0,n=e+r;return{subGraphTitleTopMargin:e,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:n}},"getSubGraphTitleMargins")});function $A(t,e,r){if(t&&t.length){let[n,i]=e,a=Math.PI/180*r,o=Math.cos(a),l=Math.sin(a);for(let u of t){let[h,f]=u;u[0]=(h-n)*o-(f-i)*l+n,u[1]=(h-n)*l+(f-i)*o+i}}}function W7e(t,e){return t[0]===e[0]&&t[1]===e[1]}function H7e(t,e,r,n=1){let i=r,a=Math.max(e,.1),o=t[0]&&t[0][0]&&typeof t[0][0]=="number"?[t]:t,l=[0,0];if(i)for(let h of o)$A(h,l,i);let u=function(h,f,d){let p=[];for(let b of h){let k=[...b];W7e(k[0],k[k.length-1])||k.push([k[0][0],k[0][1]]),k.length>2&&p.push(k)}let m=[];f=Math.max(f,.1);let g=[];for(let b of p)for(let k=0;kb.ymink.ymin?1:b.xk.x?1:b.ymax===k.ymax?0:(b.ymax-k.ymax)/Math.abs(b.ymax-k.ymax)),!g.length)return m;let y=[],v=g[0].ymin,x=0;for(;y.length||g.length;){if(g.length){let b=-1;for(let k=0;kv);k++)b=k;g.splice(0,b+1).forEach(k=>{y.push({s:v,edge:k})})}if(y=y.filter(b=>!(b.edge.ymax<=v)),y.sort((b,k)=>b.edge.x===k.edge.x?0:(b.edge.x-k.edge.x)/Math.abs(b.edge.x-k.edge.x)),(d!==1||x%f==0)&&y.length>1)for(let b=0;b=y.length)break;let A=y[b].edge,w=y[k].edge;m.push([[Math.round(A.x),v],[Math.round(w.x),v]])}v+=d,y.forEach(b=>{b.edge.x=b.edge.x+d*b.edge.islope}),x++}return m}(o,a,n);if(i){for(let h of o)$A(h,l,-i);(function(h,f,d){let p=[];h.forEach(m=>p.push(...m)),$A(p,f,d)})(u,l,-i)}return u}function ov(t,e){var r;let n=e.hachureAngle+90,i=e.hachureGap;i<0&&(i=4*e.strokeWidth),i=Math.round(Math.max(i,.1));let a=1;return e.roughness>=1&&(((r=e.randomizer)===null||r===void 0?void 0:r.next())||Math.random())>.7&&(a=i),H7e(t,i,n,a||1)}function f5(t){let e=t[0],r=t[1];return Math.sqrt(Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2))}function VA(t,e){return t.type===e}function r9(t){let e=[],r=function(o){let l=new Array;for(;o!=="";)if(o.match(/^([ \t\r\n,]+)/))o=o.substr(RegExp.$1.length);else if(o.match(/^([aAcChHlLmMqQsStTvVzZ])/))l[l.length]={type:Y7e,text:RegExp.$1},o=o.substr(RegExp.$1.length);else{if(!o.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];l[l.length]={type:GA,text:`${parseFloat(RegExp.$1)}`},o=o.substr(RegExp.$1.length)}return l[l.length]={type:mX,text:""},l}(t),n="BOD",i=0,a=r[i];for(;!VA(a,mX);){let o=0,l=[];if(n==="BOD"){if(a.text!=="M"&&a.text!=="m")return r9("M0,0"+t);i++,o=i5[a.text],n=a.text}else VA(a,GA)?o=i5[n]:(i++,o=i5[a.text],n=a.text);if(!(i+of%2?h+r:h+e);a.push({key:"C",data:u}),e=u[4],r=u[5];break}case"Q":a.push({key:"Q",data:[...l]}),e=l[2],r=l[3];break;case"q":{let u=l.map((h,f)=>f%2?h+r:h+e);a.push({key:"Q",data:u}),e=u[2],r=u[3];break}case"A":a.push({key:"A",data:[...l]}),e=l[5],r=l[6];break;case"a":e+=l[5],r+=l[6],a.push({key:"A",data:[l[0],l[1],l[2],l[3],l[4],e,r]});break;case"H":a.push({key:"H",data:[...l]}),e=l[0];break;case"h":e+=l[0],a.push({key:"H",data:[e]});break;case"V":a.push({key:"V",data:[...l]}),r=l[0];break;case"v":r+=l[0],a.push({key:"V",data:[r]});break;case"S":a.push({key:"S",data:[...l]}),e=l[2],r=l[3];break;case"s":{let u=l.map((h,f)=>f%2?h+r:h+e);a.push({key:"S",data:u}),e=u[2],r=u[3];break}case"T":a.push({key:"T",data:[...l]}),e=l[0],r=l[1];break;case"t":e+=l[0],r+=l[1],a.push({key:"T",data:[e,r]});break;case"Z":case"z":a.push({key:"Z",data:[]}),e=n,r=i}return a}function EX(t){let e=[],r="",n=0,i=0,a=0,o=0,l=0,u=0;for(let{key:h,data:f}of t){switch(h){case"M":e.push({key:"M",data:[...f]}),[n,i]=f,[a,o]=f;break;case"C":e.push({key:"C",data:[...f]}),n=f[4],i=f[5],l=f[2],u=f[3];break;case"L":e.push({key:"L",data:[...f]}),[n,i]=f;break;case"H":n=f[0],e.push({key:"L",data:[n,i]});break;case"V":i=f[0],e.push({key:"L",data:[n,i]});break;case"S":{let d=0,p=0;r==="C"||r==="S"?(d=n+(n-l),p=i+(i-u)):(d=n,p=i),e.push({key:"C",data:[d,p,...f]}),l=f[0],u=f[1],n=f[2],i=f[3];break}case"T":{let[d,p]=f,m=0,g=0;r==="Q"||r==="T"?(m=n+(n-l),g=i+(i-u)):(m=n,g=i);let y=n+2*(m-n)/3,v=i+2*(g-i)/3,x=d+2*(m-d)/3,b=p+2*(g-p)/3;e.push({key:"C",data:[y,v,x,b,d,p]}),l=m,u=g,n=d,i=p;break}case"Q":{let[d,p,m,g]=f,y=n+2*(d-n)/3,v=i+2*(p-i)/3,x=m+2*(d-m)/3,b=g+2*(p-g)/3;e.push({key:"C",data:[y,v,x,b,m,g]}),l=d,u=p,n=m,i=g;break}case"A":{let d=Math.abs(f[0]),p=Math.abs(f[1]),m=f[2],g=f[3],y=f[4],v=f[5],x=f[6];d===0||p===0?(e.push({key:"C",data:[n,i,v,x,v,x]}),n=v,i=x):(n!==v||i!==x)&&(CX(n,i,v,x,d,p,m,g,y).forEach(function(b){e.push({key:"C",data:b})}),n=v,i=x);break}case"Z":e.push({key:"Z",data:[]}),n=a,i=o}r=h}return e}function iv(t,e,r){return[t*Math.cos(r)-e*Math.sin(r),t*Math.sin(r)+e*Math.cos(r)]}function CX(t,e,r,n,i,a,o,l,u,h){let f=(d=o,Math.PI*d/180);var d;let p=[],m=0,g=0,y=0,v=0;if(h)[m,g,y,v]=h;else{[t,e]=iv(t,e,-f),[r,n]=iv(r,n,-f);let P=(t-r)/2,M=(e-n)/2,F=P*P/(i*i)+M*M/(a*a);F>1&&(F=Math.sqrt(F),i*=F,a*=F);let I=i*i,O=a*a,z=I*O-I*M*M-O*P*P,N=I*M*M+O*P*P,U=(l===u?-1:1)*Math.sqrt(Math.abs(z/N));y=U*i*M/a+(t+r)/2,v=U*-a*P/i+(e+n)/2,m=Math.asin(parseFloat(((e-v)/a).toFixed(9))),g=Math.asin(parseFloat(((n-v)/a).toFixed(9))),tg&&(m-=2*Math.PI),!u&&g>m&&(g-=2*Math.PI)}let x=g-m;if(Math.abs(x)>120*Math.PI/180){let P=g,M=r,F=n;g=u&&g>m?m+120*Math.PI/180*1:m+120*Math.PI/180*-1,p=CX(r=y+i*Math.cos(g),n=v+a*Math.sin(g),M,F,i,a,o,0,u,[g,P,y,v])}x=g-m;let b=Math.cos(m),k=Math.sin(m),A=Math.cos(g),w=Math.sin(g),T=Math.tan(x/4),C=4/3*i*T,E=4/3*a*T,S=[t,e],R=[t+C*k,e-E*b],D=[r+C*w,n-E*A],L=[r,n];if(R[0]=2*S[0]-R[0],R[1]=2*S[1]-R[1],h)return[R,D,L].concat(p);{p=[R,D,L].concat(p);let P=[];for(let M=0;M2){let i=[];for(let a=0;a2*Math.PI&&(m=0,g=2*Math.PI);let y=2*Math.PI/u.curveStepCount,v=Math.min(y/2,(g-m)/2),x=kX(v,h,f,d,p,m,g,1,u);if(!u.disableMultiStroke){let b=kX(v,h,f,d,p,m,g,1.5,u);x.push(...b)}return o&&(l?x.push(...Ph(h,f,h+d*Math.cos(m),f+p*Math.sin(m),u),...Ph(h,f,h+d*Math.cos(g),f+p*Math.sin(g),u)):x.push({op:"lineTo",data:[h,f]},{op:"lineTo",data:[h+d*Math.cos(m),f+p*Math.sin(m)]})),{type:"path",ops:x}}function vX(t,e){let r=EX(TX(r9(t))),n=[],i=[0,0],a=[0,0];for(let{key:o,data:l}of r)switch(o){case"M":a=[l[0],l[1]],i=[l[0],l[1]];break;case"L":n.push(...Ph(a[0],a[1],l[0],l[1],e)),a=[l[0],l[1]];break;case"C":{let[u,h,f,d,p,m]=l;n.push(...K7e(u,h,f,d,p,m,a,e)),a=[p,m];break}case"Z":n.push(...Ph(a[0],a[1],i[0],i[1],e)),a=[i[0],i[1]]}return{type:"path",ops:n}}function UA(t,e){let r=[];for(let n of t)if(n.length){let i=e.maxRandomnessOffset||0,a=n.length;if(a>2){r.push({op:"move",data:[n[0][0]+Ot(i,e),n[0][1]+Ot(i,e)]});for(let o=1;o500?.4:-.0016668*u+1.233334;let f=i.maxRandomnessOffset||0;f*f*100>l&&(f=u/10);let d=f/2,p=.2+.2*AX(i),m=i.bowing*i.maxRandomnessOffset*(n-e)/200,g=i.bowing*i.maxRandomnessOffset*(t-r)/200;m=Ot(m,i,h),g=Ot(g,i,h);let y=[],v=s(()=>Ot(d,i,h),"M"),x=s(()=>Ot(f,i,h),"k"),b=i.preserveVertices;return a&&(o?y.push({op:"move",data:[t+(b?0:v()),e+(b?0:v())]}):y.push({op:"move",data:[t+(b?0:Ot(f,i,h)),e+(b?0:Ot(f,i,h))]})),o?y.push({op:"bcurveTo",data:[m+t+(r-t)*p+v(),g+e+(n-e)*p+v(),m+t+2*(r-t)*p+v(),g+e+2*(n-e)*p+v(),r+(b?0:v()),n+(b?0:v())]}):y.push({op:"bcurveTo",data:[m+t+(r-t)*p+x(),g+e+(n-e)*p+x(),m+t+2*(r-t)*p+x(),g+e+2*(n-e)*p+x(),r+(b?0:x()),n+(b?0:x())]}),y}function a5(t,e,r){if(!t.length)return[];let n=[];n.push([t[0][0]+Ot(e,r),t[0][1]+Ot(e,r)]),n.push([t[0][0]+Ot(e,r),t[0][1]+Ot(e,r)]);for(let i=1;i3){let a=[],o=1-r.curveTightness;i.push({op:"move",data:[t[1][0],t[1][1]]});for(let l=1;l+21&&i.push(l)):i.push(l),i.push(t[e+3])}else{let u=t[e+0],h=t[e+1],f=t[e+2],d=t[e+3],p=yd(u,h,.5),m=yd(h,f,.5),g=yd(f,d,.5),y=yd(p,m,.5),v=yd(m,g,.5),x=yd(y,v,.5);JA([u,p,y,x],0,r,i),JA([x,v,g,d],0,r,i)}var a,o;return i}function Z7e(t,e){return h5(t,0,t.length,e)}function h5(t,e,r,n,i){let a=i||[],o=t[e],l=t[r-1],u=0,h=1;for(let f=e+1;fu&&(u=d,h=f)}return Math.sqrt(u)>n?(h5(t,e,h+1,n,a),h5(t,h,r,n,a)):(a.length||a.push(o),a.push(l)),a}function qA(t,e=.15,r){let n=[],i=(t.length-1)/3;for(let a=0;a0?h5(n,0,n.length,r):n}var sv,WA,HA,YA,XA,jA,xs,KA,Y7e,GA,mX,i5,X7e,Qs,em,e9,s5,t9,Ht,Yn=_(()=>{"use strict";s($A,"t");s(W7e,"e");s(H7e,"s");s(ov,"n");sv=class{static{s(this,"o")}constructor(e){this.helper=e}fillPolygons(e,r){return this._fillPolygons(e,r)}_fillPolygons(e,r){let n=ov(e,r);return{type:"fillSketch",ops:this.renderLines(n,r)}}renderLines(e,r){let n=[];for(let i of e)n.push(...this.helper.doubleLineOps(i[0][0],i[0][1],i[1][0],i[1][1],r));return n}};s(f5,"a");WA=class extends sv{static{s(this,"h")}fillPolygons(e,r){let n=r.hachureGap;n<0&&(n=4*r.strokeWidth),n=Math.max(n,.1);let i=ov(e,Object.assign({},r,{hachureGap:n})),a=Math.PI/180*r.hachureAngle,o=[],l=.5*n*Math.cos(a),u=.5*n*Math.sin(a);for(let[h,f]of i)f5([h,f])&&o.push([[h[0]-l,h[1]+u],[...f]],[[h[0]+l,h[1]-u],[...f]]);return{type:"fillSketch",ops:this.renderLines(o,r)}}},HA=class extends sv{static{s(this,"r")}fillPolygons(e,r){let n=this._fillPolygons(e,r),i=Object.assign({},r,{hachureAngle:r.hachureAngle+90}),a=this._fillPolygons(e,i);return n.ops=n.ops.concat(a.ops),n}},YA=class{static{s(this,"i")}constructor(e){this.helper=e}fillPolygons(e,r){let n=ov(e,r=Object.assign({},r,{hachureAngle:0}));return this.dotsOnLines(n,r)}dotsOnLines(e,r){let n=[],i=r.hachureGap;i<0&&(i=4*r.strokeWidth),i=Math.max(i,.1);let a=r.fillWeight;a<0&&(a=r.strokeWidth/2);let o=i/4;for(let l of e){let u=f5(l),h=u/i,f=Math.ceil(h)-1,d=u-f*i,p=(l[0][0]+l[1][0])/2-i/4,m=Math.min(l[0][1],l[1][1]);for(let g=0;g{let l=f5(o),u=Math.floor(l/(n+i)),h=(l+i-u*(n+i))/2,f=o[0],d=o[1];f[0]>d[0]&&(f=o[1],d=o[0]);let p=Math.atan((d[1]-f[1])/(d[0]-f[0]));for(let m=0;m{let o=f5(a),l=Math.round(o/(2*r)),u=a[0],h=a[1];u[0]>h[0]&&(u=a[1],h=a[0]);let f=Math.atan((h[1]-u[1])/(h[0]-u[0]));for(let d=0;d2*Math.PI&&(C=0,E=2*Math.PI);let S=(E-C)/b.curveStepCount,R=[];for(let D=C;D<=E;D+=S)R.push([k+w*Math.cos(D),A+T*Math.sin(D)]);return R.push([k+w*Math.cos(E),A+T*Math.sin(E)]),R.push([k,A]),Jp([R],b)}(e,r,n,i,a,o,h));return h.stroke!==Qs&&f.push(d),this._d("arc",f,h)}curve(e,r){let n=this._o(r),i=[],a=gX(e,n);if(n.fill&&n.fill!==Qs)if(n.fillStyle==="solid"){let o=gX(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(o.ops)})}else{let o=[],l=e;if(l.length){let u=typeof l[0][0]=="number"?[l]:l;for(let h of u)h.length<3?o.push(...h):h.length===3?o.push(...qA(wX([h[0],h[0],h[1],h[2]]),10,(1+n.roughness)/2)):o.push(...qA(wX(h),10,(1+n.roughness)/2))}o.length&&i.push(Jp([o],n))}return n.stroke!==Qs&&i.push(a),this._d("curve",i,n)}polygon(e,r){let n=this._o(r),i=[],a=o5(e,!0,n);return n.fill&&(n.fillStyle==="solid"?i.push(UA([e],n)):i.push(Jp([e],n))),n.stroke!==Qs&&i.push(a),this._d("polygon",i,n)}path(e,r){let n=this._o(r),i=[];if(!e)return this._d("path",i,n);e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");let a=n.fill&&n.fill!=="transparent"&&n.fill!==Qs,o=n.stroke!==Qs,l=!!(n.simplification&&n.simplification<1),u=function(f,d,p){let m=EX(TX(r9(f))),g=[],y=[],v=[0,0],x=[],b=s(()=>{x.length>=4&&y.push(...qA(x,d)),x=[]},"i"),k=s(()=>{b(),y.length&&(g.push(y),y=[])},"c");for(let{key:w,data:T}of m)switch(w){case"M":k(),v=[T[0],T[1]],y.push(v);break;case"L":b(),y.push([T[0],T[1]]);break;case"C":if(!x.length){let C=y.length?y[y.length-1]:v;x.push([C[0],C[1]])}x.push([T[0],T[1]]),x.push([T[2],T[3]]),x.push([T[4],T[5]]);break;case"Z":b(),y.push([v[0],v[1]])}if(k(),!p)return g;let A=[];for(let w of g){let T=Z7e(w,p);T.length&&A.push(T)}return A}(e,1,l?4-4*(n.simplification||1):(1+n.roughness)/2),h=vX(e,n);if(a)if(n.fillStyle==="solid")if(u.length===1){let f=vX(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(f.ops)})}else i.push(UA(u,n));else i.push(Jp(u,n));return o&&(l?u.forEach(f=>{i.push(o5(f,!1,n))}):i.push(h)),this._d("path",i,n)}opsToPath(e,r){let n="";for(let i of e.ops){let a=typeof r=="number"&&r>=0?i.data.map(o=>+o.toFixed(r)):i.data;switch(i.op){case"move":n+=`M${a[0]} ${a[1]} `;break;case"bcurveTo":n+=`C${a[0]} ${a[1]}, ${a[2]} ${a[3]}, ${a[4]} ${a[5]} `;break;case"lineTo":n+=`L${a[0]} ${a[1]} `}}return n.trim()}toPaths(e){let r=e.sets||[],n=e.options||this.defaultOptions,i=[];for(let a of r){let o=null;switch(a.type){case"path":o={d:this.opsToPath(a),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:Qs};break;case"fillPath":o={d:this.opsToPath(a),stroke:Qs,strokeWidth:0,fill:n.fill||Qs};break;case"fillSketch":o=this.fillSketch(a,n)}o&&i.push(o)}return i}fillSketch(e,r){let n=r.fillWeight;return n<0&&(n=r.strokeWidth/2),{d:this.opsToPath(e),stroke:r.fill||Qs,strokeWidth:n,fill:Qs}}_mergedShape(e){return e.filter((r,n)=>n===0||r.op!=="move")}},e9=class{static{s(this,"st")}constructor(e,r){this.canvas=e,this.ctx=this.canvas.getContext("2d"),this.gen=new em(r)}draw(e){let r=e.sets||[],n=e.options||this.getDefaultOptions(),i=this.ctx,a=e.options.fixedDecimalPlaceDigits;for(let o of r)switch(o.type){case"path":i.save(),i.strokeStyle=n.stroke==="none"?"transparent":n.stroke,i.lineWidth=n.strokeWidth,n.strokeLineDash&&i.setLineDash(n.strokeLineDash),n.strokeLineDashOffset&&(i.lineDashOffset=n.strokeLineDashOffset),this._drawToContext(i,o,a),i.restore();break;case"fillPath":{i.save(),i.fillStyle=n.fill||"";let l=e.shape==="curve"||e.shape==="polygon"||e.shape==="path"?"evenodd":"nonzero";this._drawToContext(i,o,a,l),i.restore();break}case"fillSketch":this.fillSketch(i,o,n)}}fillSketch(e,r,n){let i=n.fillWeight;i<0&&(i=n.strokeWidth/2),e.save(),n.fillLineDash&&e.setLineDash(n.fillLineDash),n.fillLineDashOffset&&(e.lineDashOffset=n.fillLineDashOffset),e.strokeStyle=n.fill||"",e.lineWidth=i,this._drawToContext(e,r,n.fixedDecimalPlaceDigits),e.restore()}_drawToContext(e,r,n,i="nonzero"){e.beginPath();for(let a of r.ops){let o=typeof n=="number"&&n>=0?a.data.map(l=>+l.toFixed(n)):a.data;switch(a.op){case"move":e.moveTo(o[0],o[1]);break;case"bcurveTo":e.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5]);break;case"lineTo":e.lineTo(o[0],o[1])}}r.type==="fillPath"?e.fill(i):e.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(e,r,n,i,a){let o=this.gen.line(e,r,n,i,a);return this.draw(o),o}rectangle(e,r,n,i,a){let o=this.gen.rectangle(e,r,n,i,a);return this.draw(o),o}ellipse(e,r,n,i,a){let o=this.gen.ellipse(e,r,n,i,a);return this.draw(o),o}circle(e,r,n,i){let a=this.gen.circle(e,r,n,i);return this.draw(a),a}linearPath(e,r){let n=this.gen.linearPath(e,r);return this.draw(n),n}polygon(e,r){let n=this.gen.polygon(e,r);return this.draw(n),n}arc(e,r,n,i,a,o,l=!1,u){let h=this.gen.arc(e,r,n,i,a,o,l,u);return this.draw(h),h}curve(e,r){let n=this.gen.curve(e,r);return this.draw(n),n}path(e,r){let n=this.gen.path(e,r);return this.draw(n),n}},s5="http://www.w3.org/2000/svg",t9=class{static{s(this,"ot")}constructor(e,r){this.svg=e,this.gen=new em(r)}draw(e){let r=e.sets||[],n=e.options||this.getDefaultOptions(),i=this.svg.ownerDocument||window.document,a=i.createElementNS(s5,"g"),o=e.options.fixedDecimalPlaceDigits;for(let l of r){let u=null;switch(l.type){case"path":u=i.createElementNS(s5,"path"),u.setAttribute("d",this.opsToPath(l,o)),u.setAttribute("stroke",n.stroke),u.setAttribute("stroke-width",n.strokeWidth+""),u.setAttribute("fill","none"),n.strokeLineDash&&u.setAttribute("stroke-dasharray",n.strokeLineDash.join(" ").trim()),n.strokeLineDashOffset&&u.setAttribute("stroke-dashoffset",`${n.strokeLineDashOffset}`);break;case"fillPath":u=i.createElementNS(s5,"path"),u.setAttribute("d",this.opsToPath(l,o)),u.setAttribute("stroke","none"),u.setAttribute("stroke-width","0"),u.setAttribute("fill",n.fill||""),e.shape!=="curve"&&e.shape!=="polygon"||u.setAttribute("fill-rule","evenodd");break;case"fillSketch":u=this.fillSketch(i,l,n)}u&&a.appendChild(u)}return a}fillSketch(e,r,n){let i=n.fillWeight;i<0&&(i=n.strokeWidth/2);let a=e.createElementNS(s5,"path");return a.setAttribute("d",this.opsToPath(r,n.fixedDecimalPlaceDigits)),a.setAttribute("stroke",n.fill||""),a.setAttribute("stroke-width",i+""),a.setAttribute("fill","none"),n.fillLineDash&&a.setAttribute("stroke-dasharray",n.fillLineDash.join(" ").trim()),n.fillLineDashOffset&&a.setAttribute("stroke-dashoffset",`${n.fillLineDashOffset}`),a}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(e,r){return this.gen.opsToPath(e,r)}line(e,r,n,i,a){let o=this.gen.line(e,r,n,i,a);return this.draw(o)}rectangle(e,r,n,i,a){let o=this.gen.rectangle(e,r,n,i,a);return this.draw(o)}ellipse(e,r,n,i,a){let o=this.gen.ellipse(e,r,n,i,a);return this.draw(o)}circle(e,r,n,i){let a=this.gen.circle(e,r,n,i);return this.draw(a)}linearPath(e,r){let n=this.gen.linearPath(e,r);return this.draw(n)}polygon(e,r){let n=this.gen.polygon(e,r);return this.draw(n)}arc(e,r,n,i,a,o,l=!1,u){let h=this.gen.arc(e,r,n,i,a,o,l,u);return this.draw(h)}curve(e,r){let n=this.gen.curve(e,r);return this.draw(n)}path(e,r){let n=this.gen.path(e,r);return this.draw(n)}},Ht={canvas:s((t,e)=>new e9(t,e),"canvas"),svg:s((t,e)=>new t9(t,e),"svg"),generator:s(t=>new em(t),"generator"),newSeed:s(()=>em.newSeed(),"newSeed")}});var J7e,vd,n9=_(()=>{"use strict";J7e=s((t,e)=>{var r=t.x,n=t.y,i=e.x-r,a=e.y-n,o=t.width/2,l=t.height/2,u,h;return Math.abs(a)*o>Math.abs(i)*l?(a<0&&(l=-l),u=a===0?0:l*i/a,h=l):(i<0&&(o=-o),u=o,h=i===0?0:o*a/i),{x:r+u,y:n+h}},"intersectRect"),vd=J7e});function eEe(t,e){e&&t.attr("style",e)}async function tEe(t){let e=Me(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),r=e.append("xhtml:div"),n=t.label;t.label&&Ei(t.label)&&(n=await hh(t.label.replace($e.lineBreakRegex,`
`),le()));let i=t.isNode?"nodeLabel":"edgeLabel";return r.html('"+n+""),eEe(r,t.labelStyle),r.style("display","inline-block"),r.style("padding-right","1px"),r.style("white-space","nowrap"),r.attr("xmlns","http://www.w3.org/1999/xhtml"),e.node()}var rEe,ac,d5=_(()=>{"use strict";Xt();it();gt();Qt();pr();s(eEe,"applyStyle");s(tEe,"addHtmlLabel");rEe=s(async(t,e,r,n)=>{let i=t||"";if(typeof i=="object"&&(i=i[0]),hr(le().flowchart.htmlLabels)){i=i.replace(/\\n|\n/g,"
"),V.info("vertexText"+i);let a={isNode:n,label:Ys(i).replace(/fa[blrs]?:fa-[\w-]+/g,l=>``),labelStyle:e&&e.replace("fill:","color:")};return await tEe(a)}else{let a=document.createElementNS("http://www.w3.org/2000/svg","text");a.setAttribute("style",e.replace("color:","fill:"));let o=[];typeof i=="string"?o=i.split(/\\n|\n|
/gi):Array.isArray(i)?o=i:o=[];for(let l of o){let u=document.createElementNS("http://www.w3.org/2000/svg","tspan");u.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),u.setAttribute("dy","1em"),u.setAttribute("x","0"),r?u.setAttribute("class","title-row"):u.setAttribute("class","row"),u.textContent=l.trim(),a.appendChild(u)}return a}},"createLabel"),ac=rEe});var xu,lv=_(()=>{"use strict";xu=s((t,e,r,n,i)=>["M",t+i,e,"H",t+r-i,"A",i,i,0,0,1,t+r,e+i,"V",e+n-i,"A",i,i,0,0,1,t+r-i,e+n,"H",t+i,"A",i,i,0,0,1,t,e+n-i,"V",e+i,"A",i,i,0,0,1,t+i,e,"Z"].join(" "),"createRoundedRectPathD")});var bu,LX,nEe,Dr,Rr,pi=_(()=>{"use strict";gt();bu=s(t=>{let{handDrawnSeed:e}=le();return{fill:t,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:t,seed:e}},"solidStateFill"),LX=s(t=>{let e=nEe([...t.cssCompiledStyles||[],...t.cssStyles||[]]);return{stylesMap:e,stylesArray:[...e]}},"compileStyles"),nEe=s(t=>{let e=new Map;return t.forEach(r=>{let[n,i]=r.split(":");e.set(n.trim(),i?.trim())}),e},"styles2Map"),Dr=s(t=>{let{stylesArray:e}=LX(t),r=[],n=[],i=[],a=[];return e.forEach(o=>{let l=o[0];l==="color"||l==="font-size"||l==="font-family"||l==="font-weight"||l==="font-style"||l==="text-decoration"||l==="text-align"||l==="text-transform"||l==="line-height"||l==="letter-spacing"||l==="word-spacing"||l==="text-shadow"||l==="text-overflow"||l==="white-space"||l==="word-wrap"||l==="word-break"||l==="overflow-wrap"||l==="hyphens"?r.push(o.join(":")+" !important"):(n.push(o.join(":")+" !important"),l.includes("stroke")&&i.push(o.join(":")+" !important"),l==="fill"&&a.push(o.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:n.join(";"),stylesArray:e,borderStyles:i,backgroundStyles:a}},"styles2String"),Rr=s((t,e)=>{let{themeVariables:r,handDrawnSeed:n}=le(),{nodeBorder:i,mainBkg:a}=r,{stylesMap:o}=LX(t);return Object.assign({roughness:.7,fill:o.get("fill")||a,fillStyle:"hachure",fillWeight:4,stroke:o.get("stroke")||i,seed:n,strokeWidth:1.3},e)},"userNodeOverrides")});var DX,iEe,aEe,sEe,oEe,lEe,RX,p5,MX,i9=_(()=>{"use strict";gt();Qt();it();gd();Xt();Yn();ic();n9();d5();lv();pi();DX=s(async(t,e)=>{V.info("Creating subgraph rect for ",e.id,e);let r=le(),{themeVariables:n,handDrawnSeed:i}=r,{clusterBkg:a,clusterBorder:o}=n,{labelStyles:l,nodeStyles:u,borderStyles:h,backgroundStyles:f}=Dr(e),d=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.id).attr("data-look",e.look),p=hr(r.flowchart.htmlLabels),m=d.insert("g").attr("class","cluster-label "),g=await vs(m,e.label,{style:e.labelStyle,useHtmlLabels:p,isNode:!0}),y=g.getBBox();if(hr(r.flowchart.htmlLabels)){let C=g.children[0],E=Me(g);y=C.getBoundingClientRect(),E.attr("width",y.width),E.attr("height",y.height)}let v=e.width<=y.width+e.padding?y.width+e.padding:e.width;e.width<=y.width+e.padding?e.diff=(v-e.width)/2-e.padding:e.diff=-e.padding;let x=e.height,b=e.x-v/2,k=e.y-x/2;V.trace("Data ",e,JSON.stringify(e));let A;if(e.look==="handDrawn"){let C=Ht.svg(d),E=Rr(e,{roughness:.7,fill:a,stroke:o,fillWeight:3,seed:i}),S=C.path(xu(b,k,v,x,0),E);A=d.insert(()=>(V.debug("Rough node insert CXC",S),S),":first-child"),A.select("path:nth-child(2)").attr("style",h.join(";")),A.select("path").attr("style",f.join(";").replace("fill","stroke"))}else A=d.insert("rect",":first-child"),A.attr("style",u).attr("rx",e.rx).attr("ry",e.ry).attr("x",b).attr("y",k).attr("width",v).attr("height",x);let{subGraphTitleTopMargin:w}=Ks(r);if(m.attr("transform",`translate(${e.x-y.width/2}, ${e.y-e.height/2+w})`),l){let C=m.select("span");C&&C.attr("style",l)}let T=A.node().getBBox();return e.offsetX=0,e.width=T.width,e.height=T.height,e.offsetY=y.height-e.padding/2,e.intersect=function(C){return vd(e,C)},{cluster:d,labelBBox:y}},"rect"),iEe=s((t,e)=>{let r=t.insert("g").attr("class","note-cluster").attr("id",e.id),n=r.insert("rect",":first-child"),i=0*e.padding,a=i/2;n.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-a).attr("y",e.y-e.height/2-a).attr("width",e.width+i).attr("height",e.height+i).attr("fill","none");let o=n.node().getBBox();return e.width=o.width,e.height=o.height,e.intersect=function(l){return vd(e,l)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),aEe=s(async(t,e)=>{let r=le(),{themeVariables:n,handDrawnSeed:i}=r,{altBackground:a,compositeBackground:o,compositeTitleBackground:l,nodeBorder:u}=n,h=t.insert("g").attr("class",e.cssClasses).attr("id",e.id).attr("data-id",e.id).attr("data-look",e.look),f=h.insert("g",":first-child"),d=h.insert("g").attr("class","cluster-label"),p=h.append("rect"),m=d.node().appendChild(await ac(e.label,e.labelStyle,void 0,!0)),g=m.getBBox();if(hr(r.flowchart.htmlLabels)){let S=m.children[0],R=Me(m);g=S.getBoundingClientRect(),R.attr("width",g.width),R.attr("height",g.height)}let y=0*e.padding,v=y/2,x=(e.width<=g.width+e.padding?g.width+e.padding:e.width)+y;e.width<=g.width+e.padding?e.diff=(x-e.width)/2-e.padding:e.diff=-e.padding;let b=e.height+y,k=e.height+y-g.height-6,A=e.x-x/2,w=e.y-b/2;e.width=x;let T=e.y-e.height/2-v+g.height+2,C;if(e.look==="handDrawn"){let S=e.cssClasses.includes("statediagram-cluster-alt"),R=Ht.svg(h),D=e.rx||e.ry?R.path(xu(A,w,x,b,10),{roughness:.7,fill:l,fillStyle:"solid",stroke:u,seed:i}):R.rectangle(A,w,x,b,{seed:i});C=h.insert(()=>D,":first-child");let L=R.rectangle(A,T,x,k,{fill:S?a:o,fillStyle:S?"hachure":"solid",stroke:u,seed:i});C=h.insert(()=>D,":first-child"),p=h.insert(()=>L)}else C=f.insert("rect",":first-child"),C.attr("class","outer").attr("x",A).attr("y",w).attr("width",x).attr("height",b).attr("data-look",e.look),p.attr("class","inner").attr("x",A).attr("y",T).attr("width",x).attr("height",k);d.attr("transform",`translate(${e.x-g.width/2}, ${w+1-(hr(r.flowchart.htmlLabels)?0:3)})`);let E=C.node().getBBox();return e.height=E.height,e.offsetX=0,e.offsetY=g.height-e.padding/2,e.labelBBox=g,e.intersect=function(S){return vd(e,S)},{cluster:h,labelBBox:g}},"roundedWithTitle"),sEe=s((t,e)=>{let r=le(),{themeVariables:n,handDrawnSeed:i}=r,{nodeBorder:a}=n,o=t.insert("g").attr("class",e.cssClasses).attr("id",e.id).attr("data-look",e.look),l=o.insert("g",":first-child"),u=0*e.padding,h=e.width+u;e.diff=-e.padding;let f=e.height+u,d=e.x-h/2,p=e.y-f/2;e.width=h;let m;if(e.look==="handDrawn"){let v=Ht.svg(o).rectangle(d,p,h,f,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:a,seed:i});m=o.insert(()=>v,":first-child")}else m=l.insert("rect",":first-child"),m.attr("class","divider").attr("x",d).attr("y",p).attr("width",h).attr("height",f).attr("data-look",e.look);let g=m.node().getBBox();return e.height=g.height,e.offsetX=0,e.offsetY=0,e.intersect=function(y){return vd(e,y)},{cluster:o,labelBBox:{}}},"divider"),oEe=DX,lEe={rect:DX,squareRect:oEe,roundedWithTitle:aEe,noteGroup:iEe,divider:sEe},RX=new Map,p5=s(async(t,e)=>{let r=e.shape||"rect",n=await lEe[r](t,e);return RX.set(e.id,n),n},"insertCluster"),MX=s(()=>{RX=new Map},"clear")});function m5(t,e){if(t===void 0||e===void 0)return{angle:0,deltaX:0,deltaY:0};t=g5(t),e=g5(e);let[r,n]=[t.x,t.y],[i,a]=[e.x,e.y],o=i-r,l=a-n;return{angle:Math.atan(l/o),deltaX:o,deltaY:l}}var Bh,g5,y5,a9=_(()=>{"use strict";Bh={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:4};s(m5,"calculateDeltaAndAngle");g5=s(t=>Array.isArray(t)?{x:t[0],y:t[1]}:t,"pointTransformer"),y5=s(t=>({x:s(function(e,r,n){let i=0;if(r===0&&Object.hasOwn(Bh,t.arrowTypeStart)){let{angle:a,deltaX:o}=m5(n[0],n[1]);i=Bh[t.arrowTypeStart]*Math.cos(a)*(o>=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(Bh,t.arrowTypeEnd)){let{angle:a,deltaX:o}=m5(n[n.length-1],n[n.length-2]);i=Bh[t.arrowTypeEnd]*Math.cos(a)*(o>=0?1:-1)}return g5(e).x+i},"x"),y:s(function(e,r,n){let i=0;if(r===0&&Object.hasOwn(Bh,t.arrowTypeStart)){let{angle:a,deltaY:o}=m5(n[0],n[1]);i=Bh[t.arrowTypeStart]*Math.abs(Math.sin(a))*(o>=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(Bh,t.arrowTypeEnd)){let{angle:a,deltaY:o}=m5(n[n.length-1],n[n.length-2]);i=Bh[t.arrowTypeEnd]*Math.abs(Math.sin(a))*(o>=0?1:-1)}return g5(e).y+i},"y")}),"getLineFunctionsWithOffset")});var NX,cEe,IX,OX=_(()=>{"use strict";it();NX=s((t,e,r,n,i)=>{e.arrowTypeStart&&IX(t,"start",e.arrowTypeStart,r,n,i),e.arrowTypeEnd&&IX(t,"end",e.arrowTypeEnd,r,n,i)},"addEdgeMarkers"),cEe={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},IX=s((t,e,r,n,i,a)=>{let o=cEe[r];if(!o){V.warn(`Unknown arrow type: ${r}`);return}let l=e==="start"?"Start":"End";t.attr(`marker-${e}`,`url(${n}#${i}_${a}-${o}${l})`)},"addEdgeMarker")});function v5(t,e){le().flowchart.htmlLabels&&t&&(t.style.width=e.length*9+"px",t.style.height="12px")}function fEe(t){let e=[],r=[];for(let n=1;n5&&Math.abs(a.y-i.y)>5||i.y===a.y&&a.x===o.x&&Math.abs(a.x-i.x)>5&&Math.abs(a.y-o.y)>5)&&(e.push(a),r.push(n))}return{cornerPoints:e,cornerPointPositions:r}}var x5,ia,FX,cv,b5,k5,uEe,hEe,PX,BX,dEe,w5,s9=_(()=>{"use strict";gt();Qt();it();ic();pr();a9();gd();Xt();Yn();d5();OX();x5=new Map,ia=new Map,FX=s(()=>{x5.clear(),ia.clear()},"clear"),cv=s(t=>t?t.reduce((r,n)=>r+";"+n,""):"","getLabelStyles"),b5=s(async(t,e)=>{let r=hr(le().flowchart.htmlLabels),n=await vs(t,e.label,{style:cv(e.labelStyle),useHtmlLabels:r,addSvgBackground:!0,isNode:!1});V.info("abc82",e,e.labelType);let i=t.insert("g").attr("class","edgeLabel"),a=i.insert("g").attr("class","label");a.node().appendChild(n);let o=n.getBBox();if(r){let u=n.children[0],h=Me(n);o=u.getBoundingClientRect(),h.attr("width",o.width),h.attr("height",o.height)}a.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),x5.set(e.id,i),e.width=o.width,e.height=o.height;let l;if(e.startLabelLeft){let u=await ac(e.startLabelLeft,cv(e.labelStyle)),h=t.insert("g").attr("class","edgeTerminals"),f=h.insert("g").attr("class","inner");l=f.node().appendChild(u);let d=u.getBBox();f.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),ia.get(e.id)||ia.set(e.id,{}),ia.get(e.id).startLeft=h,v5(l,e.startLabelLeft)}if(e.startLabelRight){let u=await ac(e.startLabelRight,cv(e.labelStyle)),h=t.insert("g").attr("class","edgeTerminals"),f=h.insert("g").attr("class","inner");l=h.node().appendChild(u),f.node().appendChild(u);let d=u.getBBox();f.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),ia.get(e.id)||ia.set(e.id,{}),ia.get(e.id).startRight=h,v5(l,e.startLabelRight)}if(e.endLabelLeft){let u=await ac(e.endLabelLeft,cv(e.labelStyle)),h=t.insert("g").attr("class","edgeTerminals"),f=h.insert("g").attr("class","inner");l=f.node().appendChild(u);let d=u.getBBox();f.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),h.node().appendChild(u),ia.get(e.id)||ia.set(e.id,{}),ia.get(e.id).endLeft=h,v5(l,e.endLabelLeft)}if(e.endLabelRight){let u=await ac(e.endLabelRight,cv(e.labelStyle)),h=t.insert("g").attr("class","edgeTerminals"),f=h.insert("g").attr("class","inner");l=f.node().appendChild(u);let d=u.getBBox();f.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),h.node().appendChild(u),ia.get(e.id)||ia.set(e.id,{}),ia.get(e.id).endRight=h,v5(l,e.endLabelRight)}return n},"insertEdgeLabel");s(v5,"setTerminalWidth");k5=s((t,e)=>{V.debug("Moving label abc88 ",t.id,t.label,x5.get(t.id),e);let r=e.updatedPath?e.updatedPath:e.originalPath,n=le(),{subGraphTitleTotalMargin:i}=Ks(n);if(t.label){let a=x5.get(t.id),o=t.x,l=t.y;if(r){let u=dt.calcLabelPosition(r);V.debug("Moving label "+t.label+" from (",o,",",l,") to (",u.x,",",u.y,") abc88"),e.updatedPath&&(o=u.x,l=u.y)}a.attr("transform",`translate(${o}, ${l+i/2})`)}if(t.startLabelLeft){let a=ia.get(t.id).startLeft,o=t.x,l=t.y;if(r){let u=dt.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",r);o=u.x,l=u.y}a.attr("transform",`translate(${o}, ${l})`)}if(t.startLabelRight){let a=ia.get(t.id).startRight,o=t.x,l=t.y;if(r){let u=dt.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",r);o=u.x,l=u.y}a.attr("transform",`translate(${o}, ${l})`)}if(t.endLabelLeft){let a=ia.get(t.id).endLeft,o=t.x,l=t.y;if(r){let u=dt.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",r);o=u.x,l=u.y}a.attr("transform",`translate(${o}, ${l})`)}if(t.endLabelRight){let a=ia.get(t.id).endRight,o=t.x,l=t.y;if(r){let u=dt.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",r);o=u.x,l=u.y}a.attr("transform",`translate(${o}, ${l})`)}},"positionEdgeLabel"),uEe=s((t,e)=>{let r=t.x,n=t.y,i=Math.abs(e.x-r),a=Math.abs(e.y-n),o=t.width/2,l=t.height/2;return i>=o||a>=l},"outsideNode"),hEe=s((t,e,r)=>{V.debug(`intersection calc abc89:
outsidePoint: ${JSON.stringify(e)}
insidePoint : ${JSON.stringify(r)}
node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);let n=t.x,i=t.y,a=Math.abs(n-r.x),o=t.width/2,l=r.xMath.abs(n-e.x)*u){let d=r.y{V.warn("abc88 cutPathAtIntersect",t,e);let r=[],n=t[0],i=!1;return t.forEach(a=>{if(V.info("abc88 checking point",a,e),!uEe(e,a)&&!i){let o=hEe(e,n,a);V.debug("abc88 inside",a,n,o),V.debug("abc88 intersection",o,e);let l=!1;r.forEach(u=>{l=l||u.x===o.x&&u.y===o.y}),r.some(u=>u.x===o.x&&u.y===o.y)?V.warn("abc88 no intersect",o,r):r.push(o),i=!0}else V.warn("abc88 outside",a,n),n=a,i||r.push(a)}),V.debug("returning points",r),r},"cutPathAtIntersect");s(fEe,"extractCornerPoints");BX=s(function(t,e,r){let n=e.x-t.x,i=e.y-t.y,a=Math.sqrt(n*n+i*i),o=r/a;return{x:e.x-o*n,y:e.y-o*i}},"findAdjacentPoint"),dEe=s(function(t){let{cornerPointPositions:e}=fEe(t),r=[];for(let n=0;n10&&Math.abs(a.y-i.y)>=10){V.debug("Corner point fixing",Math.abs(a.x-i.x),Math.abs(a.y-i.y));let m=5;o.x===l.x?p={x:h<0?l.x-m+d:l.x+m-d,y:f<0?l.y-d:l.y+d}:p={x:h<0?l.x-d:l.x+d,y:f<0?l.y-m+d:l.y+m-d}}else V.debug("Corner point skipping fixing",Math.abs(a.x-i.x),Math.abs(a.y-i.y));r.push(p,u)}else r.push(t[n]);return r},"fixCorners"),w5=s(function(t,e,r,n,i,a,o){let{handDrawnSeed:l}=le(),u=e.points,h=!1,f=i;var d=a;d.intersect&&f.intersect&&(u=u.slice(1,e.points.length-1),u.unshift(f.intersect(u[0])),V.debug("Last point APA12",e.start,"-->",e.end,u[u.length-1],d,d.intersect(u[u.length-1])),u.push(d.intersect(u[u.length-1]))),e.toCluster&&(V.info("to cluster abc88",r.get(e.toCluster)),u=PX(e.points,r.get(e.toCluster).node),h=!0),e.fromCluster&&(V.debug("from cluster abc88",r.get(e.fromCluster),JSON.stringify(u,null,2)),u=PX(u.reverse(),r.get(e.fromCluster).node).reverse(),h=!0);let p=u.filter(E=>!Number.isNaN(E.y));p=dEe(p);let m=p[p.length-1];if(p.length>1){m=p[p.length-1];let E=p[p.length-2],S=(m.x-E.x)/2,R=(m.y-E.y)/2,D={x:E.x+S,y:E.y+R};p.splice(-1,0,D)}let g=hs;e.curve&&(g=e.curve);let{x:y,y:v}=y5(e),x=ra().x(y).y(v).curve(g),b;switch(e.thickness){case"normal":b="edge-thickness-normal";break;case"thick":b="edge-thickness-thick";break;case"invisible":b="edge-thickness-invisible";break;default:b="edge-thickness-normal"}switch(e.pattern){case"solid":b+=" edge-pattern-solid";break;case"dotted":b+=" edge-pattern-dotted";break;case"dashed":b+=" edge-pattern-dashed";break;default:b+=" edge-pattern-solid"}let k,A=x(p),w=Array.isArray(e.style)?e.style:[e.style];if(e.look==="handDrawn"){let E=Ht.svg(t);Object.assign([],p);let S=E.path(A,{roughness:.3,seed:l});b+=" transition",k=Me(S).select("path").attr("id",e.id).attr("class"," "+b+(e.classes?" "+e.classes:"")).attr("style",w?w.reduce((D,L)=>D+";"+L,""):"");let R=k.attr("d");k.attr("d",R),t.node().appendChild(k.node())}else k=t.append("path").attr("d",A).attr("id",e.id).attr("class"," "+b+(e.classes?" "+e.classes:"")).attr("style",w?w.reduce((E,S)=>E+";"+S,""):"");let T="";(le().flowchart.arrowMarkerAbsolute||le().state.arrowMarkerAbsolute)&&(T=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,T=T.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),V.info("arrowTypeStart",e.arrowTypeStart),V.info("arrowTypeEnd",e.arrowTypeEnd),NX(k,e,T,o,n);let C={};return h&&(C.updatedPath=u),C.originalPath=e.points,C},"insertEdge")});var pEe,mEe,gEe,yEe,vEe,xEe,bEe,kEe,wEe,TEe,EEe,T5,o9=_(()=>{"use strict";it();pEe=s((t,e,r,n)=>{e.forEach(i=>{EEe[i](t,r,n)})},"insertMarkers"),mEe=s((t,e,r)=>{V.trace("Making markers for ",r),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionStart").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),gEe=s((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart").attr("class","marker composition "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),yEe=s((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),vEe=s((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),xEe=s((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),bEe=s((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),kEe=s((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),wEe=s((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),TEe=s((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),EEe={extension:mEe,composition:gEe,aggregation:yEe,dependency:vEe,lollipop:xEe,point:bEe,circle:kEe,cross:wEe,barb:TEe},T5=pEe});var Mr,er,gn,Xn=_(()=>{"use strict";ic();gt();Xt();Qt();pr();Mr=s(async(t,e,r)=>{let n,i=e.useHtmlLabels||hr(le().flowchart.htmlLabels);r?n=r:n="node default";let a=t.insert("g").attr("class",n).attr("id",e.domId||e.id),o=a.insert("g").attr("class","label").attr("style",e.labelStyle),l;e.label===void 0?l="":l=typeof e.label=="string"?e.label:e.label[0];let u;u=await vs(o,$r(Ys(l),le()),{useHtmlLabels:i,width:e.width||le().flowchart.wrappingWidth,cssClasses:"markdown-node-label",style:e.labelStyle});let h=u.getBBox(),f=e.padding/2;if(hr(le().flowchart.htmlLabels)){let d=u.children[0],p=Me(u),m=d.getElementsByTagName("img");if(m){let g=l.replace(/]*>/g,"").trim()==="";await Promise.all([...m].map(y=>new Promise(v=>{function x(){if(y.style.display="flex",y.style.flexDirection="column",g){let b=le().fontSize?le().fontSize:window.getComputedStyle(document.body).fontSize,A=parseInt(b,10)*5+"px";y.style.minWidth=A,y.style.maxWidth=A}else y.style.width="100%";v(y)}s(x,"setupImage"),setTimeout(()=>{y.complete&&x()}),y.addEventListener("error",x),y.addEventListener("load",x)})))}h=d.getBoundingClientRect(),p.attr("width",h.width),p.attr("height",h.height)}return i?o.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"):o.attr("transform","translate(0, "+-h.height/2+")"),e.centerLabel&&o.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),o.insert("rect",":first-child"),{shapeSvg:a,bbox:h,halfPadding:f,label:o}},"labelHelper"),er=s((t,e)=>{let r=e.node().getBBox();t.width=r.width,t.height=r.height},"updateNodeBounds"),gn=s((t,e)=>(t.look==="handDrawn"?"rough-node":"node")+" "+t.cssClasses+" "+(e||""),"getNodeClasses")});function CEe(t,e){return t.intersect(e)}var zX,$X=_(()=>{"use strict";s(CEe,"intersectNode");zX=CEe});function SEe(t,e,r,n){var i=t.x,a=t.y,o=i-n.x,l=a-n.y,u=Math.sqrt(e*e*l*l+r*r*o*o),h=Math.abs(e*r*o/u);n.x{"use strict";s(SEe,"intersectEllipse");E5=SEe});function _Ee(t,e,r){return E5(t,e,e,r)}var GX,VX=_(()=>{"use strict";l9();s(_Ee,"intersectCircle");GX=_Ee});function AEe(t,e,r,n){var i,a,o,l,u,h,f,d,p,m,g,y,v,x,b;if(i=e.y-t.y,o=t.x-e.x,u=e.x*t.y-t.x*e.y,p=i*r.x+o*r.y+u,m=i*n.x+o*n.y+u,!(p!==0&&m!==0&&UX(p,m))&&(a=n.y-r.y,l=r.x-n.x,h=n.x*r.y-r.x*n.y,f=a*t.x+l*t.y+h,d=a*e.x+l*e.y+h,!(f!==0&&d!==0&&UX(f,d))&&(g=i*l-a*o,g!==0)))return y=Math.abs(g/2),v=o*h-l*u,x=v<0?(v-y)/g:(v+y)/g,v=a*u-i*h,b=v<0?(v-y)/g:(v+y)/g,{x,y:b}}function UX(t,e){return t*e>0}var qX,WX=_(()=>{"use strict";s(AEe,"intersectLine");s(UX,"sameSign");qX=AEe});function LEe(t,e,r){let n=t.x,i=t.y,a=[],o=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY;typeof e.forEach=="function"?e.forEach(function(f){o=Math.min(o,f.x),l=Math.min(l,f.y)}):(o=Math.min(o,e.x),l=Math.min(l,e.y));let u=n-t.width/2-o,h=i-t.height/2-l;for(let f=0;f1&&a.sort(function(f,d){let p=f.x-r.x,m=f.y-r.y,g=Math.sqrt(p*p+m*m),y=d.x-r.x,v=d.y-r.y,x=Math.sqrt(y*y+v*v);return g{"use strict";WX();s(LEe,"intersectPolygon");HX=LEe});var tr,ii=_(()=>{"use strict";$X();VX();l9();YX();n9();tr={node:zX,circle:GX,ellipse:E5,polygon:HX,rect:vd}});var xd,uv=_(()=>{"use strict";Xn();ii();lv();pi();Yn();xd=s(async(t,e,r)=>{let{labelStyles:n,nodeStyles:i}=Dr(e);e.labelStyle=n;let{shapeSvg:a,bbox:o}=await Mr(t,e,gn(e)),l=Math.max(o.width+r.labelPaddingX*2,e?.width||0),u=Math.max(o.height+r.labelPaddingY*2,e?.height||0),h=-l/2,f=-u/2,d,{rx:p,ry:m}=e,{cssStyles:g}=e;if(r?.rx&&r.ry&&(p=r.rx,m=r.ry),e.look==="handDrawn"){let y=Ht.svg(a),v=Rr(e,{}),x=p||m?y.path(xu(h,f,l,u,p||0),v):y.rectangle(h,f,l,u,v);d=a.insert(()=>x,":first-child"),d.attr("class","basic label-container").attr("style",g)}else d=a.insert("rect",":first-child"),d.attr("class","basic label-container").attr("style",i).attr("rx",p).attr("data-id","abc").attr("data-et","node").attr("ry",m).attr("x",h).attr("y",f).attr("width",l).attr("height",u);return er(e,d),e.intersect=function(y){return tr.rect(e,y)},a},"drawRect")});var XX,jX=_(()=>{"use strict";uv();XX=s(async(t,e)=>xd(t,e,{rx:5,ry:5,classes:"flowchart-node"}),"state")});var KX,QX=_(()=>{"use strict";uv();KX=s(async(t,e)=>{let r={rx:5,ry:5,classes:"",labelPaddingX:(e?.padding||0)*1,labelPaddingY:(e?.padding||0)*1};return xd(t,e,r)},"roundedRect")});var ZX,JX=_(()=>{"use strict";uv();ZX=s(async(t,e)=>{let r={rx:0,ry:0,classes:"",labelPaddingX:(e?.padding||0)*2,labelPaddingY:(e?.padding||0)*1};return xd(t,e,r)},"squareRect")});var ej,tj=_(()=>{"use strict";Xn();ii();Yn();pi();gt();ej=s((t,e)=>{let{themeVariables:r}=le(),{lineColor:n}=r,i=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),a;if(e.look==="handDrawn"){let l=Ht.svg(i).circle(0,0,14,bu(n));a=i.insert(()=>l)}else a=i.insert("circle",":first-child");return a.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),er(e,a),e.intersect=function(o){return tr.circle(e,7,o)},i},"stateStart")});var rj,nj=_(()=>{"use strict";Xn();ii();Yn();pi();gt();rj=s((t,e)=>{let{themeVariables:r}=le(),{lineColor:n}=r,i=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),a,o;if(e.look==="handDrawn"){let l=Ht.svg(i),u=l.circle(0,0,14,{...bu(n),roughness:.5}),h=l.circle(0,0,5,{...bu(n),fillStyle:"solid"});a=i.insert(()=>u),o=i.insert(()=>h)}else o=i.insert("circle",":first-child"),a=i.insert("circle",":first-child"),a.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),o.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10);return er(e,a),e.intersect=function(l){return tr.circle(e,7,l)},i},"stateEnd")});var c9,ij=_(()=>{"use strict";Xn();ii();Yn();pi();gt();c9=s((t,e,r)=>{let{themeVariables:n}=le(),{lineColor:i}=n,a=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),o=70,l=10;r==="LR"&&(o=10,l=70);let u=-1*o/2,h=-1*l/2,f;if(e.look==="handDrawn"){let y=Ht.svg(a).rectangle(u,h,o,l,bu(i));f=a.insert(()=>y)}else f=a.append("rect").attr("x",u).attr("y",h).attr("width",o).attr("height",l).attr("class","fork-join");er(e,f);let d=0,p=0,m=10;return e.height&&(d=e.height),e.width&&(p=e.width),e.padding&&(m=e.padding),e.height=d+m/2,e.width=p+m/2,e.intersect=function(g){return tr.rect(e,g)},a},"forkJoin")});var aj,sj=_(()=>{"use strict";ii();Yn();pi();gt();aj=s((t,e)=>{let{labelStyles:r,nodeStyles:n}=Dr(e);e.labelStyle=r;let{themeVariables:i}=le(),{lineColor:a}=i,o=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),l=28,u=[{x:0,y:l/2},{x:l/2,y:0},{x:0,y:-l/2},{x:-l/2,y:0}],h;if(e.look==="handDrawn"){let f=Ht.svg(o),d=u.map(function(m){return[m.x,m.y]}),p=f.polygon(d,bu(a));h=o.insert(()=>p)}else h=o.insert("polygon",":first-child").attr("points",u.map(function(f){return f.x+","+f.y}).join(" "));return h.attr("class","state-start").attr("r",7).attr("width",28).attr("height",28).attr("style",n),e.width=28,e.height=28,e.intersect=function(f){return tr.circle(e,14,f)},o},"choice")});var oj,lj=_(()=>{"use strict";it();Xn();ii();gt();Yn();oj=s(async(t,e)=>{let{themeVariables:r,handDrawnSeed:n}=le(),{noteBorderColor:i,noteBkgColor:a}=r;e.useHtmlLabels||(e.centerLabel=!0);let{shapeSvg:l,bbox:u}=await Mr(t,e,"node "+e.cssClasses);V.info("Classes = ",e.cssClasses);let{cssStyles:h}=e,f,d=u.width+e.padding,p=u.height+e.padding,m=-d/2,g=-p/2;if(e.look==="handDrawn"){let v=Ht.svg(l).rectangle(m,g,d,p,{roughness:.7,fill:a,fillWeight:3,seed:n,stroke:i});f=l.insert(()=>v,":first-child"),f.attr("class","basic label-container").attr("style",h)}else f=l.insert("rect",":first-child"),f.attr("rx",e.rx).attr("ry",e.ry).attr("x",m).attr("y",g).attr("width",d).attr("height",p);return er(e,f),e.intersect=function(y){return tr.rect(e,y)},l},"note")});var cj,uj=_(()=>{"use strict";Xn();ii();pi();Yn();lv();cj=s(async(t,e)=>{let{labelStyles:r,nodeStyles:n}=Dr(e);e.labelStyle=r;let{shapeSvg:i,bbox:a}=await Mr(t,e,gn(e)),o=a.height+e.padding,l=a.width+o/4+e.padding,u,{cssStyles:h}=e;if(e.look==="handDrawn"){let f=Ht.svg(i),d=Rr(e,{}),p=xu(-l/2,-o/2,l,o,o/2),m=f.path(p,d);u=i.insert(()=>m,":first-child"),u.attr("class","basic label-container").attr("style",h)}else u=i.insert("rect",":first-child"),u.attr("class","basic label-container").attr("style",n).attr("rx",o/2).attr("ry",o/2).attr("x",-l/2).attr("y",-o/2).attr("width",l).attr("height",o);return er(e,u),e.intersect=function(f){return tr.rect(e,f)},i},"stadium")});var hj,fj=_(()=>{"use strict";Xt();Qt();Xn();d5();ii();pi();Yn();gt();lv();it();hj=s(async(t,e)=>{let{labelStyles:r,nodeStyles:n}=Dr(e);e.labelStyle=r;let i;e.cssClasses?i="node "+e.cssClasses:i="node default";let a=t.insert("g").attr("class",i).attr("id",e.domId||e.id),o=a.insert("g"),l=a.insert("g").attr("class","label").attr("style",n),u=e.description,h=e.label,f=l.node().appendChild(await ac(h,e.labelStyle,!0,!0)),d={width:0,height:0};if(hr(le()?.flowchart?.htmlLabels)){let E=f.children[0],S=Me(f);d=E.getBoundingClientRect(),S.attr("width",d.width),S.attr("height",d.height)}V.info("Text 2",u);let p=u||[],m=f.getBBox(),g=l.node().appendChild(await ac(p.join?p.join("
"):p,e.labelStyle,!0,!0)),y=g.children[0],v=Me(g);d=y.getBoundingClientRect(),v.attr("width",d.width),v.attr("height",d.height);let x=(e.padding||0)/2;Me(g).attr("transform","translate( "+(d.width>m.width?0:(m.width-d.width)/2)+", "+(m.height+x+5)+")"),Me(f).attr("transform","translate( "+(d.width(V.debug("Rough node insert CXC",R),D),":first-child"),T=a.insert(()=>(V.debug("Rough node insert CXC",R),R),":first-child")}else T=o.insert("rect",":first-child"),C=o.insert("line"),T.attr("class","outer title-state").attr("style",n).attr("x",-d.width/2-x).attr("y",-d.height/2-x).attr("width",d.width+(e.padding||0)).attr("height",d.height+(e.padding||0)),C.attr("class","divider").attr("x1",-d.width/2-x).attr("x2",d.width/2+x).attr("y1",-d.height/2-x+m.height+x).attr("y2",-d.height/2-x+m.height+x);return er(e,T),e.intersect=function(E){return tr.rect(e,E)},a},"rectWithTitle")});function Ea(t,e,r,n){return t.insert("polygon",":first-child").attr("points",n.map(function(i){return i.x+","+i.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+r/2+")")}var ku=_(()=>{"use strict";s(Ea,"insertPolygonShape")});var dj,pj=_(()=>{"use strict";Xn();ii();pi();Yn();ku();dj=s(async(t,e)=>{let{labelStyles:r,nodeStyles:n}=Dr(e);e.labelStyle=r;let{shapeSvg:i,bbox:a}=await Mr(t,e,gn(e)),o=(e?.padding||0)/2,l=a.width+e.padding,u=a.height+e.padding,h=-a.width/2-o,f=-a.height/2-o,d=[{x:0,y:0},{x:l,y:0},{x:l,y:-u},{x:0,y:-u},{x:0,y:0},{x:-8,y:0},{x:l+8,y:0},{x:l+8,y:-u},{x:-8,y:-u},{x:-8,y:0}];if(e.look==="handDrawn"){let p=Ht.svg(i),m=Rr(e,{}),g=p.rectangle(h-8,f,l+16,u,m),y=p.line(h,f,h,f+u,m),v=p.line(h+l,f,h+l,f+u,m);i.insert(()=>y,":first-child"),i.insert(()=>v,":first-child");let x=i.insert(()=>g,":first-child"),{cssStyles:b}=e;x.attr("class","basic label-container").attr("style",b),er(e,x)}else{let p=Ea(i,l,u,d);n&&p.attr("style",n),er(e,p)}return e.intersect=function(p){return tr.polygon(e,d,p)},i},"subroutine")});var DEe,REe,MEe,mj,gj=_(()=>{"use strict";Xn();ii();pi();Yn();DEe=s((t,e,r,n,i,a)=>[`M${t},${e+a}`,`a${i},${a} 0,0,0 ${r},0`,`a${i},${a} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${a} 0,0,0 ${r},0`,`l0,${-n}`].join(" "),"createCylinderPathD"),REe=s((t,e,r,n,i,a)=>[`M${t},${e+a}`,`M${t+r},${e+a}`,`a${i},${a} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${a} 0,0,0 ${r},0`,`l0,${-n}`].join(" "),"createOuterCylinderPathD"),MEe=s((t,e,r,n,i,a)=>[`M${t-r/2},${-n/2}`,`a${i},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),mj=s(async(t,e)=>{let{labelStyles:r,nodeStyles:n}=Dr(e);e.labelStyle=r;let{shapeSvg:i,bbox:a}=await Mr(t,e,gn(e)),o=a.width+e.padding,l=o/2,u=l/(2.5+o/50),h=a.height+u+e.padding,f,{cssStyles:d}=e;if(e.look==="handDrawn"){let p=Ht.svg(i),m=REe(0,0,o,h,l,u),g=MEe(0,u,o,h,l,u),y=p.path(m,Rr(e,{})),v=p.path(g,Rr(e,{fill:"none"}));f=i.insert(()=>v,":first-child"),f=i.insert(()=>y,":first-child"),f.attr("class","basic label-container"),d&&f.attr("style",d)}else{let p=DEe(0,0,o,h,l,u);f=i.insert("path",":first-child").attr("d",p).attr("class","basic label-container").attr("style",d).attr("style",n)}return f.attr("label-offset-y",u),f.attr("transform",`translate(${-o/2}, ${-(h/2+u)})`),er(e,f),e.intersect=function(p){let m=tr.rect(e,p),g=m.x-(e.x??0);if(l!=0&&(Math.abs(g)<(e.width??0)/2||Math.abs(g)==(e.width??0)/2&&Math.abs(m.y-(e.y??0))>(e.height??0)/2-u)){let y=u*u*(1-g*g/(l*l));y>0&&(y=Math.sqrt(y)),y=u-y,p.y-(e.y??0)>0&&(y=-y),m.y+=y}return m},i},"cylinder")});var yj,vj=_(()=>{"use strict";it();Xn();ii();pi();Yn();yj=s(async(t,e)=>{let{labelStyles:r,nodeStyles:n}=Dr(e);e.labelStyle=r;let{shapeSvg:i,bbox:a,halfPadding:o}=await Mr(t,e,gn(e)),l=a.width/2+o,u,{cssStyles:h}=e;if(e.look==="handDrawn"){let f=Ht.svg(i),d=Rr(e,{}),p=f.circle(0,0,l*2,d);u=i.insert(()=>p,":first-child"),u.attr("class","basic label-container").attr("style",h)}else u=i.insert("circle",":first-child").attr("class","basic label-container").attr("style",n).attr("r",l).attr("cx",0).attr("cy",0);return er(e,u),e.intersect=function(f){return V.info("Circle intersect",e,l,f),tr.circle(e,l,f)},i},"circle")});var xj,bj=_(()=>{"use strict";it();Xn();ii();pi();Yn();xj=s(async(t,e)=>{let{labelStyles:r,nodeStyles:n}=Dr(e);e.labelStyle=r;let{shapeSvg:i,bbox:a,halfPadding:o}=await Mr(t,e,gn(e)),u=a.width/2+o+5,h=a.width/2+o,f,{cssStyles:d}=e;if(e.look==="handDrawn"){let p=Ht.svg(i),m=Rr(e,{roughness:.2,strokeWidth:2.5}),g=Rr(e,{roughness:.2,strokeWidth:1.5}),y=p.circle(0,0,u*2,m),v=p.circle(0,0,h*2,g);f=i.insert("g",":first-child"),f.attr("class",e.cssClasses).attr("style",d),f.node()?.appendChild(y),f.node()?.appendChild(v)}else{f=i.insert("g",":first-child");let p=f.insert("circle",":first-child"),m=f.insert("circle");f.attr("class","basic label-container").attr("style",n),p.attr("class","outer-circle").attr("style",n).attr("r",u).attr("cx",0).attr("cy",0),m.attr("class","inner-circle").attr("style",n).attr("r",h).attr("cx",0).attr("cy",0)}return er(e,f),e.intersect=function(p){return V.info("DoubleCircle intersect",e,u,p),tr.circle(e,u,p)},i},"doublecircle")});var IEe,kj,wj=_(()=>{"use strict";Xn();ii();pi();Yn();ku();IEe=s((t,e,r,n)=>[`M${t-n/2},${e}`,`L${t+r},${e}`,`L${t+r},${e-n}`,`L${t-n/2},${e-n}`,`L${t},${e-n/2}`,"Z"].join(" "),"createPolygonPathD"),kj=s(async(t,e)=>{let{labelStyles:r,nodeStyles:n}=Dr(e);e.labelStyle=r;let{shapeSvg:i,bbox:a}=await Mr(t,e,gn(e)),o=a.width+e.padding,l=a.height+e.padding,u=[{x:-l/2,y:0},{x:o,y:0},{x:o,y:-l},{x:-l/2,y:-l},{x:0,y:-l/2}],h,{cssStyles:f}=e;if(e.look==="handDrawn"){let d=Ht.svg(i),p=Rr(e,{}),m=IEe(0,0,o,l),g=d.path(m,p);h=i.insert(()=>g,":first-child").attr("transform",`translate(${-o/2}, ${l/2})`),f&&h.attr("style",f)}else h=Ea(i,o,l,u);return n&&h.attr("style",n),e.width=o+l,e.height=l,er(e,h),e.intersect=function(d){return tr.polygon(e,u,d)},i},"rect_left_inv_arrow")});var NEe,Tj,Ej=_(()=>{"use strict";it();Xn();ii();pi();Yn();ku();NEe=s((t,e,r)=>[`M${t+r/2},${e}`,`L${t+r},${e-r/2}`,`L${t+r/2},${e-r}`,`L${t},${e-r/2}`,"Z"].join(" "),"createDecisionBoxPathD"),Tj=s(async(t,e)=>{let{labelStyles:r,nodeStyles:n}=Dr(e);e.labelStyle=r;let{shapeSvg:i,bbox:a}=await Mr(t,e,gn(e)),o=a.width+e.padding,l=a.height+e.padding,u=o+l,h=[{x:u/2,y:0},{x:u,y:-u/2},{x:u/2,y:-u},{x:0,y:-u/2}],f,{cssStyles:d}=e;if(e.look==="handDrawn"){let p=Ht.svg(i),m=Rr(e,{}),g=NEe(0,0,u),y=p.path(g,m);f=i.insert(()=>y,":first-child").attr("transform",`translate(${-u/2}, ${u/2})`),d&&f.attr("style",d)}else f=Ea(i,u,u,h);return n&&f.attr("style",n),er(e,f),e.intersect=function(p){return V.debug(`APA12 Intersect called SPLIT
point:`,p,`
node:
`,e,`
res:`,tr.polygon(e,h,p)),tr.polygon(e,h,p)},i},"question")});var OEe,Cj,Sj=_(()=>{"use strict";Xn();ii();pi();Yn();ku();OEe=s((t,e,r,n,i)=>[`M${t+i},${e}`,`L${t+r-i},${e}`,`L${t+r},${e-n/2}`,`L${t+r-i},${e-n}`,`L${t+i},${e-n}`,`L${t},${e-n/2}`,"Z"].join(" "),"createHexagonPathD"),Cj=s(async(t,e)=>{let{labelStyles:r,nodeStyles:n}=Dr(e);e.labelStyle=r;let{shapeSvg:i,bbox:a}=await Mr(t,e,gn(e)),o=4,l=a.height+e.padding,u=l/o,h=a.width+2*u+e.padding,f=[{x:u,y:0},{x:h-u,y:0},{x:h,y:-l/2},{x:h-u,y:-l},{x:u,y:-l},{x:0,y:-l/2}],d,{cssStyles:p}=e;if(e.look==="handDrawn"){let m=Ht.svg(i),g=Rr(e,{}),y=OEe(0,0,h,l,u),v=m.path(y,g);d=i.insert(()=>v,":first-child").attr("transform",`translate(${-h/2}, ${l/2})`),p&&d.attr("style",p)}else d=Ea(i,h,l,f);return n&&d.attr("style",n),e.width=h,e.height=l,er(e,d),e.intersect=function(m){return tr.polygon(e,f,m)},i},"hexagon")});var PEe,_j,Aj=_(()=>{"use strict";Xn();ii();pi();Yn();ku();PEe=s((t,e,r,n)=>[`M${t-2*n/6},${e}`,`L${t+r-n/6},${e}`,`L${t+r+2*n/6},${e-n}`,`L${t+n/6},${e-n}`,"Z"].join(" "),"createLeanRightPathD"),_j=s(async(t,e)=>{let{labelStyles:r,nodeStyles:n}=Dr(e);e.labelStyle=r;let{shapeSvg:i,bbox:a}=await Mr(t,e,gn(e)),o=a.width+e.padding,l=a.height+e.padding,u=[{x:-2*l/6,y:0},{x:o-l/6,y:0},{x:o+2*l/6,y:-l},{x:l/6,y:-l}],h,{cssStyles:f}=e;if(e.look==="handDrawn"){let d=Ht.svg(i),p=Rr(e,{}),m=PEe(0,0,o,l),g=d.path(m,p);h=i.insert(()=>g,":first-child").attr("transform",`translate(${-o/2}, ${l/2})`),f&&h.attr("style",f)}else h=Ea(i,o,l,u);return n&&h.attr("style",n),e.width=o,e.height=l,er(e,h),e.intersect=function(d){return tr.polygon(e,u,d)},i},"lean_right")});var BEe,Lj,Dj=_(()=>{"use strict";Xn();ii();pi();Yn();ku();BEe=s((t,e,r,n)=>[`M${t+2*n/6},${e}`,`L${t+r+n/6},${e}`,`L${t+r-2*n/6},${e-n}`,`L${t-n/6},${e-n}`,"Z"].join(" "),"createLeanLeftPathD"),Lj=s(async(t,e)=>{let{labelStyles:r,nodeStyles:n}=Dr(e);e.labelStyle=r;let{shapeSvg:i,bbox:a}=await Mr(t,e,gn(e)),o=a.width+e.padding,l=a.height+e.padding,u=[{x:2*l/6,y:0},{x:o+l/6,y:0},{x:o-2*l/6,y:-l},{x:-l/6,y:-l}],h,{cssStyles:f}=e;if(e.look==="handDrawn"){let d=Ht.svg(i),p=Rr(e,{}),m=BEe(0,0,o,l),g=d.path(m,p);h=i.insert(()=>g,":first-child").attr("transform",`translate(${-o/2}, ${l/2})`),f&&h.attr("style",f)}else h=Ea(i,o,l,u);return n&&h.attr("style",n),e.width=o,e.height=l,er(e,h),e.intersect=function(d){return tr.polygon(e,u,d)},i},"lean_left")});var FEe,Rj,Mj=_(()=>{"use strict";Xn();ii();pi();Yn();ku();FEe=s((t,e,r,n)=>[`M${t-2*n/6},${e}`,`L${t+r+2*n/6},${e}`,`L${t+r-n/6},${e-n}`,`L${t+n/6},${e-n}`,"Z"].join(" "),"createTrapezoidPathD"),Rj=s(async(t,e)=>{let{labelStyles:r,nodeStyles:n}=Dr(e);e.labelStyle=r;let{shapeSvg:i,bbox:a}=await Mr(t,e,gn(e)),o=a.width+e.padding,l=a.height+e.padding,u=[{x:-2*l/6,y:0},{x:o+2*l/6,y:0},{x:o-l/6,y:-l},{x:l/6,y:-l}],h,{cssStyles:f}=e;if(e.look==="handDrawn"){let d=Ht.svg(i),p=Rr(e,{}),m=FEe(0,0,o,l),g=d.path(m,p);h=i.insert(()=>g,":first-child").attr("transform",`translate(${-o/2}, ${l/2})`),f&&h.attr("style",f)}else h=Ea(i,o,l,u);return n&&h.attr("style",n),e.width=o,e.height=l,er(e,h),e.intersect=function(d){return tr.polygon(e,u,d)},i},"trapezoid")});var zEe,Ij,Nj=_(()=>{"use strict";Xn();ii();pi();Yn();ku();zEe=s((t,e,r,n)=>[`M${t+n/6},${e}`,`L${t+r-n/6},${e}`,`L${t+r+2*n/6},${e-n}`,`L${t-2*n/6},${e-n}`,"Z"].join(" "),"createInvertedTrapezoidPathD"),Ij=s(async(t,e)=>{let{labelStyles:r,nodeStyles:n}=Dr(e);e.labelStyle=r;let{shapeSvg:i,bbox:a}=await Mr(t,e,gn(e)),o=a.width+e.padding,l=a.height+e.padding,u=[{x:l/6,y:0},{x:o-l/6,y:0},{x:o+2*l/6,y:-l},{x:-2*l/6,y:-l}],h,{cssStyles:f}=e;if(e.look==="handDrawn"){let d=Ht.svg(i),p=Rr(e,{}),m=zEe(0,0,o,l),g=d.path(m,p);h=i.insert(()=>g,":first-child").attr("transform",`translate(${-o/2}, ${l/2})`),f&&h.attr("style",f)}else h=Ea(i,o,l,u);return n&&h.attr("style",n),e.width=o,e.height=l,er(e,h),e.intersect=function(d){return tr.polygon(e,u,d)},i},"inv_trapezoid")});var Oj,Pj=_(()=>{"use strict";uv();Xn();ii();Oj=s(async(t,e)=>{let{shapeSvg:r}=await Mr(t,e,"label"),n=r.insert("rect",":first-child");return n.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),er(e,n),e.intersect=function(o){return tr.rect(e,o)},r},"labelRect")});var Bj,tm,C5,Fj,zj,u9,h9=_(()=>{"use strict";it();jX();QX();JX();tj();nj();ij();sj();lj();uj();fj();gt();pj();gj();vj();bj();wj();Ej();Sj();Aj();Dj();Mj();Nj();Pj();Bj={state:XX,stateStart:ej,stateEnd:rj,fork:c9,join:c9,choice:aj,note:oj,roundedRect:KX,rectWithTitle:hj,squareRect:ZX,stadium:cj,subroutine:dj,cylinder:mj,circle:yj,doublecircle:xj,odd:kj,diamond:Tj,hexagon:Cj,lean_right:_j,lean_left:Lj,trapezoid:Rj,inv_trapezoid:Ij,labelRect:Oj},tm=new Map,C5=s(async(t,e,r)=>{let n,i;if(e.shape==="rect"&&(e.rx&&e.ry?e.shape="roundedRect":e.shape="squareRect"),e.link){let a;le().securityLevel==="sandbox"?a="_top":e.linkTarget&&(a=e.linkTarget||"_blank"),n=t.insert("svg:a").attr("xlink:href",e.link).attr("target",a),i=await Bj[e.shape](n,e,r)}else i=await Bj[e.shape](t,e,r),n=i;return e.tooltip&&i.attr("title",e.tooltip),tm.set(e.id,n),e.haveCallback&&tm.get(e.id).attr("class",tm.get(e.id).attr("class")+" clickable"),n},"insertNode"),Fj=s((t,e)=>{tm.set(e.id,t)},"setNodeElem"),zj=s(()=>{tm.clear()},"clear"),u9=s(t=>{let e=tm.get(t.id);V.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");let r=8,n=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+n-t.width/2)+", "+(t.y-t.height/2-r)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),n},"positionNode")});var $j,Gj=_(()=>{"use strict";zs();Qt();it();i9();s9();o9();h9();Xn();pr();$j={common:$e,getConfig:_r,insertCluster:p5,insertEdge:w5,insertEdgeLabel:b5,insertMarkers:T5,insertNode:C5,interpolateToCurve:Wp,labelHelper:Mr,log:V,positionEdgeLabel:k5}});function GEe(t){return typeof t=="symbol"||Fn(t)&&na(t)==$Ee}var $Ee,Zs,bd=_(()=>{"use strict";fu();ko();$Ee="[object Symbol]";s(GEe,"isSymbol");Zs=GEe});function VEe(t,e){for(var r=-1,n=t==null?0:t.length,i=Array(n);++r{"use strict";s(VEe,"arrayMap");bs=VEe});function qj(t){if(typeof t=="string")return t;if(ct(t))return bs(t,qj)+"";if(Zs(t))return Uj?Uj.call(t):"";var e=t+"";return e=="0"&&1/t==-UEe?"-0":e}var UEe,Vj,Uj,Wj,Hj=_(()=>{"use strict";sd();kd();Dn();bd();UEe=1/0,Vj=qi?qi.prototype:void 0,Uj=Vj?Vj.toString:void 0;s(qj,"baseToString");Wj=qj});function WEe(t){for(var e=t.length;e--&&qEe.test(t.charAt(e)););return e}var qEe,Yj,Xj=_(()=>{"use strict";qEe=/\s/;s(WEe,"trimmedEndIndex");Yj=WEe});function YEe(t){return t&&t.slice(0,Yj(t)+1).replace(HEe,"")}var HEe,jj,Kj=_(()=>{"use strict";Xj();HEe=/^\s+/;s(YEe,"baseTrim");jj=YEe});function ZEe(t){if(typeof t=="number")return t;if(Zs(t))return Qj;if(on(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=on(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=jj(t);var r=jEe.test(t);return r||KEe.test(t)?QEe(t.slice(2),r?2:8):XEe.test(t)?Qj:+t}var Qj,XEe,jEe,KEe,QEe,Zj,Jj=_(()=>{"use strict";Kj();Ws();bd();Qj=NaN,XEe=/^[-+]0x[0-9a-f]+$/i,jEe=/^0b[01]+$/i,KEe=/^0o[0-7]+$/i,QEe=parseInt;s(ZEe,"toNumber");Zj=ZEe});function eCe(t){if(!t)return t===0?t:0;if(t=Zj(t),t===eK||t===-eK){var e=t<0?-1:1;return e*JEe}return t===t?t:0}var eK,JEe,rm,f9=_(()=>{"use strict";Jj();eK=1/0,JEe=17976931348623157e292;s(eCe,"toFinite");rm=eCe});function tCe(t){var e=rm(t),r=e%1;return e===e?r?e-r:e:0}var sc,nm=_(()=>{"use strict";f9();s(tCe,"toInteger");sc=tCe});var rCe,S5,tK=_(()=>{"use strict";Sh();xo();rCe=fs(Wn,"WeakMap"),S5=rCe});function nCe(){}var zn,d9=_(()=>{"use strict";s(nCe,"noop");zn=nCe});function iCe(t,e){for(var r=-1,n=t==null?0:t.length;++r{"use strict";s(iCe,"arrayEach");_5=iCe});function aCe(t,e,r,n){for(var i=t.length,a=r+(n?1:-1);n?a--:++a{"use strict";s(aCe,"baseFindIndex");A5=aCe});function sCe(t){return t!==t}var rK,nK=_(()=>{"use strict";s(sCe,"baseIsNaN");rK=sCe});function oCe(t,e,r){for(var n=r-1,i=t.length;++n{"use strict";s(oCe,"strictIndexOf");iK=oCe});function lCe(t,e,r){return e===e?iK(t,e,r):A5(t,rK,r)}var im,L5=_(()=>{"use strict";m9();nK();aK();s(lCe,"baseIndexOf");im=lCe});function cCe(t,e){var r=t==null?0:t.length;return!!r&&im(t,e,0)>-1}var D5,g9=_(()=>{"use strict";L5();s(cCe,"arrayIncludes");D5=cCe});var uCe,sK,oK=_(()=>{"use strict";X_();uCe=L3(Object.keys,Object),sK=uCe});function dCe(t){if(!ec(t))return sK(t);var e=[];for(var r in Object(t))fCe.call(t,r)&&r!="constructor"&&e.push(r);return e}var hCe,fCe,am,R5=_(()=>{"use strict";zp();oK();hCe=Object.prototype,fCe=hCe.hasOwnProperty;s(dCe,"baseKeys");am=dCe});function pCe(t){return Hn(t)?N3(t):am(t)}var kr,oc=_(()=>{"use strict";J_();R5();wo();s(pCe,"keys");kr=pCe});var mCe,gCe,yCe,aa,lK=_(()=>{"use strict";Up();hd();nA();wo();zp();oc();mCe=Object.prototype,gCe=mCe.hasOwnProperty,yCe=B3(function(t,e){if(ec(e)||Hn(e)){Co(e,kr(e),t);return}for(var r in e)gCe.call(e,r)&&tc(t,r,e[r])}),aa=yCe});function bCe(t,e){if(ct(t))return!1;var r=typeof t;return r=="number"||r=="symbol"||r=="boolean"||t==null||Zs(t)?!0:xCe.test(t)||!vCe.test(t)||e!=null&&t in Object(e)}var vCe,xCe,sm,M5=_(()=>{"use strict";Dn();bd();vCe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xCe=/^\w*$/;s(bCe,"isKey");sm=bCe});function wCe(t){var e=Rp(t,function(n){return r.size===kCe&&r.clear(),n}),r=e.cache;return e}var kCe,cK,uK=_(()=>{"use strict";G_();kCe=500;s(wCe,"memoizeCapped");cK=wCe});var TCe,ECe,CCe,hK,fK=_(()=>{"use strict";uK();TCe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ECe=/\\(\\)?/g,CCe=cK(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(TCe,function(r,n,i,a){e.push(i?a.replace(ECe,"$1"):n||r)}),e}),hK=CCe});function SCe(t){return t==null?"":Wj(t)}var I5,y9=_(()=>{"use strict";Hj();s(SCe,"toString");I5=SCe});function _Ce(t,e){return ct(t)?t:sm(t,e)?[t]:hK(I5(t))}var Fh,hv=_(()=>{"use strict";Dn();M5();fK();y9();s(_Ce,"castPath");Fh=_Ce});function LCe(t){if(typeof t=="string"||Zs(t))return t;var e=t+"";return e=="0"&&1/t==-ACe?"-0":e}var ACe,lc,om=_(()=>{"use strict";bd();ACe=1/0;s(LCe,"toKey");lc=LCe});function DCe(t,e){e=Fh(e,t);for(var r=0,n=e.length;t!=null&&r{"use strict";hv();om();s(DCe,"baseGet");zh=DCe});function RCe(t,e,r){var n=t==null?void 0:zh(t,e);return n===void 0?r:n}var dK,pK=_(()=>{"use strict";fv();s(RCe,"get");dK=RCe});function MCe(t,e){for(var r=-1,n=e.length,i=t.length;++r{"use strict";s(MCe,"arrayPush");lm=MCe});function ICe(t){return ct(t)||cl(t)||!!(mK&&t&&t[mK])}var mK,gK,yK=_(()=>{"use strict";sd();$p();Dn();mK=qi?qi.isConcatSpreadable:void 0;s(ICe,"isFlattenable");gK=ICe});function vK(t,e,r,n,i){var a=-1,o=t.length;for(r||(r=gK),i||(i=[]);++a0&&r(l)?e>1?vK(l,e-1,r,n,i):lm(i,l):n||(i[i.length]=l)}return i}var cc,cm=_(()=>{"use strict";N5();yK();s(vK,"baseFlatten");cc=vK});function NCe(t){var e=t==null?0:t.length;return e?cc(t,1):[]}var Ir,O5=_(()=>{"use strict";cm();s(NCe,"flatten");Ir=NCe});function OCe(t){return P3(O3(t,void 0,Ir),t+"")}var xK,bK=_(()=>{"use strict";O5();eA();rA();s(OCe,"flatRest");xK=OCe});function PCe(t,e,r){var n=-1,i=t.length;e<0&&(e=-e>i?0:i+e),r=r>i?i:r,r<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var a=Array(i);++n{"use strict";s(PCe,"baseSlice");P5=PCe});function WCe(t){return qCe.test(t)}var BCe,FCe,zCe,$Ce,GCe,VCe,UCe,qCe,kK,wK=_(()=>{"use strict";BCe="\\ud800-\\udfff",FCe="\\u0300-\\u036f",zCe="\\ufe20-\\ufe2f",$Ce="\\u20d0-\\u20ff",GCe=FCe+zCe+$Ce,VCe="\\ufe0e\\ufe0f",UCe="\\u200d",qCe=RegExp("["+UCe+BCe+GCe+VCe+"]");s(WCe,"hasUnicode");kK=WCe});function HCe(t,e,r,n){var i=-1,a=t==null?0:t.length;for(n&&a&&(r=t[++i]);++i{"use strict";s(HCe,"arrayReduce");TK=HCe});function YCe(t,e){return t&&Co(e,kr(e),t)}var CK,SK=_(()=>{"use strict";hd();oc();s(YCe,"baseAssign");CK=YCe});function XCe(t,e){return t&&Co(e,ds(e),t)}var _K,AK=_(()=>{"use strict";hd();Ih();s(XCe,"baseAssignIn");_K=XCe});function jCe(t,e){for(var r=-1,n=t==null?0:t.length,i=0,a=[];++r{"use strict";s(jCe,"arrayFilter");um=jCe});function KCe(){return[]}var F5,x9=_(()=>{"use strict";s(KCe,"stubArray");F5=KCe});var QCe,ZCe,LK,JCe,hm,z5=_(()=>{"use strict";B5();x9();QCe=Object.prototype,ZCe=QCe.propertyIsEnumerable,LK=Object.getOwnPropertySymbols,JCe=LK?function(t){return t==null?[]:(t=Object(t),um(LK(t),function(e){return ZCe.call(t,e)}))}:F5,hm=JCe});function eSe(t,e){return Co(t,hm(t),e)}var DK,RK=_(()=>{"use strict";hd();z5();s(eSe,"copySymbols");DK=eSe});var tSe,rSe,$5,b9=_(()=>{"use strict";N5();D3();z5();x9();tSe=Object.getOwnPropertySymbols,rSe=tSe?function(t){for(var e=[];t;)lm(e,hm(t)),t=Fp(t);return e}:F5,$5=rSe});function nSe(t,e){return Co(t,$5(t),e)}var MK,IK=_(()=>{"use strict";hd();b9();s(nSe,"copySymbolsIn");MK=nSe});function iSe(t,e,r){var n=e(t);return ct(t)?n:lm(n,r(t))}var G5,k9=_(()=>{"use strict";N5();Dn();s(iSe,"baseGetAllKeys");G5=iSe});function aSe(t){return G5(t,kr,hm)}var dv,w9=_(()=>{"use strict";k9();z5();oc();s(aSe,"getAllKeys");dv=aSe});function sSe(t){return G5(t,ds,$5)}var V5,T9=_(()=>{"use strict";k9();b9();Ih();s(sSe,"getAllKeysIn");V5=sSe});var oSe,U5,NK=_(()=>{"use strict";Sh();xo();oSe=fs(Wn,"DataView"),U5=oSe});var lSe,q5,OK=_(()=>{"use strict";Sh();xo();lSe=fs(Wn,"Promise"),q5=lSe});var cSe,$h,E9=_(()=>{"use strict";Sh();xo();cSe=fs(Wn,"Set"),$h=cSe});var PK,uSe,BK,FK,zK,$K,hSe,fSe,dSe,pSe,mSe,wd,Js,Td=_(()=>{"use strict";NK();w3();OK();E9();tK();fu();F_();PK="[object Map]",uSe="[object Object]",BK="[object Promise]",FK="[object Set]",zK="[object WeakMap]",$K="[object DataView]",hSe=du(U5),fSe=du(Lh),dSe=du(q5),pSe=du($h),mSe=du(S5),wd=na;(U5&&wd(new U5(new ArrayBuffer(1)))!=$K||Lh&&wd(new Lh)!=PK||q5&&wd(q5.resolve())!=BK||$h&&wd(new $h)!=FK||S5&&wd(new S5)!=zK)&&(wd=s(function(t){var e=na(t),r=e==uSe?t.constructor:void 0,n=r?du(r):"";if(n)switch(n){case hSe:return $K;case fSe:return PK;case dSe:return BK;case pSe:return FK;case mSe:return zK}return e},"getTag"));Js=wd});function vSe(t){var e=t.length,r=new t.constructor(e);return e&&typeof t[0]=="string"&&ySe.call(t,"index")&&(r.index=t.index,r.input=t.input),r}var gSe,ySe,GK,VK=_(()=>{"use strict";gSe=Object.prototype,ySe=gSe.hasOwnProperty;s(vSe,"initCloneArray");GK=vSe});function xSe(t,e){var r=e?Bp(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}var UK,qK=_(()=>{"use strict";S3();s(xSe,"cloneDataView");UK=xSe});function kSe(t){var e=new t.constructor(t.source,bSe.exec(t));return e.lastIndex=t.lastIndex,e}var bSe,WK,HK=_(()=>{"use strict";bSe=/\w*$/;s(kSe,"cloneRegExp");WK=kSe});function wSe(t){return XK?Object(XK.call(t)):{}}var YK,XK,jK,KK=_(()=>{"use strict";sd();YK=qi?qi.prototype:void 0,XK=YK?YK.valueOf:void 0;s(wSe,"cloneSymbol");jK=wSe});function VSe(t,e,r){var n=t.constructor;switch(e){case RSe:return Bp(t);case TSe:case ESe:return new n(+t);case MSe:return UK(t,r);case ISe:case NSe:case OSe:case PSe:case BSe:case FSe:case zSe:case $Se:case GSe:return _3(t,r);case CSe:return new n;case SSe:case LSe:return new n(t);case _Se:return WK(t);case ASe:return new n;case DSe:return jK(t)}}var TSe,ESe,CSe,SSe,_Se,ASe,LSe,DSe,RSe,MSe,ISe,NSe,OSe,PSe,BSe,FSe,zSe,$Se,GSe,QK,ZK=_(()=>{"use strict";S3();qK();HK();KK();H_();TSe="[object Boolean]",ESe="[object Date]",CSe="[object Map]",SSe="[object Number]",_Se="[object RegExp]",ASe="[object Set]",LSe="[object String]",DSe="[object Symbol]",RSe="[object ArrayBuffer]",MSe="[object DataView]",ISe="[object Float32Array]",NSe="[object Float64Array]",OSe="[object Int8Array]",PSe="[object Int16Array]",BSe="[object Int32Array]",FSe="[object Uint8Array]",zSe="[object Uint8ClampedArray]",$Se="[object Uint16Array]",GSe="[object Uint32Array]";s(VSe,"initCloneByTag");QK=VSe});function qSe(t){return Fn(t)&&Js(t)==USe}var USe,JK,eQ=_(()=>{"use strict";Td();ko();USe="[object Map]";s(qSe,"baseIsMap");JK=qSe});var tQ,WSe,rQ,nQ=_(()=>{"use strict";eQ();ud();Uy();tQ=Eo&&Eo.isMap,WSe=tQ?To(tQ):JK,rQ=WSe});function YSe(t){return Fn(t)&&Js(t)==HSe}var HSe,iQ,aQ=_(()=>{"use strict";Td();ko();HSe="[object Set]";s(YSe,"baseIsSet");iQ=YSe});var sQ,XSe,oQ,lQ=_(()=>{"use strict";aQ();ud();Uy();sQ=Eo&&Eo.isSet,XSe=sQ?To(sQ):iQ,oQ=XSe});function W5(t,e,r,n,i,a){var o,l=e&jSe,u=e&KSe,h=e&QSe;if(r&&(o=i?r(t,n,i,a):r(t)),o!==void 0)return o;if(!on(t))return t;var f=ct(t);if(f){if(o=GK(t),!l)return A3(t,o)}else{var d=Js(t),p=d==uQ||d==r8e;if(ul(t))return C3(t,l);if(d==hQ||d==cQ||p&&!i){if(o=u||p?{}:R3(t),!l)return u?MK(t,_K(o,t)):DK(t,CK(o,t))}else{if(!yn[d])return i?t:{};o=QK(t,d,l)}}a||(a=new Zl);var m=a.get(t);if(m)return m;a.set(t,o),oQ(t)?t.forEach(function(v){o.add(W5(v,e,r,v,t,a))}):rQ(t)&&t.forEach(function(v,x){o.set(x,W5(v,e,r,x,t,a))});var g=h?u?V5:dv:u?ds:kr,y=f?void 0:g(t);return _5(y||t,function(v,x){y&&(x=v,v=t[x]),tc(o,x,W5(v,e,r,x,t,a))}),o}var jSe,KSe,QSe,cQ,ZSe,JSe,e8e,t8e,uQ,r8e,n8e,i8e,hQ,a8e,s8e,o8e,l8e,c8e,u8e,h8e,f8e,d8e,p8e,m8e,g8e,y8e,v8e,x8e,b8e,yn,H5,C9=_(()=>{"use strict";$y();p9();Up();SK();AK();q_();Y_();RK();IK();w9();T9();Td();VK();ZK();j_();Dn();Vp();nQ();Ws();lQ();oc();Ih();jSe=1,KSe=2,QSe=4,cQ="[object Arguments]",ZSe="[object Array]",JSe="[object Boolean]",e8e="[object Date]",t8e="[object Error]",uQ="[object Function]",r8e="[object GeneratorFunction]",n8e="[object Map]",i8e="[object Number]",hQ="[object Object]",a8e="[object RegExp]",s8e="[object Set]",o8e="[object String]",l8e="[object Symbol]",c8e="[object WeakMap]",u8e="[object ArrayBuffer]",h8e="[object DataView]",f8e="[object Float32Array]",d8e="[object Float64Array]",p8e="[object Int8Array]",m8e="[object Int16Array]",g8e="[object Int32Array]",y8e="[object Uint8Array]",v8e="[object Uint8ClampedArray]",x8e="[object Uint16Array]",b8e="[object Uint32Array]",yn={};yn[cQ]=yn[ZSe]=yn[u8e]=yn[h8e]=yn[JSe]=yn[e8e]=yn[f8e]=yn[d8e]=yn[p8e]=yn[m8e]=yn[g8e]=yn[n8e]=yn[i8e]=yn[hQ]=yn[a8e]=yn[s8e]=yn[o8e]=yn[l8e]=yn[y8e]=yn[v8e]=yn[x8e]=yn[b8e]=!0;yn[t8e]=yn[uQ]=yn[c8e]=!1;s(W5,"baseClone");H5=W5});function w8e(t){return H5(t,k8e)}var k8e,Hr,S9=_(()=>{"use strict";C9();k8e=4;s(w8e,"clone");Hr=w8e});function C8e(t){return H5(t,T8e|E8e)}var T8e,E8e,_9,fQ=_(()=>{"use strict";C9();T8e=1,E8e=4;s(C8e,"cloneDeep");_9=C8e});function S8e(t){for(var e=-1,r=t==null?0:t.length,n=0,i=[];++e{"use strict";s(S8e,"compact");uc=S8e});function A8e(t){return this.__data__.set(t,_8e),this}var _8e,pQ,mQ=_(()=>{"use strict";_8e="__lodash_hash_undefined__";s(A8e,"setCacheAdd");pQ=A8e});function L8e(t){return this.__data__.has(t)}var gQ,yQ=_(()=>{"use strict";s(L8e,"setCacheHas");gQ=L8e});function Y5(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new ld;++e{"use strict";T3();mQ();yQ();s(Y5,"SetCache");Y5.prototype.add=Y5.prototype.push=pQ;Y5.prototype.has=gQ;fm=Y5});function D8e(t,e){for(var r=-1,n=t==null?0:t.length;++r{"use strict";s(D8e,"arraySome");j5=D8e});function R8e(t,e){return t.has(e)}var dm,K5=_(()=>{"use strict";s(R8e,"cacheHas");dm=R8e});function N8e(t,e,r,n,i,a){var o=r&M8e,l=t.length,u=e.length;if(l!=u&&!(o&&u>l))return!1;var h=a.get(t),f=a.get(e);if(h&&f)return h==e&&f==t;var d=-1,p=!0,m=r&I8e?new fm:void 0;for(a.set(t,e),a.set(e,t);++d{"use strict";X5();A9();K5();M8e=1,I8e=2;s(N8e,"equalArrays");Q5=N8e});function O8e(t){var e=-1,r=Array(t.size);return t.forEach(function(n,i){r[++e]=[i,n]}),r}var vQ,xQ=_(()=>{"use strict";s(O8e,"mapToArray");vQ=O8e});function P8e(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var pm,Z5=_(()=>{"use strict";s(P8e,"setToArray");pm=P8e});function K8e(t,e,r,n,i,a,o){switch(r){case j8e:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case X8e:return!(t.byteLength!=e.byteLength||!a(new Pp(t),new Pp(e)));case z8e:case $8e:case U8e:return bo(+t,+e);case G8e:return t.name==e.name&&t.message==e.message;case q8e:case H8e:return t==e+"";case V8e:var l=vQ;case W8e:var u=n&B8e;if(l||(l=pm),t.size!=e.size&&!u)return!1;var h=o.get(t);if(h)return h==e;n|=F8e,o.set(t,e);var f=Q5(l(t),l(e),n,i,a,o);return o.delete(t),f;case Y8e:if(D9)return D9.call(t)==D9.call(e)}return!1}var B8e,F8e,z8e,$8e,G8e,V8e,U8e,q8e,W8e,H8e,Y8e,X8e,j8e,bQ,D9,kQ,wQ=_(()=>{"use strict";sd();W_();od();L9();xQ();Z5();B8e=1,F8e=2,z8e="[object Boolean]",$8e="[object Date]",G8e="[object Error]",V8e="[object Map]",U8e="[object Number]",q8e="[object RegExp]",W8e="[object Set]",H8e="[object String]",Y8e="[object Symbol]",X8e="[object ArrayBuffer]",j8e="[object DataView]",bQ=qi?qi.prototype:void 0,D9=bQ?bQ.valueOf:void 0;s(K8e,"equalByTag");kQ=K8e});function e_e(t,e,r,n,i,a){var o=r&Q8e,l=dv(t),u=l.length,h=dv(e),f=h.length;if(u!=f&&!o)return!1;for(var d=u;d--;){var p=l[d];if(!(o?p in e:J8e.call(e,p)))return!1}var m=a.get(t),g=a.get(e);if(m&&g)return m==e&&g==t;var y=!0;a.set(t,e),a.set(e,t);for(var v=o;++d{"use strict";w9();Q8e=1,Z8e=Object.prototype,J8e=Z8e.hasOwnProperty;s(e_e,"equalObjects");TQ=e_e});function n_e(t,e,r,n,i,a){var o=ct(t),l=ct(e),u=o?SQ:Js(t),h=l?SQ:Js(e);u=u==CQ?J5:u,h=h==CQ?J5:h;var f=u==J5,d=h==J5,p=u==h;if(p&&ul(t)){if(!ul(e))return!1;o=!0,f=!1}if(p&&!f)return a||(a=new Zl),o||Rh(t)?Q5(t,e,r,n,i,a):kQ(t,e,u,r,n,i,a);if(!(r&t_e)){var m=f&&_Q.call(t,"__wrapped__"),g=d&&_Q.call(e,"__wrapped__");if(m||g){var y=m?t.value():t,v=g?e.value():e;return a||(a=new Zl),i(y,v,r,n,a)}}return p?(a||(a=new Zl),TQ(t,e,r,n,i,a)):!1}var t_e,CQ,SQ,J5,r_e,_Q,AQ,LQ=_(()=>{"use strict";$y();L9();wQ();EQ();Td();Dn();Vp();qy();t_e=1,CQ="[object Arguments]",SQ="[object Array]",J5="[object Object]",r_e=Object.prototype,_Q=r_e.hasOwnProperty;s(n_e,"baseIsEqualDeep");AQ=n_e});function DQ(t,e,r,n,i){return t===e?!0:t==null||e==null||!Fn(t)&&!Fn(e)?t!==t&&e!==e:AQ(t,e,r,n,DQ,i)}var ek,R9=_(()=>{"use strict";LQ();ko();s(DQ,"baseIsEqual");ek=DQ});function s_e(t,e,r,n){var i=r.length,a=i,o=!n;if(t==null)return!a;for(t=Object(t);i--;){var l=r[i];if(o&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++i{"use strict";$y();R9();i_e=1,a_e=2;s(s_e,"baseIsMatch");RQ=s_e});function o_e(t){return t===t&&!on(t)}var tk,M9=_(()=>{"use strict";Ws();s(o_e,"isStrictComparable");tk=o_e});function l_e(t){for(var e=kr(t),r=e.length;r--;){var n=e[r],i=t[n];e[r]=[n,i,tk(i)]}return e}var IQ,NQ=_(()=>{"use strict";M9();oc();s(l_e,"getMatchData");IQ=l_e});function c_e(t,e){return function(r){return r==null?!1:r[t]===e&&(e!==void 0||t in Object(r))}}var rk,I9=_(()=>{"use strict";s(c_e,"matchesStrictComparable");rk=c_e});function u_e(t){var e=IQ(t);return e.length==1&&e[0][2]?rk(e[0][0],e[0][1]):function(r){return r===t||RQ(r,t,e)}}var OQ,PQ=_(()=>{"use strict";MQ();NQ();I9();s(u_e,"baseMatches");OQ=u_e});function h_e(t,e){return t!=null&&e in Object(t)}var BQ,FQ=_(()=>{"use strict";s(h_e,"baseHasIn");BQ=h_e});function f_e(t,e,r){e=Fh(e,t);for(var n=-1,i=e.length,a=!1;++n{"use strict";hv();$p();Dn();Hy();M3();om();s(f_e,"hasPath");nk=f_e});function d_e(t,e){return t!=null&&nk(t,e,BQ)}var ik,O9=_(()=>{"use strict";FQ();N9();s(d_e,"hasIn");ik=d_e});function g_e(t,e){return sm(t)&&tk(e)?rk(lc(t),e):function(r){var n=dK(r,t);return n===void 0&&n===e?ik(r,t):ek(e,n,p_e|m_e)}}var p_e,m_e,zQ,$Q=_(()=>{"use strict";R9();pK();O9();M5();M9();I9();om();p_e=1,m_e=2;s(g_e,"baseMatchesProperty");zQ=g_e});function y_e(t){return function(e){return e?.[t]}}var ak,P9=_(()=>{"use strict";s(y_e,"baseProperty");ak=y_e});function v_e(t){return function(e){return zh(e,t)}}var GQ,VQ=_(()=>{"use strict";fv();s(v_e,"basePropertyDeep");GQ=v_e});function x_e(t){return sm(t)?ak(lc(t)):GQ(t)}var UQ,qQ=_(()=>{"use strict";P9();VQ();M5();om();s(x_e,"property");UQ=x_e});function b_e(t){return typeof t=="function"?t:t==null?Wi:typeof t=="object"?ct(t)?zQ(t[0],t[1]):OQ(t):UQ(t)}var tn,Ua=_(()=>{"use strict";PQ();$Q();mu();Dn();qQ();s(b_e,"baseIteratee");tn=b_e});function k_e(t,e,r,n){for(var i=-1,a=t==null?0:t.length;++i{"use strict";s(k_e,"arrayAggregator");WQ=k_e});function w_e(t,e){return t&&Op(t,e,kr)}var mm,sk=_(()=>{"use strict";E3();oc();s(w_e,"baseForOwn");mm=w_e});function T_e(t,e){return function(r,n){if(r==null)return r;if(!Hn(r))return t(r,n);for(var i=r.length,a=e?i:-1,o=Object(r);(e?a--:++a{"use strict";wo();s(T_e,"createBaseEach");YQ=T_e});var E_e,ks,Gh=_(()=>{"use strict";sk();XQ();E_e=YQ(mm),ks=E_e});function C_e(t,e,r,n){return ks(t,function(i,a,o){e(n,i,r(i),o)}),n}var jQ,KQ=_(()=>{"use strict";Gh();s(C_e,"baseAggregator");jQ=C_e});function S_e(t,e){return function(r,n){var i=ct(r)?WQ:jQ,a=e?e():{};return i(r,t,tn(n,2),a)}}var QQ,ZQ=_(()=>{"use strict";HQ();KQ();Ua();Dn();s(S_e,"createAggregator");QQ=S_e});var __e,ok,JQ=_(()=>{"use strict";xo();__e=s(function(){return Wn.Date.now()},"now"),ok=__e});var eZ,A_e,L_e,Vh,tZ=_(()=>{"use strict";qp();od();fd();Ih();eZ=Object.prototype,A_e=eZ.hasOwnProperty,L_e=rc(function(t,e){t=Object(t);var r=-1,n=e.length,i=n>2?e[2]:void 0;for(i&&Hs(e[0],e[1],i)&&(n=1);++r{"use strict";s(D_e,"arrayIncludesWith");lk=D_e});function M_e(t,e,r,n){var i=-1,a=D5,o=!0,l=t.length,u=[],h=e.length;if(!l)return u;r&&(e=bs(e,To(r))),n?(a=lk,o=!1):e.length>=R_e&&(a=dm,o=!1,e=new fm(e));e:for(;++i{"use strict";X5();g9();B9();kd();ud();K5();R_e=200;s(M_e,"baseDifference");rZ=M_e});var I_e,Uh,iZ=_(()=>{"use strict";nZ();cm();qp();I3();I_e=rc(function(t,e){return cd(t)?rZ(t,cc(e,1,cd,!0)):[]}),Uh=I_e});function N_e(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}var sa,aZ=_(()=>{"use strict";s(N_e,"last");sa=N_e});function O_e(t,e,r){var n=t==null?0:t.length;return n?(e=r||e===void 0?1:sc(e),P5(t,e<0?0:e,n)):[]}var ai,sZ=_(()=>{"use strict";v9();nm();s(O_e,"drop");ai=O_e});function P_e(t,e,r){var n=t==null?0:t.length;return n?(e=r||e===void 0?1:sc(e),e=n-e,P5(t,0,e<0?0:e)):[]}var wu,oZ=_(()=>{"use strict";v9();nm();s(P_e,"dropRight");wu=P_e});function B_e(t){return typeof t=="function"?t:Wi}var gm,ck=_(()=>{"use strict";mu();s(B_e,"castFunction");gm=B_e});function F_e(t,e){var r=ct(t)?_5:ks;return r(t,gm(e))}var be,uk=_(()=>{"use strict";p9();Gh();ck();Dn();s(F_e,"forEach");be=F_e});var lZ=_(()=>{"use strict";uk()});function z_e(t,e){for(var r=-1,n=t==null?0:t.length;++r{"use strict";s(z_e,"arrayEvery");cZ=z_e});function $_e(t,e){var r=!0;return ks(t,function(n,i,a){return r=!!e(n,i,a),r}),r}var hZ,fZ=_(()=>{"use strict";Gh();s($_e,"baseEvery");hZ=$_e});function G_e(t,e,r){var n=ct(t)?cZ:hZ;return r&&Hs(t,e,r)&&(e=void 0),n(t,tn(e,3))}var Ca,dZ=_(()=>{"use strict";uZ();fZ();Ua();Dn();fd();s(G_e,"every");Ca=G_e});function V_e(t,e){var r=[];return ks(t,function(n,i,a){e(n,i,a)&&r.push(n)}),r}var hk,F9=_(()=>{"use strict";Gh();s(V_e,"baseFilter");hk=V_e});function U_e(t,e){var r=ct(t)?um:hk;return r(t,tn(e,3))}var Nr,z9=_(()=>{"use strict";B5();F9();Ua();Dn();s(U_e,"filter");Nr=U_e});function q_e(t){return function(e,r,n){var i=Object(e);if(!Hn(e)){var a=tn(r,3);e=kr(e),r=s(function(l){return a(i[l],l,i)},"predicate")}var o=t(e,r,n);return o>-1?i[a?e[o]:o]:void 0}}var pZ,mZ=_(()=>{"use strict";Ua();wo();oc();s(q_e,"createFind");pZ=q_e});function H_e(t,e,r){var n=t==null?0:t.length;if(!n)return-1;var i=r==null?0:sc(r);return i<0&&(i=W_e(n+i,0)),A5(t,tn(e,3),i)}var W_e,gZ,yZ=_(()=>{"use strict";m9();Ua();nm();W_e=Math.max;s(H_e,"findIndex");gZ=H_e});var Y_e,qa,vZ=_(()=>{"use strict";mZ();yZ();Y_e=pZ(gZ),qa=Y_e});function X_e(t){return t&&t.length?t[0]:void 0}var Yi,xZ=_(()=>{"use strict";s(X_e,"head");Yi=X_e});var bZ=_(()=>{"use strict";xZ()});function j_e(t,e){var r=-1,n=Hn(t)?Array(t.length):[];return ks(t,function(i,a,o){n[++r]=e(i,a,o)}),n}var fk,$9=_(()=>{"use strict";Gh();wo();s(j_e,"baseMap");fk=j_e});function K_e(t,e){var r=ct(t)?bs:fk;return r(t,tn(e,3))}var Ge,ym=_(()=>{"use strict";kd();Ua();$9();Dn();s(K_e,"map");Ge=K_e});function Q_e(t,e){return cc(Ge(t,e),1)}var oa,G9=_(()=>{"use strict";cm();ym();s(Q_e,"flatMap");oa=Q_e});function Z_e(t,e){return t==null?t:Op(t,gm(e),ds)}var V9,kZ=_(()=>{"use strict";E3();ck();Ih();s(Z_e,"forIn");V9=Z_e});function J_e(t,e){return t&&mm(t,gm(e))}var U9,wZ=_(()=>{"use strict";sk();ck();s(J_e,"forOwn");U9=J_e});var eAe,tAe,rAe,q9,TZ=_(()=>{"use strict";Np();ZQ();eAe=Object.prototype,tAe=eAe.hasOwnProperty,rAe=QQ(function(t,e,r){tAe.call(t,r)?t[r].push(e):Jl(t,r,[e])}),q9=rAe});function nAe(t,e){return t>e}var EZ,CZ=_(()=>{"use strict";s(nAe,"baseGt");EZ=nAe});function sAe(t,e){return t!=null&&aAe.call(t,e)}var iAe,aAe,SZ,_Z=_(()=>{"use strict";iAe=Object.prototype,aAe=iAe.hasOwnProperty;s(sAe,"baseHas");SZ=sAe});function oAe(t,e){return t!=null&&nk(t,e,SZ)}var Ve,AZ=_(()=>{"use strict";_Z();N9();s(oAe,"has");Ve=oAe});function cAe(t){return typeof t=="string"||!ct(t)&&Fn(t)&&na(t)==lAe}var lAe,si,dk=_(()=>{"use strict";fu();Dn();ko();lAe="[object String]";s(cAe,"isString");si=cAe});function uAe(t,e){return bs(e,function(r){return t[r]})}var LZ,DZ=_(()=>{"use strict";kd();s(uAe,"baseValues");LZ=uAe});function hAe(t){return t==null?[]:LZ(t,kr(t))}var nr,W9=_(()=>{"use strict";DZ();oc();s(hAe,"values");nr=hAe});function dAe(t,e,r,n){t=Hn(t)?t:nr(t),r=r&&!n?sc(r):0;var i=t.length;return r<0&&(r=fAe(i+r,0)),si(t)?r<=i&&t.indexOf(e,r)>-1:!!i&&im(t,e,r)>-1}var fAe,Rn,RZ=_(()=>{"use strict";L5();wo();dk();nm();W9();fAe=Math.max;s(dAe,"includes");Rn=dAe});function mAe(t,e,r){var n=t==null?0:t.length;if(!n)return-1;var i=r==null?0:sc(r);return i<0&&(i=pAe(n+i,0)),im(t,e,i)}var pAe,pk,MZ=_(()=>{"use strict";L5();nm();pAe=Math.max;s(mAe,"indexOf");pk=mAe});function bAe(t){if(t==null)return!0;if(Hn(t)&&(ct(t)||typeof t=="string"||typeof t.splice=="function"||ul(t)||Rh(t)||cl(t)))return!t.length;var e=Js(t);if(e==gAe||e==yAe)return!t.size;if(ec(t))return!am(t).length;for(var r in t)if(xAe.call(t,r))return!1;return!0}var gAe,yAe,vAe,xAe,Vt,mk=_(()=>{"use strict";R5();Td();$p();Dn();wo();Vp();zp();qy();gAe="[object Map]",yAe="[object Set]",vAe=Object.prototype,xAe=vAe.hasOwnProperty;s(bAe,"isEmpty");Vt=bAe});function wAe(t){return Fn(t)&&na(t)==kAe}var kAe,IZ,NZ=_(()=>{"use strict";fu();ko();kAe="[object RegExp]";s(wAe,"baseIsRegExp");IZ=wAe});var OZ,TAe,_o,PZ=_(()=>{"use strict";NZ();ud();Uy();OZ=Eo&&Eo.isRegExp,TAe=OZ?To(OZ):IZ,_o=TAe});function EAe(t){return t===void 0}var jt,BZ=_(()=>{"use strict";s(EAe,"isUndefined");jt=EAe});function CAe(t,e){return t{"use strict";s(CAe,"baseLt");gk=CAe});function SAe(t,e){var r={};return e=tn(e,3),mm(t,function(n,i,a){Jl(r,i,e(n,i,a))}),r}var Ed,FZ=_(()=>{"use strict";Np();sk();Ua();s(SAe,"mapValues");Ed=SAe});function _Ae(t,e,r){for(var n=-1,i=t.length;++n{"use strict";bd();s(_Ae,"baseExtremum");vm=_Ae});function AAe(t){return t&&t.length?vm(t,Wi,EZ):void 0}var ws,zZ=_(()=>{"use strict";yk();CZ();mu();s(AAe,"max");ws=AAe});function LAe(t){return t&&t.length?vm(t,Wi,gk):void 0}var pl,Y9=_(()=>{"use strict";yk();H9();mu();s(LAe,"min");pl=LAe});function DAe(t,e){return t&&t.length?vm(t,tn(e,2),gk):void 0}var Cd,$Z=_(()=>{"use strict";yk();Ua();H9();s(DAe,"minBy");Cd=DAe});function MAe(t){if(typeof t!="function")throw new TypeError(RAe);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}var RAe,GZ,VZ=_(()=>{"use strict";RAe="Expected a function";s(MAe,"negate");GZ=MAe});function IAe(t,e,r,n){if(!on(t))return t;e=Fh(e,t);for(var i=-1,a=e.length,o=a-1,l=t;l!=null&&++i{"use strict";Up();hv();Hy();Ws();om();s(IAe,"baseSet");UZ=IAe});function NAe(t,e,r){for(var n=-1,i=e.length,a={};++n{"use strict";fv();qZ();hv();s(NAe,"basePickBy");vk=NAe});function OAe(t,e){if(t==null)return{};var r=bs(V5(t),function(n){return[n]});return e=tn(e),vk(t,r,function(n,i){return e(n,i[0])})}var Ts,WZ=_(()=>{"use strict";kd();Ua();X9();T9();s(OAe,"pickBy");Ts=OAe});function PAe(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t}var HZ,YZ=_(()=>{"use strict";s(PAe,"baseSortBy");HZ=PAe});function BAe(t,e){if(t!==e){var r=t!==void 0,n=t===null,i=t===t,a=Zs(t),o=e!==void 0,l=e===null,u=e===e,h=Zs(e);if(!l&&!h&&!a&&t>e||a&&o&&u&&!l&&!h||n&&o&&u||!r&&u||!i)return 1;if(!n&&!a&&!h&&t{"use strict";bd();s(BAe,"compareAscending");XZ=BAe});function FAe(t,e,r){for(var n=-1,i=t.criteria,a=e.criteria,o=i.length,l=r.length;++n=l)return u;var h=r[n];return u*(h=="desc"?-1:1)}}return t.index-e.index}var KZ,QZ=_(()=>{"use strict";jZ();s(FAe,"compareMultiple");KZ=FAe});function zAe(t,e,r){e.length?e=bs(e,function(a){return ct(a)?function(o){return zh(o,a.length===1?a[0]:a)}:a}):e=[Wi];var n=-1;e=bs(e,To(tn));var i=fk(t,function(a,o,l){var u=bs(e,function(h){return h(a)});return{criteria:u,index:++n,value:a}});return HZ(i,function(a,o){return KZ(a,o,r)})}var ZZ,JZ=_(()=>{"use strict";kd();fv();Ua();$9();YZ();ud();QZ();mu();Dn();s(zAe,"baseOrderBy");ZZ=zAe});var $Ae,eJ,tJ=_(()=>{"use strict";P9();$Ae=ak("length"),eJ=$Ae});function ZAe(t){for(var e=rJ.lastIndex=0;rJ.test(t);)++e;return e}var nJ,GAe,VAe,UAe,qAe,WAe,HAe,j9,K9,YAe,iJ,aJ,sJ,XAe,oJ,lJ,jAe,KAe,QAe,rJ,cJ,uJ=_(()=>{"use strict";nJ="\\ud800-\\udfff",GAe="\\u0300-\\u036f",VAe="\\ufe20-\\ufe2f",UAe="\\u20d0-\\u20ff",qAe=GAe+VAe+UAe,WAe="\\ufe0e\\ufe0f",HAe="["+nJ+"]",j9="["+qAe+"]",K9="\\ud83c[\\udffb-\\udfff]",YAe="(?:"+j9+"|"+K9+")",iJ="[^"+nJ+"]",aJ="(?:\\ud83c[\\udde6-\\uddff]){2}",sJ="[\\ud800-\\udbff][\\udc00-\\udfff]",XAe="\\u200d",oJ=YAe+"?",lJ="["+WAe+"]?",jAe="(?:"+XAe+"(?:"+[iJ,aJ,sJ].join("|")+")"+lJ+oJ+")*",KAe=lJ+oJ+jAe,QAe="(?:"+[iJ+j9+"?",j9,aJ,sJ,HAe].join("|")+")",rJ=RegExp(K9+"(?="+K9+")|"+QAe+KAe,"g");s(ZAe,"unicodeSize");cJ=ZAe});function JAe(t){return kK(t)?cJ(t):eJ(t)}var hJ,fJ=_(()=>{"use strict";tJ();wK();uJ();s(JAe,"stringSize");hJ=JAe});function e9e(t,e){return vk(t,e,function(r,n){return ik(t,n)})}var dJ,pJ=_(()=>{"use strict";X9();O9();s(e9e,"basePick");dJ=e9e});var t9e,Sd,mJ=_(()=>{"use strict";pJ();bK();t9e=xK(function(t,e){return t==null?{}:dJ(t,e)}),Sd=t9e});function i9e(t,e,r,n){for(var i=-1,a=n9e(r9e((e-t)/(r||1)),0),o=Array(a);a--;)o[n?a:++i]=t,t+=r;return o}var r9e,n9e,gJ,yJ=_(()=>{"use strict";r9e=Math.ceil,n9e=Math.max;s(i9e,"baseRange");gJ=i9e});function a9e(t){return function(e,r,n){return n&&typeof n!="number"&&Hs(e,r,n)&&(r=n=void 0),e=rm(e),r===void 0?(r=e,e=0):r=rm(r),n=n===void 0?e{"use strict";yJ();fd();f9();s(a9e,"createRange");vJ=a9e});var s9e,Ao,bJ=_(()=>{"use strict";xJ();s9e=vJ(),Ao=s9e});function o9e(t,e,r,n,i){return i(t,function(a,o,l){r=n?(n=!1,a):e(r,a,o,l)}),r}var kJ,wJ=_(()=>{"use strict";s(o9e,"baseReduce");kJ=o9e});function l9e(t,e,r){var n=ct(t)?TK:kJ,i=arguments.length<3;return n(t,tn(e,4),r,i,ks)}var Or,Q9=_(()=>{"use strict";EK();Gh();Ua();wJ();Dn();s(l9e,"reduce");Or=l9e});function c9e(t,e){var r=ct(t)?um:hk;return r(t,GZ(tn(e,3)))}var qh,TJ=_(()=>{"use strict";B5();F9();Ua();Dn();VZ();s(c9e,"reject");qh=c9e});function f9e(t){if(t==null)return 0;if(Hn(t))return si(t)?hJ(t):t.length;var e=Js(t);return e==u9e||e==h9e?t.size:am(t).length}var u9e,h9e,Z9,EJ=_(()=>{"use strict";R5();Td();wo();dk();fJ();u9e="[object Map]",h9e="[object Set]";s(f9e,"size");Z9=f9e});function d9e(t,e){var r;return ks(t,function(n,i,a){return r=e(n,i,a),!r}),!!r}var CJ,SJ=_(()=>{"use strict";Gh();s(d9e,"baseSome");CJ=d9e});function p9e(t,e,r){var n=ct(t)?j5:CJ;return r&&Hs(t,e,r)&&(e=void 0),n(t,tn(e,3))}var pv,_J=_(()=>{"use strict";A9();Ua();SJ();Dn();fd();s(p9e,"some");pv=p9e});var m9e,hc,AJ=_(()=>{"use strict";cm();JZ();qp();fd();m9e=rc(function(t,e){if(t==null)return[];var r=e.length;return r>1&&Hs(t,e[0],e[1])?e=[]:r>2&&Hs(e[0],e[1],e[2])&&(e=[e[0]]),ZZ(t,cc(e,1),[])}),hc=m9e});var g9e,y9e,LJ,DJ=_(()=>{"use strict";E9();d9();Z5();g9e=1/0,y9e=$h&&1/pm(new $h([,-0]))[1]==g9e?function(t){return new $h(t)}:zn,LJ=y9e});function x9e(t,e,r){var n=-1,i=D5,a=t.length,o=!0,l=[],u=l;if(r)o=!1,i=lk;else if(a>=v9e){var h=e?null:LJ(t);if(h)return pm(h);o=!1,i=dm,u=new fm}else u=e?[]:l;e:for(;++n{"use strict";X5();g9();B9();K5();DJ();Z5();v9e=200;s(x9e,"baseUniq");xm=x9e});var b9e,J9,RJ=_(()=>{"use strict";cm();qp();xk();I3();b9e=rc(function(t){return xm(cc(t,1,cd,!0))}),J9=b9e});function k9e(t){return t&&t.length?xm(t):[]}var bm,MJ=_(()=>{"use strict";xk();s(k9e,"uniq");bm=k9e});function w9e(t,e){return t&&t.length?xm(t,tn(e,2)):[]}var IJ,NJ=_(()=>{"use strict";Ua();xk();s(w9e,"uniqBy");IJ=w9e});function E9e(t){var e=++T9e;return I5(t)+e}var T9e,_d,OJ=_(()=>{"use strict";y9();T9e=0;s(E9e,"uniqueId");_d=E9e});function C9e(t,e,r){for(var n=-1,i=t.length,a=e.length,o={};++n{"use strict";s(C9e,"baseZipObject");PJ=C9e});function S9e(t,e){return PJ(t||[],e||[],tc)}var bk,FJ=_(()=>{"use strict";Up();BJ();s(S9e,"zipObject");bk=S9e});var Tt=_(()=>{"use strict";lK();S9();fQ();dQ();tA();tZ();iZ();sZ();oZ();lZ();dZ();z9();vZ();bZ();G9();O5();uk();kZ();wZ();TZ();AZ();mu();RZ();MZ();Dn();mk();Oy();Ws();PZ();dk();BZ();oc();aZ();ym();FZ();zZ();iA();Y9();$Z();d9();JQ();mJ();WZ();bJ();Q9();TJ();EJ();_J();AJ();RJ();MJ();OJ();W9();FJ();});function $J(t,e){t[e]?t[e]++:t[e]=1}function GJ(t,e){--t[e]||delete t[e]}function mv(t,e,r,n){var i=""+e,a=""+r;if(!t&&i>a){var o=i;i=a,a=o}return i+zJ+a+zJ+(jt(n)?_9e:n)}function A9e(t,e,r,n){var i=""+e,a=""+r;if(!t&&i>a){var o=i;i=a,a=o}var l={v:i,w:a};return n&&(l.name=n),l}function eL(t,e){return mv(t,e.v,e.w,e.name)}var _9e,Ad,zJ,ir,kk=_(()=>{"use strict";Tt();_9e="\0",Ad="\0",zJ="",ir=class{static{s(this,"Graph")}constructor(e={}){this._isDirected=Ve(e,"directed")?e.directed:!0,this._isMultigraph=Ve(e,"multigraph")?e.multigraph:!1,this._isCompound=Ve(e,"compound")?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=ps(void 0),this._defaultEdgeLabelFn=ps(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[Ad]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return fi(e)||(e=ps(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return kr(this._nodes)}sources(){var e=this;return Nr(this.nodes(),function(r){return Vt(e._in[r])})}sinks(){var e=this;return Nr(this.nodes(),function(r){return Vt(e._out[r])})}setNodes(e,r){var n=arguments,i=this;return be(e,function(a){n.length>1?i.setNode(a,r):i.setNode(a)}),this}setNode(e,r){return Ve(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=r),this):(this._nodes[e]=arguments.length>1?r:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=Ad,this._children[e]={},this._children[Ad][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return Ve(this._nodes,e)}removeNode(e){var r=this;if(Ve(this._nodes,e)){var n=s(function(i){r.removeEdge(r._edgeObjs[i])},"removeEdge");delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],be(this.children(e),function(i){r.setParent(i)}),delete this._children[e]),be(kr(this._in[e]),n),delete this._in[e],delete this._preds[e],be(kr(this._out[e]),n),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(jt(r))r=Ad;else{r+="";for(var n=r;!jt(n);n=this.parent(n))if(n===e)throw new Error("Setting "+r+" as parent of "+e+" would create a cycle");this.setNode(r)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=r,this._children[r][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var r=this._parent[e];if(r!==Ad)return r}}children(e){if(jt(e)&&(e=Ad),this._isCompound){var r=this._children[e];if(r)return kr(r)}else{if(e===Ad)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var r=this._preds[e];if(r)return kr(r)}successors(e){var r=this._sucs[e];if(r)return kr(r)}neighbors(e){var r=this.predecessors(e);if(r)return J9(r,this.successors(e))}isLeaf(e){var r;return this.isDirected()?r=this.successors(e):r=this.neighbors(e),r.length===0}filterNodes(e){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var n=this;be(this._nodes,function(o,l){e(l)&&r.setNode(l,o)}),be(this._edgeObjs,function(o){r.hasNode(o.v)&&r.hasNode(o.w)&&r.setEdge(o,n.edge(o))});var i={};function a(o){var l=n.parent(o);return l===void 0||r.hasNode(l)?(i[o]=l,l):l in i?i[l]:a(l)}return s(a,"findParent"),this._isCompound&&be(r.nodes(),function(o){r.setParent(o,a(o))}),r}setDefaultEdgeLabel(e){return fi(e)||(e=ps(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return nr(this._edgeObjs)}setPath(e,r){var n=this,i=arguments;return Or(e,function(a,o){return i.length>1?n.setEdge(a,o,r):n.setEdge(a,o),o}),this}setEdge(){var e,r,n,i,a=!1,o=arguments[0];typeof o=="object"&&o!==null&&"v"in o?(e=o.v,r=o.w,n=o.name,arguments.length===2&&(i=arguments[1],a=!0)):(e=o,r=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],a=!0)),e=""+e,r=""+r,jt(n)||(n=""+n);var l=mv(this._isDirected,e,r,n);if(Ve(this._edgeLabels,l))return a&&(this._edgeLabels[l]=i),this;if(!jt(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(r),this._edgeLabels[l]=a?i:this._defaultEdgeLabelFn(e,r,n);var u=A9e(this._isDirected,e,r,n);return e=u.v,r=u.w,Object.freeze(u),this._edgeObjs[l]=u,$J(this._preds[r],e),$J(this._sucs[e],r),this._in[r][l]=u,this._out[e][l]=u,this._edgeCount++,this}edge(e,r,n){var i=arguments.length===1?eL(this._isDirected,arguments[0]):mv(this._isDirected,e,r,n);return this._edgeLabels[i]}hasEdge(e,r,n){var i=arguments.length===1?eL(this._isDirected,arguments[0]):mv(this._isDirected,e,r,n);return Ve(this._edgeLabels,i)}removeEdge(e,r,n){var i=arguments.length===1?eL(this._isDirected,arguments[0]):mv(this._isDirected,e,r,n),a=this._edgeObjs[i];return a&&(e=a.v,r=a.w,delete this._edgeLabels[i],delete this._edgeObjs[i],GJ(this._preds[r],e),GJ(this._sucs[e],r),delete this._in[r][i],delete this._out[e][i],this._edgeCount--),this}inEdges(e,r){var n=this._in[e];if(n){var i=nr(n);return r?Nr(i,function(a){return a.v===r}):i}}outEdges(e,r){var n=this._out[e];if(n){var i=nr(n);return r?Nr(i,function(a){return a.w===r}):i}}nodeEdges(e,r){var n=this.inEdges(e,r);if(n)return n.concat(this.outEdges(e,r))}};ir.prototype._nodeCount=0;ir.prototype._edgeCount=0;s($J,"incrementOrInitEntry");s(GJ,"decrementOrRemoveEntry");s(mv,"edgeArgsToId");s(A9e,"edgeArgsToObj");s(eL,"edgeObjToId")});var la=_(()=>{"use strict";kk()});function VJ(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function L9e(t,e){if(t!=="_next"&&t!=="_prev")return e}var wk,UJ=_(()=>{"use strict";wk=class{static{s(this,"List")}constructor(){var e={};e._next=e._prev=e,this._sentinel=e}dequeue(){var e=this._sentinel,r=e._prev;if(r!==e)return VJ(r),r}enqueue(e){var r=this._sentinel;e._prev&&e._next&&VJ(e),e._next=r._next,r._next._prev=e,r._next=e,e._prev=r}toString(){for(var e=[],r=this._sentinel,n=r._prev;n!==r;)e.push(JSON.stringify(n,L9e)),n=n._prev;return"["+e.join(", ")+"]"}};s(VJ,"unlink");s(L9e,"filterOutLinks")});function qJ(t,e){if(t.nodeCount()<=1)return[];var r=M9e(t,e||D9e),n=R9e(r.graph,r.buckets,r.zeroIdx);return Ir(Ge(n,function(i){return t.outEdges(i.v,i.w)}))}function R9e(t,e,r){for(var n=[],i=e[e.length-1],a=e[0],o;t.nodeCount();){for(;o=a.dequeue();)tL(t,e,r,o);for(;o=i.dequeue();)tL(t,e,r,o);if(t.nodeCount()){for(var l=e.length-2;l>0;--l)if(o=e[l].dequeue(),o){n=n.concat(tL(t,e,r,o,!0));break}}}return n}function tL(t,e,r,n,i){var a=i?[]:void 0;return be(t.inEdges(n.v),function(o){var l=t.edge(o),u=t.node(o.v);i&&a.push({v:o.v,w:o.w}),u.out-=l,rL(e,r,u)}),be(t.outEdges(n.v),function(o){var l=t.edge(o),u=o.w,h=t.node(u);h.in-=l,rL(e,r,h)}),t.removeNode(n.v),a}function M9e(t,e){var r=new ir,n=0,i=0;be(t.nodes(),function(l){r.setNode(l,{v:l,in:0,out:0})}),be(t.edges(),function(l){var u=r.edge(l.v,l.w)||0,h=e(l),f=u+h;r.setEdge(l.v,l.w,f),i=Math.max(i,r.node(l.v).out+=h),n=Math.max(n,r.node(l.w).in+=h)});var a=Ao(i+n+3).map(function(){return new wk}),o=n+1;return be(r.nodes(),function(l){rL(a,o,r.node(l))}),{graph:r,buckets:a,zeroIdx:o}}function rL(t,e,r){r.out?r.in?t[r.out-r.in+e].enqueue(r):t[t.length-1].enqueue(r):t[0].enqueue(r)}var D9e,WJ=_(()=>{"use strict";Tt();la();UJ();D9e=ps(1);s(qJ,"greedyFAS");s(R9e,"doGreedyFAS");s(tL,"removeNode");s(M9e,"buildState");s(rL,"assignBucket")});function HJ(t){var e=t.graph().acyclicer==="greedy"?qJ(t,r(t)):I9e(t);be(e,function(n){var i=t.edge(n);t.removeEdge(n),i.forwardName=n.name,i.reversed=!0,t.setEdge(n.w,n.v,i,_d("rev"))});function r(n){return function(i){return n.edge(i).weight}}s(r,"weightFn")}function I9e(t){var e=[],r={},n={};function i(a){Ve(n,a)||(n[a]=!0,r[a]=!0,be(t.outEdges(a),function(o){Ve(r,o.w)?e.push(o):i(o.w)}),delete r[a])}return s(i,"dfs"),be(t.nodes(),i),e}function YJ(t){be(t.edges(),function(e){var r=t.edge(e);if(r.reversed){t.removeEdge(e);var n=r.forwardName;delete r.reversed,delete r.forwardName,t.setEdge(e.w,e.v,r,n)}})}var nL=_(()=>{"use strict";Tt();WJ();s(HJ,"run");s(I9e,"dfsFAS");s(YJ,"undo")});function fc(t,e,r,n){var i;do i=_d(n);while(t.hasNode(i));return r.dummy=e,t.setNode(i,r),i}function jJ(t){var e=new ir().setGraph(t.graph());return be(t.nodes(),function(r){e.setNode(r,t.node(r))}),be(t.edges(),function(r){var n=e.edge(r.v,r.w)||{weight:0,minlen:1},i=t.edge(r);e.setEdge(r.v,r.w,{weight:n.weight+i.weight,minlen:Math.max(n.minlen,i.minlen)})}),e}function Tk(t){var e=new ir({multigraph:t.isMultigraph()}).setGraph(t.graph());return be(t.nodes(),function(r){t.children(r).length||e.setNode(r,t.node(r))}),be(t.edges(),function(r){e.setEdge(r,t.edge(r))}),e}function iL(t,e){var r=t.x,n=t.y,i=e.x-r,a=e.y-n,o=t.width/2,l=t.height/2;if(!i&&!a)throw new Error("Not possible to find intersection inside of the rectangle");var u,h;return Math.abs(a)*o>Math.abs(i)*l?(a<0&&(l=-l),u=l*i/a,h=l):(i<0&&(o=-o),u=o,h=o*a/i),{x:r+u,y:n+h}}function Wh(t){var e=Ge(Ao(sL(t)+1),function(){return[]});return be(t.nodes(),function(r){var n=t.node(r),i=n.rank;jt(i)||(e[i][n.order]=r)}),e}function KJ(t){var e=pl(Ge(t.nodes(),function(r){return t.node(r).rank}));be(t.nodes(),function(r){var n=t.node(r);Ve(n,"rank")&&(n.rank-=e)})}function QJ(t){var e=pl(Ge(t.nodes(),function(a){return t.node(a).rank})),r=[];be(t.nodes(),function(a){var o=t.node(a).rank-e;r[o]||(r[o]=[]),r[o].push(a)});var n=0,i=t.graph().nodeRankFactor;be(r,function(a,o){jt(a)&&o%i!==0?--n:n&&be(a,function(l){t.node(l).rank+=n})})}function aL(t,e,r,n){var i={width:0,height:0};return arguments.length>=4&&(i.rank=r,i.order=n),fc(t,"border",i,e)}function sL(t){return ws(Ge(t.nodes(),function(e){var r=t.node(e).rank;if(!jt(r))return r}))}function ZJ(t,e){var r={lhs:[],rhs:[]};return be(t,function(n){e(n)?r.lhs.push(n):r.rhs.push(n)}),r}function JJ(t,e){var r=ok();try{return e()}finally{console.log(t+" time: "+(ok()-r)+"ms")}}function eee(t,e){return e()}var dc=_(()=>{"use strict";Tt();la();s(fc,"addDummyNode");s(jJ,"simplify");s(Tk,"asNonCompoundGraph");s(iL,"intersectRect");s(Wh,"buildLayerMatrix");s(KJ,"normalizeRanks");s(QJ,"removeEmptyRanks");s(aL,"addBorderNode");s(sL,"maxRank");s(ZJ,"partition");s(JJ,"time");s(eee,"notime")});function ree(t){function e(r){var n=t.children(r),i=t.node(r);if(n.length&&be(n,e),Ve(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var a=i.minRank,o=i.maxRank+1;a{"use strict";Tt();dc();s(ree,"addBorderSegments");s(tee,"addBorderNode")});function aee(t){var e=t.graph().rankdir.toLowerCase();(e==="lr"||e==="rl")&&oee(t)}function see(t){var e=t.graph().rankdir.toLowerCase();(e==="bt"||e==="rl")&&N9e(t),(e==="lr"||e==="rl")&&(O9e(t),oee(t))}function oee(t){be(t.nodes(),function(e){iee(t.node(e))}),be(t.edges(),function(e){iee(t.edge(e))})}function iee(t){var e=t.width;t.width=t.height,t.height=e}function N9e(t){be(t.nodes(),function(e){oL(t.node(e))}),be(t.edges(),function(e){var r=t.edge(e);be(r.points,oL),Ve(r,"y")&&oL(r)})}function oL(t){t.y=-t.y}function O9e(t){be(t.nodes(),function(e){lL(t.node(e))}),be(t.edges(),function(e){var r=t.edge(e);be(r.points,lL),Ve(r,"x")&&lL(r)})}function lL(t){var e=t.x;t.x=t.y,t.y=e}var lee=_(()=>{"use strict";Tt();s(aee,"adjust");s(see,"undo");s(oee,"swapWidthHeight");s(iee,"swapWidthHeightOne");s(N9e,"reverseY");s(oL,"reverseYOne");s(O9e,"swapXY");s(lL,"swapXYOne")});function cee(t){t.graph().dummyChains=[],be(t.edges(),function(e){B9e(t,e)})}function B9e(t,e){var r=e.v,n=t.node(r).rank,i=e.w,a=t.node(i).rank,o=e.name,l=t.edge(e),u=l.labelRank;if(a!==n+1){t.removeEdge(e);var h,f,d;for(d=0,++n;n{"use strict";Tt();dc();s(cee,"run");s(B9e,"normalizeEdge");s(uee,"undo")});function gv(t){var e={};function r(n){var i=t.node(n);if(Ve(e,n))return i.rank;e[n]=!0;var a=pl(Ge(t.outEdges(n),function(o){return r(o.w)-t.edge(o).minlen}));return(a===Number.POSITIVE_INFINITY||a===void 0||a===null)&&(a=0),i.rank=a}s(r,"dfs"),be(t.sources(),r)}function Ld(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}var Ek=_(()=>{"use strict";Tt();s(gv,"longestPath");s(Ld,"slack")});function Ck(t){var e=new ir({directed:!1}),r=t.nodes()[0],n=t.nodeCount();e.setNode(r,{});for(var i,a;F9e(e,t){"use strict";Tt();la();Ek();s(Ck,"feasibleTree");s(F9e,"tightTree");s(z9e,"findMinSlackEdge");s($9e,"shiftRanks")});var fee=_(()=>{"use strict"});var hL=_(()=>{"use strict"});var sPt,fL=_(()=>{"use strict";Tt();hL();sPt=ps(1)});var dee=_(()=>{"use strict";fL()});var dL=_(()=>{"use strict"});var pee=_(()=>{"use strict";dL()});var yPt,mee=_(()=>{"use strict";Tt();yPt=ps(1)});function pL(t){var e={},r={},n=[];function i(a){if(Ve(r,a))throw new yv;Ve(e,a)||(r[a]=!0,e[a]=!0,be(t.predecessors(a),i),delete r[a],n.push(a))}if(s(i,"visit"),be(t.sinks(),i),Z9(e)!==t.nodeCount())throw new yv;return n}function yv(){}var mL=_(()=>{"use strict";Tt();pL.CycleException=yv;s(pL,"topsort");s(yv,"CycleException");yv.prototype=new Error});var gee=_(()=>{"use strict";mL()});function Sk(t,e,r){ct(e)||(e=[e]);var n=(t.isDirected()?t.successors:t.neighbors).bind(t),i=[],a={};return be(e,function(o){if(!t.hasNode(o))throw new Error("Graph does not have node: "+o);yee(t,o,r==="post",a,n,i)}),i}function yee(t,e,r,n,i,a){Ve(n,e)||(n[e]=!0,r||a.push(e),be(i(e),function(o){yee(t,o,r,n,i,a)}),r&&a.push(e))}var gL=_(()=>{"use strict";Tt();s(Sk,"dfs");s(yee,"doDfs")});function yL(t,e){return Sk(t,e,"post")}var vee=_(()=>{"use strict";gL();s(yL,"postorder")});function vL(t,e){return Sk(t,e,"pre")}var xee=_(()=>{"use strict";gL();s(vL,"preorder")});var bee=_(()=>{"use strict";hL();kk()});var kee=_(()=>{"use strict";fee();fL();dee();pee();mee();gee();vee();xee();bee();dL();mL()});function Yh(t){t=jJ(t),gv(t);var e=Ck(t);bL(e),xL(e,t);for(var r,n;r=Cee(e);)n=See(e,t,r),_ee(e,t,r,n)}function xL(t,e){var r=yL(t,t.nodes());r=r.slice(0,r.length-1),be(r,function(n){W9e(t,e,n)})}function W9e(t,e,r){var n=t.node(r),i=n.parent;t.edge(r,i).cutvalue=Tee(t,e,r)}function Tee(t,e,r){var n=t.node(r),i=n.parent,a=!0,o=e.edge(r,i),l=0;return o||(a=!1,o=e.edge(i,r)),l=o.weight,be(e.nodeEdges(r),function(u){var h=u.v===r,f=h?u.w:u.v;if(f!==i){var d=h===a,p=e.edge(u).weight;if(l+=d?p:-p,Y9e(t,r,f)){var m=t.edge(r,f).cutvalue;l+=d?-m:m}}}),l}function bL(t,e){arguments.length<2&&(e=t.nodes()[0]),Eee(t,{},1,e)}function Eee(t,e,r,n,i){var a=r,o=t.node(n);return e[n]=!0,be(t.neighbors(n),function(l){Ve(e,l)||(r=Eee(t,e,r,l,n))}),o.low=a,o.lim=r++,i?o.parent=i:delete o.parent,r}function Cee(t){return qa(t.edges(),function(e){return t.edge(e).cutvalue<0})}function See(t,e,r){var n=r.v,i=r.w;e.hasEdge(n,i)||(n=r.w,i=r.v);var a=t.node(n),o=t.node(i),l=a,u=!1;a.lim>o.lim&&(l=o,u=!0);var h=Nr(e.edges(),function(f){return u===wee(t,t.node(f.v),l)&&u!==wee(t,t.node(f.w),l)});return Cd(h,function(f){return Ld(e,f)})}function _ee(t,e,r,n){var i=r.v,a=r.w;t.removeEdge(i,a),t.setEdge(n.v,n.w,{}),bL(t),xL(t,e),H9e(t,e)}function H9e(t,e){var r=qa(t.nodes(),function(i){return!e.node(i).parent}),n=vL(t,r);n=n.slice(1),be(n,function(i){var a=t.node(i).parent,o=e.edge(i,a),l=!1;o||(o=e.edge(a,i),l=!0),e.node(i).rank=e.node(a).rank+(l?o.minlen:-o.minlen)})}function Y9e(t,e,r){return t.hasEdge(e,r)}function wee(t,e,r){return r.low<=e.lim&&e.lim<=r.lim}var Aee=_(()=>{"use strict";Tt();kee();dc();uL();Ek();Yh.initLowLimValues=bL;Yh.initCutValues=xL;Yh.calcCutValue=Tee;Yh.leaveEdge=Cee;Yh.enterEdge=See;Yh.exchangeEdges=_ee;s(Yh,"networkSimplex");s(xL,"initCutValues");s(W9e,"assignCutValue");s(Tee,"calcCutValue");s(bL,"initLowLimValues");s(Eee,"dfsAssignLowLim");s(Cee,"leaveEdge");s(See,"enterEdge");s(_ee,"exchangeEdges");s(H9e,"updateRanks");s(Y9e,"isTreeEdge");s(wee,"isDescendant")});function kL(t){switch(t.graph().ranker){case"network-simplex":Lee(t);break;case"tight-tree":j9e(t);break;case"longest-path":X9e(t);break;default:Lee(t)}}function j9e(t){gv(t),Ck(t)}function Lee(t){Yh(t)}var X9e,wL=_(()=>{"use strict";uL();Aee();Ek();s(kL,"rank");X9e=gv;s(j9e,"tightTreeRanker");s(Lee,"networkSimplexRanker")});function Dee(t){var e=fc(t,"root",{},"_root"),r=K9e(t),n=ws(nr(r))-1,i=2*n+1;t.graph().nestingRoot=e,be(t.edges(),function(o){t.edge(o).minlen*=i});var a=Q9e(t)+1;be(t.children(),function(o){Ree(t,e,i,a,n,r,o)}),t.graph().nodeRankFactor=i}function Ree(t,e,r,n,i,a,o){var l=t.children(o);if(!l.length){o!==e&&t.setEdge(e,o,{weight:0,minlen:r});return}var u=aL(t,"_bt"),h=aL(t,"_bb"),f=t.node(o);t.setParent(u,o),f.borderTop=u,t.setParent(h,o),f.borderBottom=h,be(l,function(d){Ree(t,e,r,n,i,a,d);var p=t.node(d),m=p.borderTop?p.borderTop:d,g=p.borderBottom?p.borderBottom:d,y=p.borderTop?n:2*n,v=m!==g?1:i-a[o]+1;t.setEdge(u,m,{weight:y,minlen:v,nestingEdge:!0}),t.setEdge(g,h,{weight:y,minlen:v,nestingEdge:!0})}),t.parent(o)||t.setEdge(e,u,{weight:0,minlen:i+a[o]})}function K9e(t){var e={};function r(n,i){var a=t.children(n);a&&a.length&&be(a,function(o){r(o,i+1)}),e[n]=i}return s(r,"dfs"),be(t.children(),function(n){r(n,1)}),e}function Q9e(t){return Or(t.edges(),function(e,r){return e+t.edge(r).weight},0)}function Mee(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,be(t.edges(),function(r){var n=t.edge(r);n.nestingEdge&&t.removeEdge(r)})}var Iee=_(()=>{"use strict";Tt();dc();s(Dee,"run");s(Ree,"dfs");s(K9e,"treeDepths");s(Q9e,"sumWeights");s(Mee,"cleanup")});function Nee(t,e,r){var n={},i;be(r,function(a){for(var o=t.parent(a),l,u;o;){if(l=t.parent(o),l?(u=n[l],n[l]=o):(u=i,i=o),u&&u!==o){e.setEdge(u,o);return}o=l}})}var Oee=_(()=>{"use strict";Tt();s(Nee,"addSubgraphConstraints")});function Pee(t,e,r){var n=J9e(t),i=new ir({compound:!0}).setGraph({root:n}).setDefaultNodeLabel(function(a){return t.node(a)});return be(t.nodes(),function(a){var o=t.node(a),l=t.parent(a);(o.rank===e||o.minRank<=e&&e<=o.maxRank)&&(i.setNode(a),i.setParent(a,l||n),be(t[r](a),function(u){var h=u.v===a?u.w:u.v,f=i.edge(h,a),d=jt(f)?0:f.weight;i.setEdge(h,a,{weight:t.edge(u).weight+d})}),Ve(o,"minRank")&&i.setNode(a,{borderLeft:o.borderLeft[e],borderRight:o.borderRight[e]}))}),i}function J9e(t){for(var e;t.hasNode(e=_d("_root")););return e}var Bee=_(()=>{"use strict";Tt();la();s(Pee,"buildLayerGraph");s(J9e,"createRootNode")});function Fee(t,e){for(var r=0,n=1;n0;)f%2&&(d+=l[f+1]),f=f-1>>1,l[f]+=h.weight;u+=h.weight*d})),u}var zee=_(()=>{"use strict";Tt();s(Fee,"crossCount");s(eLe,"twoLayerCrossCount")});function $ee(t){var e={},r=Nr(t.nodes(),function(l){return!t.children(l).length}),n=ws(Ge(r,function(l){return t.node(l).rank})),i=Ge(Ao(n+1),function(){return[]});function a(l){if(!Ve(e,l)){e[l]=!0;var u=t.node(l);i[u.rank].push(l),be(t.successors(l),a)}}s(a,"dfs");var o=hc(r,function(l){return t.node(l).rank});return be(o,a),i}var Gee=_(()=>{"use strict";Tt();s($ee,"initOrder")});function Vee(t,e){return Ge(e,function(r){var n=t.inEdges(r);if(n.length){var i=Or(n,function(a,o){var l=t.edge(o),u=t.node(o.v);return{sum:a.sum+l.weight*u.order,weight:a.weight+l.weight}},{sum:0,weight:0});return{v:r,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:r}})}var Uee=_(()=>{"use strict";Tt();s(Vee,"barycenter")});function qee(t,e){var r={};be(t,function(i,a){var o=r[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:a};jt(i.barycenter)||(o.barycenter=i.barycenter,o.weight=i.weight)}),be(e.edges(),function(i){var a=r[i.v],o=r[i.w];!jt(a)&&!jt(o)&&(o.indegree++,a.out.push(r[i.w]))});var n=Nr(r,function(i){return!i.indegree});return tLe(n)}function tLe(t){var e=[];function r(a){return function(o){o.merged||(jt(o.barycenter)||jt(a.barycenter)||o.barycenter>=a.barycenter)&&rLe(a,o)}}s(r,"handleIn");function n(a){return function(o){o.in.push(a),--o.indegree===0&&t.push(o)}}for(s(n,"handleOut");t.length;){var i=t.pop();e.push(i),be(i.in.reverse(),r(i)),be(i.out,n(i))}return Ge(Nr(e,function(a){return!a.merged}),function(a){return Sd(a,["vs","i","barycenter","weight"])})}function rLe(t,e){var r=0,n=0;t.weight&&(r+=t.barycenter*t.weight,n+=t.weight),e.weight&&(r+=e.barycenter*e.weight,n+=e.weight),t.vs=e.vs.concat(t.vs),t.barycenter=r/n,t.weight=n,t.i=Math.min(e.i,t.i),e.merged=!0}var Wee=_(()=>{"use strict";Tt();s(qee,"resolveConflicts");s(tLe,"doResolveConflicts");s(rLe,"mergeEntries")});function Yee(t,e){var r=ZJ(t,function(f){return Ve(f,"barycenter")}),n=r.lhs,i=hc(r.rhs,function(f){return-f.i}),a=[],o=0,l=0,u=0;n.sort(nLe(!!e)),u=Hee(a,i,u),be(n,function(f){u+=f.vs.length,a.push(f.vs),o+=f.barycenter*f.weight,l+=f.weight,u=Hee(a,i,u)});var h={vs:Ir(a)};return l&&(h.barycenter=o/l,h.weight=l),h}function Hee(t,e,r){for(var n;e.length&&(n=sa(e)).i<=r;)e.pop(),t.push(n.vs),r++;return r}function nLe(t){return function(e,r){return e.barycenterr.barycenter?1:t?r.i-e.i:e.i-r.i}}var Xee=_(()=>{"use strict";Tt();dc();s(Yee,"sort");s(Hee,"consumeUnsortable");s(nLe,"compareWithBias")});function TL(t,e,r,n){var i=t.children(e),a=t.node(e),o=a?a.borderLeft:void 0,l=a?a.borderRight:void 0,u={};o&&(i=Nr(i,function(g){return g!==o&&g!==l}));var h=Vee(t,i);be(h,function(g){if(t.children(g.v).length){var y=TL(t,g.v,r,n);u[g.v]=y,Ve(y,"barycenter")&&aLe(g,y)}});var f=qee(h,r);iLe(f,u);var d=Yee(f,n);if(o&&(d.vs=Ir([o,d.vs,l]),t.predecessors(o).length)){var p=t.node(t.predecessors(o)[0]),m=t.node(t.predecessors(l)[0]);Ve(d,"barycenter")||(d.barycenter=0,d.weight=0),d.barycenter=(d.barycenter*d.weight+p.order+m.order)/(d.weight+2),d.weight+=2}return d}function iLe(t,e){be(t,function(r){r.vs=Ir(r.vs.map(function(n){return e[n]?e[n].vs:n}))})}function aLe(t,e){jt(t.barycenter)?(t.barycenter=e.barycenter,t.weight=e.weight):(t.barycenter=(t.barycenter*t.weight+e.barycenter*e.weight)/(t.weight+e.weight),t.weight+=e.weight)}var jee=_(()=>{"use strict";Tt();Uee();Wee();Xee();s(TL,"sortSubgraph");s(iLe,"expandSubgraphs");s(aLe,"mergeBarycenters")});function Zee(t){var e=sL(t),r=Kee(t,Ao(1,e+1),"inEdges"),n=Kee(t,Ao(e-1,-1,-1),"outEdges"),i=$ee(t);Qee(t,i);for(var a=Number.POSITIVE_INFINITY,o,l=0,u=0;u<4;++l,++u){sLe(l%2?r:n,l%4>=2),i=Wh(t);var h=Fee(t,i);h{"use strict";Tt();la();dc();Oee();Bee();zee();Gee();jee();s(Zee,"order");s(Kee,"buildLayerGraphs");s(sLe,"sweepLayerGraphs");s(Qee,"assignOrder")});function ete(t){var e=lLe(t);be(t.graph().dummyChains,function(r){for(var n=t.node(r),i=n.edgeObj,a=oLe(t,e,i.v,i.w),o=a.path,l=a.lca,u=0,h=o[u],f=!0;r!==i.w;){if(n=t.node(r),f){for(;(h=o[u])!==l&&t.node(h).maxRanko||l>e[u].lim));for(h=u,u=n;(u=t.parent(u))!==h;)a.push(u);return{path:i.concat(a.reverse()),lca:h}}function lLe(t){var e={},r=0;function n(i){var a=r;be(t.children(i),n),e[i]={low:a,lim:r++}}return s(n,"dfs"),be(t.children(),n),e}var tte=_(()=>{"use strict";Tt();s(ete,"parentDummyChains");s(oLe,"findPath");s(lLe,"postorder")});function cLe(t,e){var r={};function n(i,a){var o=0,l=0,u=i.length,h=sa(a);return be(a,function(f,d){var p=hLe(t,f),m=p?t.node(p).order:u;(p||f===h)&&(be(a.slice(l,d+1),function(g){be(t.predecessors(g),function(y){var v=t.node(y),x=v.order;(xh)&&rte(r,p,f)})})}s(n,"scan");function i(a,o){var l=-1,u,h=0;return be(o,function(f,d){if(t.node(f).dummy==="border"){var p=t.predecessors(f);p.length&&(u=t.node(p[0]).order,n(o,h,d,l,u),h=d,l=u)}n(o,h,o.length,u,a.length)}),o}return s(i,"visitLayer"),Or(e,i),r}function hLe(t,e){if(t.node(e).dummy)return qa(t.predecessors(e),function(r){return t.node(r).dummy})}function rte(t,e,r){if(e>r){var n=e;e=r,r=n}var i=t[e];i||(t[e]=i={}),i[r]=!0}function fLe(t,e,r){if(e>r){var n=e;e=r,r=n}return Ve(t[e],r)}function dLe(t,e,r,n){var i={},a={},o={};return be(e,function(l){be(l,function(u,h){i[u]=u,a[u]=u,o[u]=h})}),be(e,function(l){var u=-1;be(l,function(h){var f=n(h);if(f.length){f=hc(f,function(y){return o[y]});for(var d=(f.length-1)/2,p=Math.floor(d),m=Math.ceil(d);p<=m;++p){var g=f[p];a[h]===h&&u{"use strict";Tt();la();dc();s(cLe,"findType1Conflicts");s(uLe,"findType2Conflicts");s(hLe,"findOtherInnerSegmentNode");s(rte,"addConflict");s(fLe,"hasConflict");s(dLe,"verticalAlignment");s(pLe,"horizontalCompaction");s(mLe,"buildBlockGraph");s(gLe,"findSmallestWidthAlignment");s(yLe,"alignCoordinates");s(vLe,"balance");s(nte,"positionX");s(xLe,"sep");s(bLe,"width")});function ate(t){t=Tk(t),kLe(t),U9(nte(t),function(e,r){t.node(r).x=e})}function kLe(t){var e=Wh(t),r=t.graph().ranksep,n=0;be(e,function(i){var a=ws(Ge(i,function(o){return t.node(o).height}));be(i,function(o){t.node(o).y=n+a/2}),n+=a+r})}var ste=_(()=>{"use strict";Tt();dc();ite();s(ate,"position");s(kLe,"positionY")});function eo(t,e){var r=e&&e.debugTiming?JJ:eee;r("layout",function(){var n=r(" buildLayoutGraph",function(){return MLe(t)});r(" runLayout",function(){wLe(n,r)}),r(" updateInputGraph",function(){TLe(t,n)})})}function wLe(t,e){e(" makeSpaceForEdgeLabels",function(){ILe(t)}),e(" removeSelfEdges",function(){VLe(t)}),e(" acyclic",function(){HJ(t)}),e(" nestingGraph.run",function(){Dee(t)}),e(" rank",function(){kL(Tk(t))}),e(" injectEdgeLabelProxies",function(){NLe(t)}),e(" removeEmptyRanks",function(){QJ(t)}),e(" nestingGraph.cleanup",function(){Mee(t)}),e(" normalizeRanks",function(){KJ(t)}),e(" assignRankMinMax",function(){OLe(t)}),e(" removeEdgeLabelProxies",function(){PLe(t)}),e(" normalize.run",function(){cee(t)}),e(" parentDummyChains",function(){ete(t)}),e(" addBorderSegments",function(){ree(t)}),e(" order",function(){Zee(t)}),e(" insertSelfEdges",function(){ULe(t)}),e(" adjustCoordinateSystem",function(){aee(t)}),e(" position",function(){ate(t)}),e(" positionSelfEdges",function(){qLe(t)}),e(" removeBorderNodes",function(){GLe(t)}),e(" normalize.undo",function(){uee(t)}),e(" fixupEdgeLabelCoords",function(){zLe(t)}),e(" undoCoordinateSystem",function(){see(t)}),e(" translateGraph",function(){BLe(t)}),e(" assignNodeIntersects",function(){FLe(t)}),e(" reversePoints",function(){$Le(t)}),e(" acyclic.undo",function(){YJ(t)})}function TLe(t,e){be(t.nodes(),function(r){var n=t.node(r),i=e.node(r);n&&(n.x=i.x,n.y=i.y,e.children(r).length&&(n.width=i.width,n.height=i.height))}),be(t.edges(),function(r){var n=t.edge(r),i=e.edge(r);n.points=i.points,Ve(i,"x")&&(n.x=i.x,n.y=i.y)}),t.graph().width=e.graph().width,t.graph().height=e.graph().height}function MLe(t){var e=new ir({multigraph:!0,compound:!0}),r=CL(t.graph());return e.setGraph(Nh({},CLe,EL(r,ELe),Sd(r,SLe))),be(t.nodes(),function(n){var i=CL(t.node(n));e.setNode(n,Vh(EL(i,_Le),ALe)),e.setParent(n,t.parent(n))}),be(t.edges(),function(n){var i=CL(t.edge(n));e.setEdge(n,Nh({},DLe,EL(i,LLe),Sd(i,RLe)))}),e}function ILe(t){var e=t.graph();e.ranksep/=2,be(t.edges(),function(r){var n=t.edge(r);n.minlen*=2,n.labelpos.toLowerCase()!=="c"&&(e.rankdir==="TB"||e.rankdir==="BT"?n.width+=n.labeloffset:n.height+=n.labeloffset)})}function NLe(t){be(t.edges(),function(e){var r=t.edge(e);if(r.width&&r.height){var n=t.node(e.v),i=t.node(e.w),a={rank:(i.rank-n.rank)/2+n.rank,e};fc(t,"edge-proxy",a,"_ep")}})}function OLe(t){var e=0;be(t.nodes(),function(r){var n=t.node(r);n.borderTop&&(n.minRank=t.node(n.borderTop).rank,n.maxRank=t.node(n.borderBottom).rank,e=ws(e,n.maxRank))}),t.graph().maxRank=e}function PLe(t){be(t.nodes(),function(e){var r=t.node(e);r.dummy==="edge-proxy"&&(t.edge(r.e).labelRank=r.rank,t.removeNode(e))})}function BLe(t){var e=Number.POSITIVE_INFINITY,r=0,n=Number.POSITIVE_INFINITY,i=0,a=t.graph(),o=a.marginx||0,l=a.marginy||0;function u(h){var f=h.x,d=h.y,p=h.width,m=h.height;e=Math.min(e,f-p/2),r=Math.max(r,f+p/2),n=Math.min(n,d-m/2),i=Math.max(i,d+m/2)}s(u,"getExtremes"),be(t.nodes(),function(h){u(t.node(h))}),be(t.edges(),function(h){var f=t.edge(h);Ve(f,"x")&&u(f)}),e-=o,n-=l,be(t.nodes(),function(h){var f=t.node(h);f.x-=e,f.y-=n}),be(t.edges(),function(h){var f=t.edge(h);be(f.points,function(d){d.x-=e,d.y-=n}),Ve(f,"x")&&(f.x-=e),Ve(f,"y")&&(f.y-=n)}),a.width=r-e+o,a.height=i-n+l}function FLe(t){be(t.edges(),function(e){var r=t.edge(e),n=t.node(e.v),i=t.node(e.w),a,o;r.points?(a=r.points[0],o=r.points[r.points.length-1]):(r.points=[],a=i,o=n),r.points.unshift(iL(n,a)),r.points.push(iL(i,o))})}function zLe(t){be(t.edges(),function(e){var r=t.edge(e);if(Ve(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 $Le(t){be(t.edges(),function(e){var r=t.edge(e);r.reversed&&r.points.reverse()})}function GLe(t){be(t.nodes(),function(e){if(t.children(e).length){var r=t.node(e),n=t.node(r.borderTop),i=t.node(r.borderBottom),a=t.node(sa(r.borderLeft)),o=t.node(sa(r.borderRight));r.width=Math.abs(o.x-a.x),r.height=Math.abs(i.y-n.y),r.x=a.x+r.width/2,r.y=n.y+r.height/2}}),be(t.nodes(),function(e){t.node(e).dummy==="border"&&t.removeNode(e)})}function VLe(t){be(t.edges(),function(e){if(e.v===e.w){var r=t.node(e.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e,label:t.edge(e)}),t.removeEdge(e)}})}function ULe(t){var e=Wh(t);be(e,function(r){var n=0;be(r,function(i,a){var o=t.node(i);o.order=a+n,be(o.selfEdges,function(l){fc(t,"selfedge",{width:l.label.width,height:l.label.height,rank:o.rank,order:a+ ++n,e:l.e,label:l.label},"_se")}),delete o.selfEdges})})}function qLe(t){be(t.nodes(),function(e){var r=t.node(e);if(r.dummy==="selfedge"){var n=t.node(r.e.v),i=n.x+n.width/2,a=n.y,o=r.x-i,l=n.height/2;t.setEdge(r.e,r.label),t.removeNode(e),r.label.points=[{x:i+2*o/3,y:a-l},{x:i+5*o/6,y:a-l},{x:i+o,y:a},{x:i+5*o/6,y:a+l},{x:i+2*o/3,y:a+l}],r.label.x=r.x,r.label.y=r.y}})}function EL(t,e){return Ed(Sd(t,e),Number)}function CL(t){var e={};return be(t,function(r,n){e[n.toLowerCase()]=r}),e}var ELe,CLe,SLe,_Le,ALe,LLe,DLe,RLe,ote=_(()=>{"use strict";Tt();la();nee();lee();nL();cL();wL();Iee();Jee();tte();ste();dc();s(eo,"layout");s(wLe,"runLayout");s(TLe,"updateInputGraph");ELe=["nodesep","edgesep","ranksep","marginx","marginy"],CLe={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},SLe=["acyclicer","ranker","rankdir","align"],_Le=["width","height"],ALe={width:0,height:0},LLe=["minlen","weight","width","height","labeloffset"],DLe={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},RLe=["labelpos"];s(MLe,"buildLayoutGraph");s(ILe,"makeSpaceForEdgeLabels");s(NLe,"injectEdgeLabelProxies");s(OLe,"assignRankMinMax");s(PLe,"removeEdgeLabelProxies");s(BLe,"translateGraph");s(FLe,"assignNodeIntersects");s(zLe,"fixupEdgeLabelCoords");s($Le,"reversePointsForReversedEdges");s(GLe,"removeBorderNodes");s(VLe,"removeSelfEdges");s(ULe,"insertSelfEdges");s(qLe,"positionSelfEdges");s(EL,"selectNumberAttrs");s(CL,"canonicalize")});var Dd=_(()=>{"use strict";nL();ote();cL();wL()});function Mn(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:WLe(t),edges:HLe(t)};return jt(t.graph())||(e.value=Hr(t.graph())),e}function WLe(t){return Ge(t.nodes(),function(e){var r=t.node(e),n=t.parent(e),i={v:e};return jt(r)||(i.value=r),jt(n)||(i.parent=n),i})}function HLe(t){return Ge(t.edges(),function(e){var r=t.edge(e),n={v:e.v,w:e.w};return jt(e.name)||(n.name=e.name),jt(r)||(n.value=r),n})}var vv=_(()=>{"use strict";Tt();kk();s(Mn,"write");s(WLe,"writeNodes");s(HLe,"writeEdges")});var Yt,Rd,lte,cte,Lk,YLe,ute,hte,XLe,km,Ak,fte,dte,pte,mte,gte=_(()=>{"use strict";it();la();vv();Yt=new Map,Rd=new Map,lte=new Map,cte=s(()=>{Rd.clear(),lte.clear(),Yt.clear()},"clear"),Lk=s((t,e)=>{let r=Rd.get(e)||[];return V.trace("In isDescendant",e," ",t," = ",r.includes(t)),r.includes(t)},"isDescendant"),YLe=s((t,e)=>{let r=Rd.get(e)||[];return V.info("Descendants of ",e," is ",r),V.info("Edge is ",t),t.v===e||t.w===e?!1:r?r.includes(t.v)||Lk(t.v,e)||Lk(t.w,e)||r.includes(t.w):(V.debug("Tilt, ",e,",not in descendants"),!1)},"edgeInCluster"),ute=s((t,e,r,n)=>{V.warn("Copying children of ",t,"root",n,"data",e.node(t),n);let i=e.children(t)||[];t!==n&&i.push(t),V.warn("Copying (nodes) clusterId",t,"nodes",i),i.forEach(a=>{if(e.children(a).length>0)ute(a,e,r,n);else{let o=e.node(a);V.info("cp ",a," to ",n," with parent ",t),r.setNode(a,o),n!==e.parent(a)&&(V.warn("Setting parent",a,e.parent(a)),r.setParent(a,e.parent(a))),t!==n&&a!==t?(V.debug("Setting parent",a,t),r.setParent(a,t)):(V.info("In copy ",t,"root",n,"data",e.node(t),n),V.debug("Not Setting parent for node=",a,"cluster!==rootId",t!==n,"node!==clusterId",a!==t));let l=e.edges(a);V.debug("Copying Edges",l),l.forEach(u=>{V.info("Edge",u);let h=e.edge(u.v,u.w,u.name);V.info("Edge data",h,n);try{YLe(u,n)?(V.info("Copying as ",u.v,u.w,h,u.name),r.setEdge(u.v,u.w,h,u.name),V.info("newGraph edges ",r.edges(),r.edge(r.edges()[0]))):V.info("Skipping copy of edge ",u.v,"-->",u.w," rootId: ",n," clusterId:",t)}catch(f){V.error(f)}})}V.debug("Removing node",a),e.removeNode(a)})},"copy"),hte=s((t,e)=>{let r=e.children(t),n=[...r];for(let i of r)lte.set(i,t),n=[...n,...hte(i,e)];return n},"extractDescendants"),XLe=s((t,e,r)=>{let n=t.edges().filter(u=>u.v===e||u.w===e),i=t.edges().filter(u=>u.v===r||u.w===r),a=n.map(u=>({v:u.v===e?r:u.v,w:u.w===e?e:u.w})),o=i.map(u=>({v:u.v,w:u.w}));return a.filter(u=>o.some(h=>u.v===h.v&&u.w===h.w))},"findCommonEdges"),km=s((t,e,r)=>{let n=e.children(t);if(V.trace("Searching children of id ",t,n),n.length<1)return t;let i;for(let a of n){let o=km(a,e,r),l=XLe(e,r,o);if(o)if(l.length>0)i=o;else return o}return i},"findNonClusterChild"),Ak=s(t=>!Yt.has(t)||!Yt.get(t).externalConnections?t:Yt.has(t)?Yt.get(t).id:t,"getAnchorId"),fte=s((t,e)=>{if(!t||e>10){V.debug("Opting out, no graph ");return}else V.debug("Opting in, graph ");t.nodes().forEach(function(r){t.children(r).length>0&&(V.warn("Cluster identified",r," Replacement id in edges: ",km(r,t,r)),Rd.set(r,hte(r,t)),Yt.set(r,{id:km(r,t,r),clusterData:t.node(r)}))}),t.nodes().forEach(function(r){let n=t.children(r),i=t.edges();n.length>0?(V.debug("Cluster identified",r,Rd),i.forEach(a=>{let o=Lk(a.v,r),l=Lk(a.w,r);o^l&&(V.warn("Edge: ",a," leaves cluster ",r),V.warn("Descendants of XXX ",r,": ",Rd.get(r)),Yt.get(r).externalConnections=!0)})):V.debug("Not a cluster ",r,Rd)});for(let r of Yt.keys()){let n=Yt.get(r).id,i=t.parent(n);i!==r&&Yt.has(i)&&!Yt.get(i).externalConnections&&(Yt.get(r).id=i)}t.edges().forEach(function(r){let n=t.edge(r);V.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(r)),V.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(t.edge(r)));let i=r.v,a=r.w;if(V.warn("Fix XXX",Yt,"ids:",r.v,r.w,"Translating: ",Yt.get(r.v)," --- ",Yt.get(r.w)),Yt.get(r.v)&&Yt.get(r.w)&&Yt.get(r.v)===Yt.get(r.w)){V.warn("Fixing and trying link to self - removing XXX",r.v,r.w,r.name),V.warn("Fixing and trying - removing XXX",r.v,r.w,r.name),i=Ak(r.v),a=Ak(r.w),t.removeEdge(r.v,r.w,r.name);let o=r.w+"---"+r.v+"---1",l=r.w+"---"+r.v+"---2";t.setNode(o,{domId:o,id:o,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),t.setNode(l,{domId:l,id:l,labelStyle:"",padding:0,shape:"labelRect",style:"",width:10,height:10});let u=structuredClone(n),h=structuredClone(n),f=structuredClone(n);u.label="",u.arrowTypeEnd="none",u.id=r.name+"-cyclic-special-1",h.arrowTypeEnd="none",h.id=r.name+"-cyclic-special-mid",f.label="",u.fromCluster=r.v,f.toCluster=r.v,f.id=r.name+"-cyclic-special-2",t.setEdge(i,o,u,r.name+"-cyclic-special-0"),t.setEdge(o,l,h,r.name+"-cyclic-special-1"),t.setEdge(l,a,f,r.name+"-cyclic-special-2")}else if(Yt.get(r.v)||Yt.get(r.w)){if(V.warn("Fixing and trying - removing XXX",r.v,r.w,r.name),i=Ak(r.v),a=Ak(r.w),t.removeEdge(r.v,r.w,r.name),i!==r.v){let o=t.parent(i);Yt.get(o).externalConnections=!0,n.fromCluster=r.v}if(a!==r.w){let o=t.parent(a);Yt.get(o).externalConnections=!0,n.toCluster=r.w}V.warn("Fix Replacing with XXX",i,a,r.name),t.setEdge(i,a,n,r.name)}}),V.warn("Adjusted Graph",Mn(t)),dte(t,0),V.trace(Yt)},"adjustClustersAndEdges"),dte=s((t,e)=>{if(V.warn("extractor - ",e,Mn(t),t.children("D")),e>10){V.error("Bailing out");return}let r=t.nodes(),n=!1;for(let i of r){let a=t.children(i);n=n||a.length>0}if(!n){V.debug("Done, no node has children",t.nodes());return}V.debug("Nodes = ",r,e);for(let i of r)if(V.debug("Extracting node",i,Yt,Yt.has(i)&&!Yt.get(i).externalConnections,!t.parent(i),t.node(i),t.children("D")," Depth ",e),!Yt.has(i))V.debug("Not a cluster",i,e);else if(!Yt.get(i).externalConnections&&t.children(i)&&t.children(i).length>0){V.warn("Cluster without external connections, without a parent and with children",i,e);let o=t.graph().rankdir==="TB"?"LR":"TB";Yt.get(i)?.clusterData?.dir&&(o=Yt.get(i).clusterData.dir,V.warn("Fixing dir",Yt.get(i).clusterData.dir,o));let l=new ir({multigraph:!0,compound:!0}).setGraph({rankdir:o,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});V.warn("Old graph before copy",Mn(t)),ute(i,t,l,i),t.setNode(i,{clusterNode:!0,id:i,clusterData:Yt.get(i).clusterData,label:Yt.get(i).label,graph:l}),V.warn("New graph after copy node: (",i,")",Mn(l)),V.debug("Old graph after copy",Mn(t))}else V.warn("Cluster ** ",i," **not meeting the criteria !externalConnections:",!Yt.get(i).externalConnections," no parent: ",!t.parent(i)," children ",t.children(i)&&t.children(i).length>0,t.children("D"),e),V.debug(Yt);r=t.nodes(),V.warn("New list of nodes",r);for(let i of r){let a=t.node(i);V.warn(" Now next level",i,a),a.clusterNode&&dte(a.graph,e+1)}},"extractor"),pte=s((t,e)=>{if(e.length===0)return[];let r=Object.assign([],e);return e.forEach(n=>{let i=t.children(n),a=pte(t,i);r=[...r,...a]}),r},"sorter"),mte=s(t=>pte(t,t.children()),"sortNodesByHierarchy")});var vte={};ur(vte,{render:()=>jLe});var yte,jLe,xte=_(()=>{"use strict";Dd();vv();la();o9();Xn();gte();h9();i9();s9();it();gd();gt();yte=s(async(t,e,r,n,i,a)=>{V.info("Graph in recursive render: XXX",Mn(e),i);let o=e.graph().rankdir;V.trace("Dir in recursive render - dir:",o);let l=t.insert("g").attr("class","root");e.nodes()?V.info("Recursive render XXX",e.nodes()):V.info("No nodes found for",e),e.edges().length>0&&V.info("Recursive edges",e.edge(e.edges()[0]));let u=l.insert("g").attr("class","clusters"),h=l.insert("g").attr("class","edgePaths"),f=l.insert("g").attr("class","edgeLabels"),d=l.insert("g").attr("class","nodes");await Promise.all(e.nodes().map(async function(y){let v=e.node(y);if(i!==void 0){let x=JSON.parse(JSON.stringify(i.clusterData));V.trace(`Setting data for parent cluster XXX
Node.id = `,y,`
data=`,x.height,`
Parent cluster`,i.height),e.setNode(i.id,x),e.parent(y)||(V.trace("Setting parent",y,i.id),e.setParent(y,i.id,x))}if(V.info("(Insert) Node XXX"+y+": "+JSON.stringify(e.node(y))),v?.clusterNode){V.info("Cluster identified XBX",y,v.width,e.node(y));let{ranksep:x,nodesep:b}=e.graph();v.graph.setGraph({...v.graph.graph(),ranksep:x+25,nodesep:b});let k=await yte(d,v.graph,r,n,e.node(y),a),A=k.elem;er(v,A),v.diff=k.diff||0,V.info("New compound node after recursive render XAX",y,"width",v.width,"height",v.height),Fj(A,v)}else e.children(y).length>0?(V.info("Cluster - the non recursive path XBX",y,v.id,v,v.width,"Graph:",e),V.info(km(v.id,e)),Yt.set(v.id,{id:km(v.id,e),node:v})):(V.trace("Node - the non recursive path XAX",y,v.id,v),await C5(d,e.node(y),o))})),await s(async()=>{let y=e.edges().map(async function(v){let x=e.edge(v.v,v.w,v.name);V.info("Edge "+v.v+" -> "+v.w+": "+JSON.stringify(v)),V.info("Edge "+v.v+" -> "+v.w+": ",v," ",JSON.stringify(e.edge(v))),V.info("Fix",Yt,"ids:",v.v,v.w,"Translating: ",Yt.get(v.v),Yt.get(v.w)),await b5(f,x)});await Promise.all(y)},"processEdges")(),V.info("Graph before layout:",JSON.stringify(Mn(e))),V.info("############################################# XXX"),V.info("### Layout ### XXX"),V.info("############################################# XXX"),eo(e),V.info("Graph after layout:",JSON.stringify(Mn(e)));let m=0,{subGraphTitleTotalMargin:g}=Ks(a);return await Promise.all(mte(e).map(async function(y){let v=e.node(y);if(V.info("Position XBX => "+y+": ("+v.x,","+v.y,") width: ",v.width," height: ",v.height),v?.clusterNode)v.y+=g,V.info("A tainted cluster node XBX1",y,v.id,v.width,v.height,v.x,v.y,e.parent(y)),Yt.get(v.id).node=v,u9(v);else if(e.children(y).length>0){V.info("A pure cluster node XBX1",y,v.id,v.x,v.y,v.width,v.height,e.parent(y)),v.height+=g,e.node(v.parentId);let x=v?.padding/2||0,b=v?.labelBBox?.height||0,k=b-x||0;V.debug("OffsetY",k,"labelHeight",b,"halfPadding",x),await p5(u,v),Yt.get(v.id).node=v}else{let x=e.node(v.parentId);v.y+=g/2,V.info("A regular node XBX1 - using the padding",v.id,"parent",v.parentId,v.width,v.height,v.x,v.y,"offsetY",v.offsetY,"parent",x,x?.offsetY,v),u9(v)}})),e.edges().forEach(function(y){let v=e.edge(y);V.info("Edge "+y.v+" -> "+y.w+": "+JSON.stringify(v),v),v.points.forEach(A=>A.y+=g/2);let x=e.node(y.v);var b=e.node(y.w);let k=w5(h,v,Yt,r,x,b,n);k5(v,k)}),e.nodes().forEach(function(y){let v=e.node(y);V.info(y,v.type,v.diff),v.isGroup&&(m=v.diff)}),V.warn("Returning from recursive render XAX",l,m),{elem:l,diff:m}},"recursiveRender"),jLe=s(async(t,e)=>{let r=new ir({multigraph:!0,compound:!0}).setGraph({rankdir:t.direction,nodesep:t.config?.nodeSpacing||t.config?.flowchart?.nodeSpacing||t.nodeSpacing,ranksep:t.config?.rankSpacing||t.config?.flowchart?.rankSpacing||t.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),n=e.select("g");T5(n,t.markers,t.type,t.diagramId),zj(),FX(),MX(),cte(),t.nodes.forEach(a=>{r.setNode(a.id,{...a}),a.parentId&&r.setParent(a.id,a.parentId)}),V.debug("Edges:",t.edges),t.edges.forEach(a=>{r.setEdge(a.start,a.end,{...a},a.id)}),V.warn("Graph at first:",JSON.stringify(Mn(r))),fte(r),V.warn("Graph after:",JSON.stringify(Mn(r)));let i=le();await yte(n,r,t.type,t.diagramId,void 0,i)},"render")});var xv,SL,KLe,Dk,bte,Rk=_(()=>{"use strict";Gj();it();xv={},SL=s(t=>{for(let e of t)xv[e.name]=e},"registerLayoutLoaders"),KLe=s(()=>{SL([{name:"dagre",loader:s(async()=>await Promise.resolve().then(()=>(xte(),vte)),"loader")}])},"registerDefaultLayoutLoaders");KLe();Dk=s(async(t,e)=>{if(!(t.layoutAlgorithm in xv))throw new Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`);let r=xv[t.layoutAlgorithm];return(await r.loader()).render(t,e,$j,{algorithm:r.algorithm})},"render"),bte=s((t="",{fallback:e="dagre"}={})=>{if(t in xv)return t;if(e in xv)return V.warn(`Layout algorithm ${t} is not registered. Using ${e} as fallback.`),e;throw new Error(`Both layout algorithms ${t} and ${e} are not registered.`)},"getRegisteredLayoutAlgorithm")});var Mk,QLe,ZLe,_L=_(()=>{"use strict";Un();it();Mk=s((t,e,r,n)=>{t.attr("class",r);let{width:i,height:a,x:o,y:l}=QLe(t,e);xr(t,a,i,n);let u=ZLe(o,l,i,a,e);t.attr("viewBox",u),V.debug(`viewBox configured: ${u} with padding: ${e}`)},"setupViewPortForSVG"),QLe=s((t,e)=>{let r=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:r.width+e*2,height:r.height+e*2,x:r.x,y:r.y}},"calculateDimensionsWithPadding"),ZLe=s((t,e,r,n,i)=>`${t-i} ${e-i} ${r} ${n}`,"createViewBox")});var JLe,eDe,kte,wte=_(()=>{"use strict";Xt();gt();it();zA();Rk();_L();pr();wA();JLe=s(function(t,e){return e.db.getClasses()},"getClasses"),eDe=s(async function(t,e,r,n){V.info("REF0:"),V.info("Drawing state diagram (v2)",e);let{securityLevel:i,flowchart:a,layout:o}=le(),l;i==="sandbox"&&(l=Me("#i"+e));let u=i==="sandbox"?l.nodes()[0].contentDocument:document;V.debug("Before getData: ");let h=n.db.getData();V.debug("Data: ",h);let f=n5(e,i),d=kA();h.type=n.type,h.layoutAlgorithm=bte(o),h.layoutAlgorithm==="dagre"&&o==="elk"&&V.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."),h.direction=d,h.nodeSpacing=a?.nodeSpacing||50,h.rankSpacing=a?.rankSpacing||50,h.markers=["point","circle","cross"],h.diagramId=e,V.debug("REF1:",h),await Dk(h,f);let p=h.config.flowchart?.diagramPadding??8;dt.insertTitle(f,"flowchartTitleText",a?.titleTopMargin||0,n.db.getDiagramTitle()),Mk(f,p,"flowchart",a?.useMaxWidth||!1);for(let m of h.nodes){let g=Me(`#${e} [id="${m.id}"]`);if(!g||!m.link)continue;let y=u.createElementNS("http://www.w3.org/2000/svg","a");y.setAttributeNS("http://www.w3.org/2000/svg","class",m.cssClasses),y.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),i==="sandbox"?y.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):m.linkTarget&&y.setAttributeNS("http://www.w3.org/2000/svg","target",m.linkTarget);let v=g.insert(function(){return y},":first-child"),x=g.select(".label-container");x&&v.append(function(){return x.node()});let b=g.select(".label");b&&v.append(function(){return b.node()})}},"draw"),kte={getClasses:JLe,draw:eDe}});var AL,Tte,Ete=_(()=>{"use strict";AL=function(){var t=s(function(ts,at,xt,Ft){for(xt=xt||{},Ft=ts.length;Ft--;xt[ts[Ft]]=at);return xt},"o"),e=[1,4],r=[1,3],n=[1,5],i=[1,8,9,10,11,27,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],a=[2,2],o=[1,13],l=[1,14],u=[1,15],h=[1,16],f=[1,23],d=[1,25],p=[1,26],m=[1,27],g=[1,49],y=[1,48],v=[1,29],x=[1,30],b=[1,31],k=[1,32],A=[1,33],w=[1,44],T=[1,46],C=[1,42],E=[1,47],S=[1,43],R=[1,50],D=[1,45],L=[1,51],P=[1,52],M=[1,34],F=[1,35],I=[1,36],O=[1,37],z=[1,57],N=[1,8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],U=[1,61],$=[1,60],W=[1,62],ee=[8,9,11,73,75],te=[1,88],ce=[1,93],Z=[1,92],fe=[1,89],ne=[1,85],H=[1,91],Q=[1,87],K=[1,94],re=[1,90],ie=[1,95],ye=[1,86],j=[8,9,10,11,73,75],De=[8,9,10,11,44,73,75],oe=[8,9,10,11,29,42,44,46,48,50,52,54,56,58,61,63,65,66,68,73,75,86,99,102,103,106,108,111,112,113],Re=[8,9,11,42,58,73,75,86,99,102,103,106,108,111,112,113],Pe=[42,58,86,99,102,103,106,108,111,112,113],Se=[1,121],Ue=[1,120],Oe=[1,128],_e=[1,142],he=[1,143],q=[1,144],se=[1,145],ue=[1,130],X=[1,132],ae=[1,136],pe=[1,137],de=[1,138],Ie=[1,139],Ne=[1,140],Be=[1,141],ze=[1,146],qe=[1,147],Fe=[1,126],we=[1,127],Je=[1,134],We=[1,129],or=[1,133],Cr=[1,131],Ut=[8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],ar=[1,149],ut=[8,9,11],Rt=[8,9,10,11,14,42,58,86,102,103,106,108,111,112,113],Qe=[1,169],Dt=[1,165],qt=[1,166],yt=[1,170],Et=[1,167],pt=[1,168],Wt=[75,113,116],ot=[8,9,10,11,12,14,27,29,32,42,58,73,81,82,83,84,85,86,87,102,106,108,111,112,113],fr=[10,103],vt=[31,47,49,51,53,55,60,62,64,65,67,69,113,114,115],Bt=[1,235],Sr=[1,233],zi=[1,237],rr=[1,231],Vn=[1,232],Tn=[1,234],Ki=[1,236],ci=[1,238],Pa=[1,255],En=[8,9,11,103],ti=[8,9,10,11,58,81,102,103,106,107,108,109],co={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,link:39,node:40,styledVertex:41,AMP:42,vertex:43,STYLE_SEPARATOR:44,idString:45,DOUBLECIRCLESTART:46,DOUBLECIRCLEEND:47,PS:48,PE:49,"(-":50,"-)":51,STADIUMSTART:52,STADIUMEND:53,SUBROUTINESTART:54,SUBROUTINEEND:55,VERTEX_WITH_PROPS_START:56,"NODE_STRING[field]":57,COLON:58,"NODE_STRING[value]":59,PIPE:60,CYLINDERSTART:61,CYLINDEREND:62,DIAMOND_START:63,DIAMOND_STOP:64,TAGEND:65,TRAPSTART:66,TRAPEND:67,INVTRAPSTART:68,INVTRAPEND:69,linkStatement:70,arrowText:71,TESTSTR:72,START_LINK:73,edgeText:74,LINK:75,edgeTextToken:76,STR:77,MD_STR:78,textToken:79,keywords:80,STYLE:81,LINKSTYLE:82,CLASSDEF:83,CLASS:84,CLICK:85,DOWN:86,UP:87,textNoTagsToken:88,stylesOpt:89,"idString[vertex]":90,"idString[class]":91,CALLBACKNAME:92,CALLBACKARGS:93,HREF:94,LINK_TARGET:95,"STR[link]":96,"STR[tooltip]":97,alphaNum:98,DEFAULT:99,numList:100,INTERPOLATE:101,NUM:102,COMMA:103,style:104,styleComponent:105,NODE_STRING:106,UNIT:107,BRKT:108,PCT:109,idStringToken:110,MINUS:111,MULT:112,UNICODE_TEXT:113,TEXT:114,TAGSTART:115,EDGE_TEXT:116,alphaNumToken:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",42:"AMP",44:"STYLE_SEPARATOR",46:"DOUBLECIRCLESTART",47:"DOUBLECIRCLEEND",48:"PS",49:"PE",50:"(-",51:"-)",52:"STADIUMSTART",53:"STADIUMEND",54:"SUBROUTINESTART",55:"SUBROUTINEEND",56:"VERTEX_WITH_PROPS_START",57:"NODE_STRING[field]",58:"COLON",59:"NODE_STRING[value]",60:"PIPE",61:"CYLINDERSTART",62:"CYLINDEREND",63:"DIAMOND_START",64:"DIAMOND_STOP",65:"TAGEND",66:"TRAPSTART",67:"TRAPEND",68:"INVTRAPSTART",69:"INVTRAPEND",72:"TESTSTR",73:"START_LINK",75:"LINK",77:"STR",78:"MD_STR",81:"STYLE",82:"LINKSTYLE",83:"CLASSDEF",84:"CLASS",85:"CLICK",86:"DOWN",87:"UP",90:"idString[vertex]",91:"idString[class]",92:"CALLBACKNAME",93:"CALLBACKARGS",94:"HREF",95:"LINK_TARGET",96:"STR[link]",97:"STR[tooltip]",99:"DEFAULT",101:"INTERPOLATE",102:"NUM",103:"COMMA",106:"NODE_STRING",107:"UNIT",108:"BRKT",109:"PCT",111:"MINUS",112:"MULT",113:"UNICODE_TEXT",114:"TEXT",115:"TAGSTART",116:"EDGE_TEXT",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"direction_lr"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[20,3],[20,4],[20,2],[20,1],[40,1],[40,5],[41,1],[41,3],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,8],[43,4],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,4],[43,4],[43,1],[39,2],[39,3],[39,3],[39,1],[39,3],[74,1],[74,2],[74,1],[74,1],[70,1],[71,3],[30,1],[30,2],[30,1],[30,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[100,1],[100,3],[89,1],[89,3],[104,1],[104,2],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[79,1],[79,1],[79,1],[79,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[76,1],[76,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[45,1],[45,2],[98,1],[98,2],[33,1],[33,1],[33,1],[33,1]],performAction:s(function(at,xt,Ft,Ke,Zt,me,Fc){var xe=me.length-1;switch(Zt){case 2:this.$=[];break;case 3:(!Array.isArray(me[xe])||me[xe].length>0)&&me[xe-1].push(me[xe]),this.$=me[xe-1];break;case 4:case 176:this.$=me[xe];break;case 11:Ke.setDirection("TB"),this.$="TB";break;case 12:Ke.setDirection(me[xe-1]),this.$=me[xe-1];break;case 27:this.$=me[xe-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=Ke.addSubGraph(me[xe-6],me[xe-1],me[xe-4]);break;case 34:this.$=Ke.addSubGraph(me[xe-3],me[xe-1],me[xe-3]);break;case 35:this.$=Ke.addSubGraph(void 0,me[xe-1],void 0);break;case 37:this.$=me[xe].trim(),Ke.setAccTitle(this.$);break;case 38:case 39:this.$=me[xe].trim(),Ke.setAccDescription(this.$);break;case 43:Ke.addLink(me[xe-2].stmt,me[xe],me[xe-1]),this.$={stmt:me[xe],nodes:me[xe].concat(me[xe-2].nodes)};break;case 44:Ke.addLink(me[xe-3].stmt,me[xe-1],me[xe-2]),this.$={stmt:me[xe-1],nodes:me[xe-1].concat(me[xe-3].nodes)};break;case 45:this.$={stmt:me[xe-1],nodes:me[xe-1]};break;case 46:this.$={stmt:me[xe],nodes:me[xe]};break;case 47:this.$=[me[xe]];break;case 48:this.$=me[xe-4].concat(me[xe]);break;case 49:this.$=me[xe];break;case 50:this.$=me[xe-2],Ke.setClass(me[xe-2],me[xe]);break;case 51:this.$=me[xe-3],Ke.addVertex(me[xe-3],me[xe-1],"square");break;case 52:this.$=me[xe-3],Ke.addVertex(me[xe-3],me[xe-1],"doublecircle");break;case 53:this.$=me[xe-5],Ke.addVertex(me[xe-5],me[xe-2],"circle");break;case 54:this.$=me[xe-3],Ke.addVertex(me[xe-3],me[xe-1],"ellipse");break;case 55:this.$=me[xe-3],Ke.addVertex(me[xe-3],me[xe-1],"stadium");break;case 56:this.$=me[xe-3],Ke.addVertex(me[xe-3],me[xe-1],"subroutine");break;case 57:this.$=me[xe-7],Ke.addVertex(me[xe-7],me[xe-1],"rect",void 0,void 0,void 0,Object.fromEntries([[me[xe-5],me[xe-3]]]));break;case 58:this.$=me[xe-3],Ke.addVertex(me[xe-3],me[xe-1],"cylinder");break;case 59:this.$=me[xe-3],Ke.addVertex(me[xe-3],me[xe-1],"round");break;case 60:this.$=me[xe-3],Ke.addVertex(me[xe-3],me[xe-1],"diamond");break;case 61:this.$=me[xe-5],Ke.addVertex(me[xe-5],me[xe-2],"hexagon");break;case 62:this.$=me[xe-3],Ke.addVertex(me[xe-3],me[xe-1],"odd");break;case 63:this.$=me[xe-3],Ke.addVertex(me[xe-3],me[xe-1],"trapezoid");break;case 64:this.$=me[xe-3],Ke.addVertex(me[xe-3],me[xe-1],"inv_trapezoid");break;case 65:this.$=me[xe-3],Ke.addVertex(me[xe-3],me[xe-1],"lean_right");break;case 66:this.$=me[xe-3],Ke.addVertex(me[xe-3],me[xe-1],"lean_left");break;case 67:this.$=me[xe],Ke.addVertex(me[xe]);break;case 68:me[xe-1].text=me[xe],this.$=me[xe-1];break;case 69:case 70:me[xe-2].text=me[xe-1],this.$=me[xe-2];break;case 71:this.$=me[xe];break;case 72:var xi=Ke.destructLink(me[xe],me[xe-2]);this.$={type:xi.type,stroke:xi.stroke,length:xi.length,text:me[xe-1]};break;case 73:this.$={text:me[xe],type:"text"};break;case 74:this.$={text:me[xe-1].text+""+me[xe],type:me[xe-1].type};break;case 75:this.$={text:me[xe],type:"string"};break;case 76:this.$={text:me[xe],type:"markdown"};break;case 77:var xi=Ke.destructLink(me[xe]);this.$={type:xi.type,stroke:xi.stroke,length:xi.length};break;case 78:this.$=me[xe-1];break;case 79:this.$={text:me[xe],type:"text"};break;case 80:this.$={text:me[xe-1].text+""+me[xe],type:me[xe-1].type};break;case 81:this.$={text:me[xe],type:"string"};break;case 82:case 97:this.$={text:me[xe],type:"markdown"};break;case 94:this.$={text:me[xe],type:"text"};break;case 95:this.$={text:me[xe-1].text+""+me[xe],type:me[xe-1].type};break;case 96:this.$={text:me[xe],type:"text"};break;case 98:this.$=me[xe-4],Ke.addClass(me[xe-2],me[xe]);break;case 99:this.$=me[xe-4],Ke.setClass(me[xe-2],me[xe]);break;case 100:case 108:this.$=me[xe-1],Ke.setClickEvent(me[xe-1],me[xe]);break;case 101:case 109:this.$=me[xe-3],Ke.setClickEvent(me[xe-3],me[xe-2]),Ke.setTooltip(me[xe-3],me[xe]);break;case 102:this.$=me[xe-2],Ke.setClickEvent(me[xe-2],me[xe-1],me[xe]);break;case 103:this.$=me[xe-4],Ke.setClickEvent(me[xe-4],me[xe-3],me[xe-2]),Ke.setTooltip(me[xe-4],me[xe]);break;case 104:this.$=me[xe-2],Ke.setLink(me[xe-2],me[xe]);break;case 105:this.$=me[xe-4],Ke.setLink(me[xe-4],me[xe-2]),Ke.setTooltip(me[xe-4],me[xe]);break;case 106:this.$=me[xe-4],Ke.setLink(me[xe-4],me[xe-2],me[xe]);break;case 107:this.$=me[xe-6],Ke.setLink(me[xe-6],me[xe-4],me[xe]),Ke.setTooltip(me[xe-6],me[xe-2]);break;case 110:this.$=me[xe-1],Ke.setLink(me[xe-1],me[xe]);break;case 111:this.$=me[xe-3],Ke.setLink(me[xe-3],me[xe-2]),Ke.setTooltip(me[xe-3],me[xe]);break;case 112:this.$=me[xe-3],Ke.setLink(me[xe-3],me[xe-2],me[xe]);break;case 113:this.$=me[xe-5],Ke.setLink(me[xe-5],me[xe-4],me[xe]),Ke.setTooltip(me[xe-5],me[xe-2]);break;case 114:this.$=me[xe-4],Ke.addVertex(me[xe-2],void 0,void 0,me[xe]);break;case 115:this.$=me[xe-4],Ke.updateLink([me[xe-2]],me[xe]);break;case 116:this.$=me[xe-4],Ke.updateLink(me[xe-2],me[xe]);break;case 117:this.$=me[xe-8],Ke.updateLinkInterpolate([me[xe-6]],me[xe-2]),Ke.updateLink([me[xe-6]],me[xe]);break;case 118:this.$=me[xe-8],Ke.updateLinkInterpolate(me[xe-6],me[xe-2]),Ke.updateLink(me[xe-6],me[xe]);break;case 119:this.$=me[xe-6],Ke.updateLinkInterpolate([me[xe-4]],me[xe]);break;case 120:this.$=me[xe-6],Ke.updateLinkInterpolate(me[xe-4],me[xe]);break;case 121:case 123:this.$=[me[xe]];break;case 122:case 124:me[xe-2].push(me[xe]),this.$=me[xe-2];break;case 126:this.$=me[xe-1]+me[xe];break;case 174:this.$=me[xe];break;case 175:this.$=me[xe-1]+""+me[xe];break;case 177:this.$=me[xe-1]+""+me[xe];break;case 178:this.$={stmt:"dir",value:"TB"};break;case 179:this.$={stmt:"dir",value:"BT"};break;case 180:this.$={stmt:"dir",value:"RL"};break;case 181:this.$={stmt:"dir",value:"LR"};break}},"anonymous"),table:[{3:1,4:2,9:e,10:r,12:n},{1:[3]},t(i,a,{5:6}),{4:7,9:e,10:r,12:n},{4:8,9:e,10:r,12:n},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:o,9:l,10:u,11:h,20:17,22:18,23:19,24:20,25:21,26:22,27:f,33:24,34:d,36:p,38:m,40:28,41:38,42:g,43:39,45:40,58:y,81:v,82:x,83:b,84:k,85:A,86:w,99:T,102:C,103:E,106:S,108:R,110:41,111:D,112:L,113:P,118:M,119:F,120:I,121:O},t(i,[2,9]),t(i,[2,10]),t(i,[2,11]),{8:[1,54],9:[1,55],10:z,15:53,18:56},t(N,[2,3]),t(N,[2,4]),t(N,[2,5]),t(N,[2,6]),t(N,[2,7]),t(N,[2,8]),{8:U,9:$,11:W,21:58,39:59,70:63,73:[1,64],75:[1,65]},{8:U,9:$,11:W,21:66},{8:U,9:$,11:W,21:67},{8:U,9:$,11:W,21:68},{8:U,9:$,11:W,21:69},{8:U,9:$,11:W,21:70},{8:U,9:$,10:[1,71],11:W,21:72},t(N,[2,36]),{35:[1,73]},{37:[1,74]},t(N,[2,39]),t(ee,[2,46],{18:75,10:z}),{10:[1,76]},{10:[1,77]},{10:[1,78]},{10:[1,79]},{14:te,42:ce,58:Z,77:[1,83],86:fe,92:[1,80],94:[1,81],98:82,102:ne,103:H,106:Q,108:K,111:re,112:ie,113:ye,117:84},t(N,[2,178]),t(N,[2,179]),t(N,[2,180]),t(N,[2,181]),t(j,[2,47]),t(j,[2,49],{44:[1,96]}),t(De,[2,67],{110:109,29:[1,97],42:g,46:[1,98],48:[1,99],50:[1,100],52:[1,101],54:[1,102],56:[1,103],58:y,61:[1,104],63:[1,105],65:[1,106],66:[1,107],68:[1,108],86:w,99:T,102:C,103:E,106:S,108:R,111:D,112:L,113:P}),t(oe,[2,174]),t(oe,[2,135]),t(oe,[2,136]),t(oe,[2,137]),t(oe,[2,138]),t(oe,[2,139]),t(oe,[2,140]),t(oe,[2,141]),t(oe,[2,142]),t(oe,[2,143]),t(oe,[2,144]),t(oe,[2,145]),t(i,[2,12]),t(i,[2,18]),t(i,[2,19]),{9:[1,110]},t(Re,[2,26],{18:111,10:z}),t(N,[2,27]),{40:112,41:38,42:g,43:39,45:40,58:y,86:w,99:T,102:C,103:E,106:S,108:R,110:41,111:D,112:L,113:P},t(N,[2,40]),t(N,[2,41]),t(N,[2,42]),t(Pe,[2,71],{71:113,60:[1,115],72:[1,114]}),{74:116,76:117,77:[1,118],78:[1,119],113:Se,116:Ue},t([42,58,60,72,86,99,102,103,106,108,111,112,113],[2,77]),t(N,[2,28]),t(N,[2,29]),t(N,[2,30]),t(N,[2,31]),t(N,[2,32]),{10:Oe,12:_e,14:he,27:q,28:122,32:se,42:ue,58:X,73:ae,77:[1,124],78:[1,125],80:135,81:pe,82:de,83:Ie,84:Ne,85:Be,86:ze,87:qe,88:123,102:Fe,106:we,108:Je,111:We,112:or,113:Cr},t(Ut,a,{5:148}),t(N,[2,37]),t(N,[2,38]),t(ee,[2,45],{42:ar}),{42:g,45:150,58:y,86:w,99:T,102:C,103:E,106:S,108:R,110:41,111:D,112:L,113:P},{99:[1,151],100:152,102:[1,153]},{42:g,45:154,58:y,86:w,99:T,102:C,103:E,106:S,108:R,110:41,111:D,112:L,113:P},{42:g,45:155,58:y,86:w,99:T,102:C,103:E,106:S,108:R,110:41,111:D,112:L,113:P},t(ut,[2,100],{10:[1,156],93:[1,157]}),{77:[1,158]},t(ut,[2,108],{117:160,10:[1,159],14:te,42:ce,58:Z,86:fe,102:ne,103:H,106:Q,108:K,111:re,112:ie,113:ye}),t(ut,[2,110],{10:[1,161]}),t(Rt,[2,176]),t(Rt,[2,163]),t(Rt,[2,164]),t(Rt,[2,165]),t(Rt,[2,166]),t(Rt,[2,167]),t(Rt,[2,168]),t(Rt,[2,169]),t(Rt,[2,170]),t(Rt,[2,171]),t(Rt,[2,172]),t(Rt,[2,173]),{42:g,45:162,58:y,86:w,99:T,102:C,103:E,106:S,108:R,110:41,111:D,112:L,113:P},{30:163,65:Qe,77:Dt,78:qt,79:164,113:yt,114:Et,115:pt},{30:171,65:Qe,77:Dt,78:qt,79:164,113:yt,114:Et,115:pt},{30:173,48:[1,172],65:Qe,77:Dt,78:qt,79:164,113:yt,114:Et,115:pt},{30:174,65:Qe,77:Dt,78:qt,79:164,113:yt,114:Et,115:pt},{30:175,65:Qe,77:Dt,78:qt,79:164,113:yt,114:Et,115:pt},{30:176,65:Qe,77:Dt,78:qt,79:164,113:yt,114:Et,115:pt},{106:[1,177]},{30:178,65:Qe,77:Dt,78:qt,79:164,113:yt,114:Et,115:pt},{30:179,63:[1,180],65:Qe,77:Dt,78:qt,79:164,113:yt,114:Et,115:pt},{30:181,65:Qe,77:Dt,78:qt,79:164,113:yt,114:Et,115:pt},{30:182,65:Qe,77:Dt,78:qt,79:164,113:yt,114:Et,115:pt},{30:183,65:Qe,77:Dt,78:qt,79:164,113:yt,114:Et,115:pt},t(oe,[2,175]),t(i,[2,20]),t(Re,[2,25]),t(ee,[2,43],{18:184,10:z}),t(Pe,[2,68],{10:[1,185]}),{10:[1,186]},{30:187,65:Qe,77:Dt,78:qt,79:164,113:yt,114:Et,115:pt},{75:[1,188],76:189,113:Se,116:Ue},t(Wt,[2,73]),t(Wt,[2,75]),t(Wt,[2,76]),t(Wt,[2,161]),t(Wt,[2,162]),{8:U,9:$,10:Oe,11:W,12:_e,14:he,21:191,27:q,29:[1,190],32:se,42:ue,58:X,73:ae,80:135,81:pe,82:de,83:Ie,84:Ne,85:Be,86:ze,87:qe,88:192,102:Fe,106:we,108:Je,111:We,112:or,113:Cr},t(ot,[2,94]),t(ot,[2,96]),t(ot,[2,97]),t(ot,[2,150]),t(ot,[2,151]),t(ot,[2,152]),t(ot,[2,153]),t(ot,[2,154]),t(ot,[2,155]),t(ot,[2,156]),t(ot,[2,157]),t(ot,[2,158]),t(ot,[2,159]),t(ot,[2,160]),t(ot,[2,83]),t(ot,[2,84]),t(ot,[2,85]),t(ot,[2,86]),t(ot,[2,87]),t(ot,[2,88]),t(ot,[2,89]),t(ot,[2,90]),t(ot,[2,91]),t(ot,[2,92]),t(ot,[2,93]),{6:11,7:12,8:o,9:l,10:u,11:h,20:17,22:18,23:19,24:20,25:21,26:22,27:f,32:[1,193],33:24,34:d,36:p,38:m,40:28,41:38,42:g,43:39,45:40,58:y,81:v,82:x,83:b,84:k,85:A,86:w,99:T,102:C,103:E,106:S,108:R,110:41,111:D,112:L,113:P,118:M,119:F,120:I,121:O},{10:z,18:194},{10:[1,195],42:g,58:y,86:w,99:T,102:C,103:E,106:S,108:R,110:109,111:D,112:L,113:P},{10:[1,196]},{10:[1,197],103:[1,198]},t(fr,[2,121]),{10:[1,199],42:g,58:y,86:w,99:T,102:C,103:E,106:S,108:R,110:109,111:D,112:L,113:P},{10:[1,200],42:g,58:y,86:w,99:T,102:C,103:E,106:S,108:R,110:109,111:D,112:L,113:P},{77:[1,201]},t(ut,[2,102],{10:[1,202]}),t(ut,[2,104],{10:[1,203]}),{77:[1,204]},t(Rt,[2,177]),{77:[1,205],95:[1,206]},t(j,[2,50],{110:109,42:g,58:y,86:w,99:T,102:C,103:E,106:S,108:R,111:D,112:L,113:P}),{31:[1,207],65:Qe,79:208,113:yt,114:Et,115:pt},t(vt,[2,79]),t(vt,[2,81]),t(vt,[2,82]),t(vt,[2,146]),t(vt,[2,147]),t(vt,[2,148]),t(vt,[2,149]),{47:[1,209],65:Qe,79:208,113:yt,114:Et,115:pt},{30:210,65:Qe,77:Dt,78:qt,79:164,113:yt,114:Et,115:pt},{49:[1,211],65:Qe,79:208,113:yt,114:Et,115:pt},{51:[1,212],65:Qe,79:208,113:yt,114:Et,115:pt},{53:[1,213],65:Qe,79:208,113:yt,114:Et,115:pt},{55:[1,214],65:Qe,79:208,113:yt,114:Et,115:pt},{58:[1,215]},{62:[1,216],65:Qe,79:208,113:yt,114:Et,115:pt},{64:[1,217],65:Qe,79:208,113:yt,114:Et,115:pt},{30:218,65:Qe,77:Dt,78:qt,79:164,113:yt,114:Et,115:pt},{31:[1,219],65:Qe,79:208,113:yt,114:Et,115:pt},{65:Qe,67:[1,220],69:[1,221],79:208,113:yt,114:Et,115:pt},{65:Qe,67:[1,223],69:[1,222],79:208,113:yt,114:Et,115:pt},t(ee,[2,44],{42:ar}),t(Pe,[2,70]),t(Pe,[2,69]),{60:[1,224],65:Qe,79:208,113:yt,114:Et,115:pt},t(Pe,[2,72]),t(Wt,[2,74]),{30:225,65:Qe,77:Dt,78:qt,79:164,113:yt,114:Et,115:pt},t(Ut,a,{5:226}),t(ot,[2,95]),t(N,[2,35]),{41:227,42:g,43:39,45:40,58:y,86:w,99:T,102:C,103:E,106:S,108:R,110:41,111:D,112:L,113:P},{10:Bt,58:Sr,81:zi,89:228,102:rr,104:229,105:230,106:Vn,107:Tn,108:Ki,109:ci},{10:Bt,58:Sr,81:zi,89:239,101:[1,240],102:rr,104:229,105:230,106:Vn,107:Tn,108:Ki,109:ci},{10:Bt,58:Sr,81:zi,89:241,101:[1,242],102:rr,104:229,105:230,106:Vn,107:Tn,108:Ki,109:ci},{102:[1,243]},{10:Bt,58:Sr,81:zi,89:244,102:rr,104:229,105:230,106:Vn,107:Tn,108:Ki,109:ci},{42:g,45:245,58:y,86:w,99:T,102:C,103:E,106:S,108:R,110:41,111:D,112:L,113:P},t(ut,[2,101]),{77:[1,246]},{77:[1,247],95:[1,248]},t(ut,[2,109]),t(ut,[2,111],{10:[1,249]}),t(ut,[2,112]),t(De,[2,51]),t(vt,[2,80]),t(De,[2,52]),{49:[1,250],65:Qe,79:208,113:yt,114:Et,115:pt},t(De,[2,59]),t(De,[2,54]),t(De,[2,55]),t(De,[2,56]),{106:[1,251]},t(De,[2,58]),t(De,[2,60]),{64:[1,252],65:Qe,79:208,113:yt,114:Et,115:pt},t(De,[2,62]),t(De,[2,63]),t(De,[2,65]),t(De,[2,64]),t(De,[2,66]),t([10,42,58,86,99,102,103,106,108,111,112,113],[2,78]),{31:[1,253],65:Qe,79:208,113:yt,114:Et,115:pt},{6:11,7:12,8:o,9:l,10:u,11:h,20:17,22:18,23:19,24:20,25:21,26:22,27:f,32:[1,254],33:24,34:d,36:p,38:m,40:28,41:38,42:g,43:39,45:40,58:y,81:v,82:x,83:b,84:k,85:A,86:w,99:T,102:C,103:E,106:S,108:R,110:41,111:D,112:L,113:P,118:M,119:F,120:I,121:O},t(j,[2,48]),t(ut,[2,114],{103:Pa}),t(En,[2,123],{105:256,10:Bt,58:Sr,81:zi,102:rr,106:Vn,107:Tn,108:Ki,109:ci}),t(ti,[2,125]),t(ti,[2,127]),t(ti,[2,128]),t(ti,[2,129]),t(ti,[2,130]),t(ti,[2,131]),t(ti,[2,132]),t(ti,[2,133]),t(ti,[2,134]),t(ut,[2,115],{103:Pa}),{10:[1,257]},t(ut,[2,116],{103:Pa}),{10:[1,258]},t(fr,[2,122]),t(ut,[2,98],{103:Pa}),t(ut,[2,99],{110:109,42:g,58:y,86:w,99:T,102:C,103:E,106:S,108:R,111:D,112:L,113:P}),t(ut,[2,103]),t(ut,[2,105],{10:[1,259]}),t(ut,[2,106]),{95:[1,260]},{49:[1,261]},{60:[1,262]},{64:[1,263]},{8:U,9:$,11:W,21:264},t(N,[2,34]),{10:Bt,58:Sr,81:zi,102:rr,104:265,105:230,106:Vn,107:Tn,108:Ki,109:ci},t(ti,[2,126]),{14:te,42:ce,58:Z,86:fe,98:266,102:ne,103:H,106:Q,108:K,111:re,112:ie,113:ye,117:84},{14:te,42:ce,58:Z,86:fe,98:267,102:ne,103:H,106:Q,108:K,111:re,112:ie,113:ye,117:84},{95:[1,268]},t(ut,[2,113]),t(De,[2,53]),{30:269,65:Qe,77:Dt,78:qt,79:164,113:yt,114:Et,115:pt},t(De,[2,61]),t(Ut,a,{5:270}),t(En,[2,124],{105:256,10:Bt,58:Sr,81:zi,102:rr,106:Vn,107:Tn,108:Ki,109:ci}),t(ut,[2,119],{117:160,10:[1,271],14:te,42:ce,58:Z,86:fe,102:ne,103:H,106:Q,108:K,111:re,112:ie,113:ye}),t(ut,[2,120],{117:160,10:[1,272],14:te,42:ce,58:Z,86:fe,102:ne,103:H,106:Q,108:K,111:re,112:ie,113:ye}),t(ut,[2,107]),{31:[1,273],65:Qe,79:208,113:yt,114:Et,115:pt},{6:11,7:12,8:o,9:l,10:u,11:h,20:17,22:18,23:19,24:20,25:21,26:22,27:f,32:[1,274],33:24,34:d,36:p,38:m,40:28,41:38,42:g,43:39,45:40,58:y,81:v,82:x,83:b,84:k,85:A,86:w,99:T,102:C,103:E,106:S,108:R,110:41,111:D,112:L,113:P,118:M,119:F,120:I,121:O},{10:Bt,58:Sr,81:zi,89:275,102:rr,104:229,105:230,106:Vn,107:Tn,108:Ki,109:ci},{10:Bt,58:Sr,81:zi,89:276,102:rr,104:229,105:230,106:Vn,107:Tn,108:Ki,109:ci},t(De,[2,57]),t(N,[2,33]),t(ut,[2,117],{103:Pa}),t(ut,[2,118],{103:Pa})],defaultActions:{},parseError:s(function(at,xt){if(xt.recoverable)this.trace(at);else{var Ft=new Error(at);throw Ft.hash=xt,Ft}},"parseError"),parse:s(function(at){var xt=this,Ft=[0],Ke=[],Zt=[null],me=[],Fc=this.table,xe="",xi=0,zc=0,g1=0,ib=2,y1=1,v1=me.slice.call(arguments,1),ri=Object.create(this.lexer),ho={yy:{}};for(var Zu in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Zu)&&(ho.yy[Zu]=this.yy[Zu]);ri.setInput(at,ho.yy),ho.yy.lexer=ri,ho.yy.parser=this,typeof ri.yylloc>"u"&&(ri.yylloc={});var Ps=ri.yylloc;me.push(Ps);var Ju=ri.options&&ri.options.ranges;typeof ho.yy.parseError=="function"?this.parseError=ho.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ab(xa){Ft.length=Ft.length-2*xa,Zt.length=Zt.length-xa,me.length=me.length-xa}s(ab,"popStack");function x1(){var xa;return xa=Ke.pop()||ri.lex()||y1,typeof xa!="number"&&(xa instanceof Array&&(Ke=xa,xa=Ke.pop()),xa=xt.symbols_[xa]||xa),xa}s(x1,"lex");for(var Qi,$c,Gc,rs,bi,Ml,eh={},Af,Bs,b1,Lf;;){if(Gc=Ft[Ft.length-1],this.defaultActions[Gc]?rs=this.defaultActions[Gc]:((Qi===null||typeof Qi>"u")&&(Qi=x1()),rs=Fc[Gc]&&Fc[Gc][Qi]),typeof rs>"u"||!rs.length||!rs[0]){var k1="";Lf=[];for(Af in Fc[Gc])this.terminals_[Af]&&Af>ib&&Lf.push("'"+this.terminals_[Af]+"'");ri.showPosition?k1="Parse error on line "+(xi+1)+`:
`+ri.showPosition()+`
Expecting `+Lf.join(", ")+", got '"+(this.terminals_[Qi]||Qi)+"'":k1="Parse error on line "+(xi+1)+": Unexpected "+(Qi==y1?"end of input":"'"+(this.terminals_[Qi]||Qi)+"'"),this.parseError(k1,{text:ri.match,token:this.terminals_[Qi]||Qi,line:ri.yylineno,loc:Ps,expected:Lf})}if(rs[0]instanceof Array&&rs.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Gc+", token: "+Qi);switch(rs[0]){case 1:Ft.push(Qi),Zt.push(ri.yytext),me.push(ri.yylloc),Ft.push(rs[1]),Qi=null,$c?(Qi=$c,$c=null):(zc=ri.yyleng,xe=ri.yytext,xi=ri.yylineno,Ps=ri.yylloc,g1>0&&g1--);break;case 2:if(Bs=this.productions_[rs[1]][1],eh.$=Zt[Zt.length-Bs],eh._$={first_line:me[me.length-(Bs||1)].first_line,last_line:me[me.length-1].last_line,first_column:me[me.length-(Bs||1)].first_column,last_column:me[me.length-1].last_column},Ju&&(eh._$.range=[me[me.length-(Bs||1)].range[0],me[me.length-1].range[1]]),Ml=this.performAction.apply(eh,[xe,zc,xi,ho.yy,rs[1],Zt,me].concat(v1)),typeof Ml<"u")return Ml;Bs&&(Ft=Ft.slice(0,-1*Bs*2),Zt=Zt.slice(0,-1*Bs),me=me.slice(0,-1*Bs)),Ft.push(this.productions_[rs[1]][0]),Zt.push(eh.$),me.push(eh._$),b1=Fc[Ft[Ft.length-2]][Ft[Ft.length-1]],Ft.push(b1);break;case 3:return!0}}return!0},"parse")},uo=function(){var ts={EOF:1,parseError:s(function(xt,Ft){if(this.yy.parser)this.yy.parser.parseError(xt,Ft);else throw new Error(xt)},"parseError"),setInput:s(function(at,xt){return this.yy=xt||this.yy||{},this._input=at,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:s(function(){var at=this._input[0];this.yytext+=at,this.yyleng++,this.offset++,this.match+=at,this.matched+=at;var xt=at.match(/(?:\r\n?|\n).*/g);return xt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),at},"input"),unput:s(function(at){var xt=at.length,Ft=at.split(/(?:\r\n?|\n)/g);this._input=at+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-xt),this.offset-=xt;var Ke=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),Ft.length-1&&(this.yylineno-=Ft.length-1);var Zt=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:Ft?(Ft.length===Ke.length?this.yylloc.first_column:0)+Ke[Ke.length-Ft.length].length-Ft[0].length:this.yylloc.first_column-xt},this.options.ranges&&(this.yylloc.range=[Zt[0],Zt[0]+this.yyleng-xt]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(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).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(at){this.unput(this.match.slice(at))},"less"),pastInput:s(function(){var at=this.matched.substr(0,this.matched.length-this.match.length);return(at.length>20?"...":"")+at.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var at=this.match;return at.length<20&&(at+=this._input.substr(0,20-at.length)),(at.substr(0,20)+(at.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var at=this.pastInput(),xt=new Array(at.length+1).join("-");return at+this.upcomingInput()+`
`+xt+"^"},"showPosition"),test_match:s(function(at,xt){var Ft,Ke,Zt;if(this.options.backtrack_lexer&&(Zt={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&&(Zt.yylloc.range=this.yylloc.range.slice(0))),Ke=at[0].match(/(?:\r\n?|\n).*/g),Ke&&(this.yylineno+=Ke.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ke?Ke[Ke.length-1].length-Ke[Ke.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+at[0].length},this.yytext+=at[0],this.match+=at[0],this.matches=at,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(at[0].length),this.matched+=at[0],Ft=this.performAction.call(this,this.yy,this,xt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Ft)return Ft;if(this._backtrack){for(var me in Zt)this[me]=Zt[me];return!1}return!1},"test_match"),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var at,xt,Ft,Ke;this._more||(this.yytext="",this.match="");for(var Zt=this._currentRules(),me=0;mext[0].length)){if(xt=Ft,Ke=me,this.options.backtrack_lexer){if(at=this.test_match(Ft,Zt[me]),at!==!1)return at;if(this._backtrack){xt=!1;continue}else return!1}else if(!this.options.flex)break}return xt?(at=this.test_match(xt,Zt[Ke]),at!==!1?at:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var xt=this.next();return xt||this.lex()},"lex"),begin:s(function(xt){this.conditionStack.push(xt)},"begin"),popState:s(function(){var xt=this.conditionStack.length-1;return xt>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:s(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:s(function(xt){return xt=this.conditionStack.length-1-Math.abs(xt||0),xt>=0?this.conditionStack[xt]:"INITIAL"},"topState"),pushState:s(function(xt){this.begin(xt)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:s(function(xt,Ft,Ke,Zt){var me=Zt;switch(Ke){case 0:return this.begin("acc_title"),34;break;case 1:return this.popState(),"acc_title_value";break;case 2:return this.begin("acc_descr"),36;break;case 3:return this.popState(),"acc_descr_value";break;case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:this.begin("callbackname");break;case 8:this.popState();break;case 9:this.popState(),this.begin("callbackargs");break;case 10:return 92;case 11:this.popState();break;case 12:return 93;case 13:return"MD_STR";case 14:this.popState();break;case 15:this.begin("md_string");break;case 16:return"STR";case 17:this.popState();break;case 18:this.pushState("string");break;case 19:return 81;case 20:return 99;case 21:return 82;case 22:return 101;case 23:return 83;case 24:return 84;case 25:return 94;case 26:this.begin("click");break;case 27:this.popState();break;case 28:return 85;case 29:return xt.lex.firstGraph()&&this.begin("dir"),12;break;case 30:return xt.lex.firstGraph()&&this.begin("dir"),12;break;case 31:return xt.lex.firstGraph()&&this.begin("dir"),12;break;case 32:return 27;case 33:return 32;case 34:return 95;case 35:return 95;case 36:return 95;case 37:return 95;case 38:return this.popState(),13;break;case 39:return this.popState(),14;break;case 40:return this.popState(),14;break;case 41:return this.popState(),14;break;case 42:return this.popState(),14;break;case 43:return this.popState(),14;break;case 44:return this.popState(),14;break;case 45:return this.popState(),14;break;case 46:return this.popState(),14;break;case 47:return this.popState(),14;break;case 48:return this.popState(),14;break;case 49:return 118;case 50:return 119;case 51:return 120;case 52:return 121;case 53:return 102;case 54:return 108;case 55:return 44;case 56:return 58;case 57:return 42;case 58:return 8;case 59:return 103;case 60:return 112;case 61:return this.popState(),75;break;case 62:return this.pushState("edgeText"),73;break;case 63:return 116;case 64:return this.popState(),75;break;case 65:return this.pushState("thickEdgeText"),73;break;case 66:return 116;case 67:return this.popState(),75;break;case 68:return this.pushState("dottedEdgeText"),73;break;case 69:return 116;case 70:return 75;case 71:return this.popState(),51;break;case 72:return"TEXT";case 73:return this.pushState("ellipseText"),50;break;case 74:return this.popState(),53;break;case 75:return this.pushState("text"),52;break;case 76:return this.popState(),55;break;case 77:return this.pushState("text"),54;break;case 78:return 56;case 79:return this.pushState("text"),65;break;case 80:return this.popState(),62;break;case 81:return this.pushState("text"),61;break;case 82:return this.popState(),47;break;case 83:return this.pushState("text"),46;break;case 84:return this.popState(),67;break;case 85:return this.popState(),69;break;case 86:return 114;case 87:return this.pushState("trapText"),66;break;case 88:return this.pushState("trapText"),68;break;case 89:return 115;case 90:return 65;case 91:return 87;case 92:return"SEP";case 93:return 86;case 94:return 112;case 95:return 108;case 96:return 42;case 97:return 106;case 98:return 111;case 99:return 113;case 100:return this.popState(),60;break;case 101:return this.pushState("text"),60;break;case 102:return this.popState(),49;break;case 103:return this.pushState("text"),48;break;case 104:return this.popState(),31;break;case 105:return this.pushState("text"),29;break;case 106:return this.popState(),64;break;case 107:return this.pushState("text"),63;break;case 108:return"TEXT";case 109:return"QUOTE";case 110:return 9;case 111:return 10;case 112:return 11}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{callbackargs:{rules:[11,12,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},callbackname:{rules:[8,9,10,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},href:{rules:[15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},click:{rules:[15,18,27,28,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},dottedEdgeText:{rules:[15,18,67,69,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},thickEdgeText:{rules:[15,18,64,66,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},edgeText:{rules:[15,18,61,63,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},trapText:{rules:[15,18,70,73,75,77,81,83,84,85,86,87,88,101,103,105,107],inclusive:!1},ellipseText:{rules:[15,18,70,71,72,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},text:{rules:[15,18,70,73,74,75,76,77,80,81,82,83,87,88,100,101,102,103,104,105,106,107,108],inclusive:!1},vertex:{rules:[15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},dir:{rules:[15,18,38,39,40,41,42,43,44,45,46,47,48,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_descr_multiline:{rules:[5,6,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_descr:{rules:[3,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_title:{rules:[1,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},md_string:{rules:[13,14,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},string:{rules:[15,16,17,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},INITIAL:{rules:[0,2,4,7,15,18,19,20,21,22,23,24,25,26,29,30,31,32,33,34,35,36,37,49,50,51,52,53,54,55,56,57,58,59,60,61,62,64,65,67,68,70,73,75,77,78,79,81,83,87,88,89,90,91,92,93,94,95,96,97,98,99,101,103,105,107,109,110,111,112],inclusive:!0}}};return ts}();co.lexer=uo;function Rl(){this.yy={}}return s(Rl,"Parser"),Rl.prototype=co,co.Parser=Rl,new Rl}();AL.parser=AL;Tte=AL});var tDe,rDe,Cte,Ste=_(()=>{"use strict";Ho();tDe=s((t,e)=>{let r=D1,n=r(t,"r"),i=r(t,"g"),a=r(t,"b");return Fs(n,i,a,e)},"fade"),rDe=s(t=>`.label {
font-family: ${t.fontFamily};
color: ${t.nodeTextColor||t.textColor};
}
.cluster-label text {
fill: ${t.titleColor};
}
.cluster-label span {
color: ${t.titleColor};
}
.cluster-label span p {
background-color: transparent;
}
.label text,span {
fill: ${t.nodeTextColor||t.textColor};
color: ${t.nodeTextColor||t.textColor};
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: ${t.mainBkg};
stroke: ${t.nodeBorder};
stroke-width: 1px;
}
.rough-node .label text , .node .label text {
text-anchor: middle;
}
// .flowchart-label .text-outer-tspan {
// text-anchor: middle;
// }
// .flowchart-label .text-inner-tspan {
// text-anchor: start;
// }
.node .katex path {
fill: #000;
stroke: #000;
stroke-width: 1px;
}
.node .label {
text-align: center;
}
.node.clickable {
cursor: pointer;
}
.arrowheadPath {
fill: ${t.arrowheadColor};
}
.edgePath .path {
stroke: ${t.lineColor};
stroke-width: 2.0px;
}
.flowchart-link {
stroke: ${t.lineColor};
fill: none;
}
.edgeLabel {
background-color: ${t.edgeLabelBackground};
p {
background-color: ${t.edgeLabelBackground};
}
rect {
opacity: 0.5;
background-color: ${t.edgeLabelBackground};
fill: ${t.edgeLabelBackground};
}
text-align: center;
}
/* For html labels only */
.labelBkg {
background-color: ${tDe(t.edgeLabelBackground,.5)};
// background-color:
}
.cluster rect {
fill: ${t.clusterBkg};
stroke: ${t.clusterBorder};
stroke-width: 1px;
}
.cluster text {
fill: ${t.titleColor};
}
.cluster span {
color: ${t.titleColor};
}
/* .cluster div {
color: ${t.titleColor};
} */
div.mermaidTooltip {
position: absolute;
text-align: center;
max-width: 200px;
padding: 2px;
font-family: ${t.fontFamily};
font-size: 12px;
background: ${t.tertiaryColor};
border: 1px solid ${t.border2};
border-radius: 2px;
pointer-events: none;
z-index: 100;
}
.flowchartTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${t.textColor};
}
`,"getStyles"),Cte=rDe});var Ik={};ur(Ik,{diagram:()=>nDe});var nDe,Nk=_(()=>{"use strict";gt();wA();wte();Ete();Ste();nDe={parser:Tte,db:K3,renderer:kte,styles:Cte,init:s(t=>{t.flowchart||(t.flowchart={}),t.layout&&pC({layout:t.layout}),t.flowchart.arrowMarkerAbsolute=t.arrowMarkerAbsolute,pC({flowchart:{arrowMarkerAbsolute:t.arrowMarkerAbsolute}}),K3.clear(),K3.setGen("gen-2")},"init")}});var LL,Rte,Mte=_(()=>{"use strict";LL=function(){var t=s(function(E,S,R,D){for(R=R||{},D=E.length;D--;R[E[D]]=S);return R},"o"),e=[6,8,10,20,22,24,26,27,28],r=[1,10],n=[1,11],i=[1,12],a=[1,13],o=[1,14],l=[1,15],u=[1,21],h=[1,22],f=[1,23],d=[1,24],p=[1,25],m=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],g=[1,34],y=[27,28,46,47],v=[41,42,43,44,45],x=[17,34],b=[1,54],k=[1,53],A=[17,34,36,38],w={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,":":13,role:14,BLOCK_START:15,attributes:16,BLOCK_STOP:17,SQS:18,SQE:19,title:20,title_value:21,acc_title:22,acc_title_value:23,acc_descr:24,acc_descr_value:25,acc_descr_multiline_value:26,ALPHANUM:27,ENTITY_NAME:28,attribute:29,attributeType:30,attributeName:31,attributeKeyTypeList:32,attributeComment:33,ATTRIBUTE_WORD:34,attributeKeyType:35,COMMA:36,ATTRIBUTE_KEY:37,COMMENT:38,cardinality:39,relType:40,ZERO_OR_ONE:41,ZERO_OR_MORE:42,ONE_OR_MORE:43,ONLY_ONE:44,MD_PARENT:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:":",15:"BLOCK_START",17:"BLOCK_STOP",18:"SQS",19:"SQE",20:"title",21:"title_value",22:"acc_title",23:"acc_title_value",24:"acc_descr",25:"acc_descr_value",26:"acc_descr_multiline_value",27:"ALPHANUM",28:"ENTITY_NAME",34:"ATTRIBUTE_WORD",36:"COMMA",37:"ATTRIBUTE_KEY",38:"COMMENT",41:"ZERO_OR_ONE",42:"ZERO_OR_MORE",43:"ONE_OR_MORE",44:"ONLY_ONE",45:"MD_PARENT",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,4],[9,3],[9,1],[9,7],[9,6],[9,4],[9,2],[9,2],[9,2],[9,1],[11,1],[11,1],[16,1],[16,2],[29,2],[29,3],[29,3],[29,4],[30,1],[31,1],[32,1],[32,3],[35,1],[33,1],[12,3],[39,1],[39,1],[39,1],[39,1],[39,1],[40,1],[40,1],[14,1],[14,1],[14,1]],performAction:s(function(S,R,D,L,P,M,F){var I=M.length-1;switch(P){case 1:break;case 2:this.$=[];break;case 3:M[I-1].push(M[I]),this.$=M[I-1];break;case 4:case 5:this.$=M[I];break;case 6:case 7:this.$=[];break;case 8:L.addEntity(M[I-4]),L.addEntity(M[I-2]),L.addRelationship(M[I-4],M[I],M[I-2],M[I-3]);break;case 9:L.addEntity(M[I-3]),L.addAttributes(M[I-3],M[I-1]);break;case 10:L.addEntity(M[I-2]);break;case 11:L.addEntity(M[I]);break;case 12:L.addEntity(M[I-6],M[I-4]),L.addAttributes(M[I-6],M[I-1]);break;case 13:L.addEntity(M[I-5],M[I-3]);break;case 14:L.addEntity(M[I-3],M[I-1]);break;case 15:case 16:this.$=M[I].trim(),L.setAccTitle(this.$);break;case 17:case 18:this.$=M[I].trim(),L.setAccDescription(this.$);break;case 19:case 43:this.$=M[I];break;case 20:case 41:case 42:this.$=M[I].replace(/"/g,"");break;case 21:case 29:this.$=[M[I]];break;case 22:M[I].push(M[I-1]),this.$=M[I];break;case 23:this.$={attributeType:M[I-1],attributeName:M[I]};break;case 24:this.$={attributeType:M[I-2],attributeName:M[I-1],attributeKeyTypeList:M[I]};break;case 25:this.$={attributeType:M[I-2],attributeName:M[I-1],attributeComment:M[I]};break;case 26:this.$={attributeType:M[I-3],attributeName:M[I-2],attributeKeyTypeList:M[I-1],attributeComment:M[I]};break;case 27:case 28:case 31:this.$=M[I];break;case 30:M[I-2].push(M[I]),this.$=M[I-2];break;case 32:this.$=M[I].replace(/"/g,"");break;case 33:this.$={cardA:M[I],relType:M[I-1],cardB:M[I-2]};break;case 34:this.$=L.Cardinality.ZERO_OR_ONE;break;case 35:this.$=L.Cardinality.ZERO_OR_MORE;break;case 36:this.$=L.Cardinality.ONE_OR_MORE;break;case 37:this.$=L.Cardinality.ONLY_ONE;break;case 38:this.$=L.Cardinality.MD_PARENT;break;case 39:this.$=L.Identification.NON_IDENTIFYING;break;case 40:this.$=L.Identification.IDENTIFYING;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:9,20:r,22:n,24:i,26:a,27:o,28:l},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:16,11:9,20:r,22:n,24:i,26:a,27:o,28:l},t(e,[2,5]),t(e,[2,6]),t(e,[2,11],{12:17,39:20,15:[1,18],18:[1,19],41:u,42:h,43:f,44:d,45:p}),{21:[1,26]},{23:[1,27]},{25:[1,28]},t(e,[2,18]),t(m,[2,19]),t(m,[2,20]),t(e,[2,4]),{11:29,27:o,28:l},{16:30,17:[1,31],29:32,30:33,34:g},{11:35,27:o,28:l},{40:36,46:[1,37],47:[1,38]},t(y,[2,34]),t(y,[2,35]),t(y,[2,36]),t(y,[2,37]),t(y,[2,38]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),{13:[1,39]},{17:[1,40]},t(e,[2,10]),{16:41,17:[2,21],29:32,30:33,34:g},{31:42,34:[1,43]},{34:[2,27]},{19:[1,44]},{39:45,41:u,42:h,43:f,44:d,45:p},t(v,[2,39]),t(v,[2,40]),{14:46,27:[1,49],28:[1,48],48:[1,47]},t(e,[2,9]),{17:[2,22]},t(x,[2,23],{32:50,33:51,35:52,37:b,38:k}),t([17,34,37,38],[2,28]),t(e,[2,14],{15:[1,55]}),t([27,28],[2,33]),t(e,[2,8]),t(e,[2,41]),t(e,[2,42]),t(e,[2,43]),t(x,[2,24],{33:56,36:[1,57],38:k}),t(x,[2,25]),t(A,[2,29]),t(x,[2,32]),t(A,[2,31]),{16:58,17:[1,59],29:32,30:33,34:g},t(x,[2,26]),{35:60,37:b},{17:[1,61]},t(e,[2,13]),t(A,[2,30]),t(e,[2,12])],defaultActions:{34:[2,27],41:[2,22]},parseError:s(function(S,R){if(R.recoverable)this.trace(S);else{var D=new Error(S);throw D.hash=R,D}},"parseError"),parse:s(function(S){var R=this,D=[0],L=[],P=[null],M=[],F=this.table,I="",O=0,z=0,N=0,U=2,$=1,W=M.slice.call(arguments,1),ee=Object.create(this.lexer),te={yy:{}};for(var ce in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ce)&&(te.yy[ce]=this.yy[ce]);ee.setInput(S,te.yy),te.yy.lexer=ee,te.yy.parser=this,typeof ee.yylloc>"u"&&(ee.yylloc={});var Z=ee.yylloc;M.push(Z);var fe=ee.options&&ee.options.ranges;typeof te.yy.parseError=="function"?this.parseError=te.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ne(Oe){D.length=D.length-2*Oe,P.length=P.length-Oe,M.length=M.length-Oe}s(ne,"popStack");function H(){var Oe;return Oe=L.pop()||ee.lex()||$,typeof Oe!="number"&&(Oe instanceof Array&&(L=Oe,Oe=L.pop()),Oe=R.symbols_[Oe]||Oe),Oe}s(H,"lex");for(var Q,K,re,ie,ye,j,De={},oe,Re,Pe,Se;;){if(re=D[D.length-1],this.defaultActions[re]?ie=this.defaultActions[re]:((Q===null||typeof Q>"u")&&(Q=H()),ie=F[re]&&F[re][Q]),typeof ie>"u"||!ie.length||!ie[0]){var Ue="";Se=[];for(oe in F[re])this.terminals_[oe]&&oe>U&&Se.push("'"+this.terminals_[oe]+"'");ee.showPosition?Ue="Parse error on line "+(O+1)+`:
`+ee.showPosition()+`
Expecting `+Se.join(", ")+", got '"+(this.terminals_[Q]||Q)+"'":Ue="Parse error on line "+(O+1)+": Unexpected "+(Q==$?"end of input":"'"+(this.terminals_[Q]||Q)+"'"),this.parseError(Ue,{text:ee.match,token:this.terminals_[Q]||Q,line:ee.yylineno,loc:Z,expected:Se})}if(ie[0]instanceof Array&&ie.length>1)throw new Error("Parse Error: multiple actions possible at state: "+re+", token: "+Q);switch(ie[0]){case 1:D.push(Q),P.push(ee.yytext),M.push(ee.yylloc),D.push(ie[1]),Q=null,K?(Q=K,K=null):(z=ee.yyleng,I=ee.yytext,O=ee.yylineno,Z=ee.yylloc,N>0&&N--);break;case 2:if(Re=this.productions_[ie[1]][1],De.$=P[P.length-Re],De._$={first_line:M[M.length-(Re||1)].first_line,last_line:M[M.length-1].last_line,first_column:M[M.length-(Re||1)].first_column,last_column:M[M.length-1].last_column},fe&&(De._$.range=[M[M.length-(Re||1)].range[0],M[M.length-1].range[1]]),j=this.performAction.apply(De,[I,z,O,te.yy,ie[1],P,M].concat(W)),typeof j<"u")return j;Re&&(D=D.slice(0,-1*Re*2),P=P.slice(0,-1*Re),M=M.slice(0,-1*Re)),D.push(this.productions_[ie[1]][0]),P.push(De.$),M.push(De._$),Pe=F[D[D.length-2]][D[D.length-1]],D.push(Pe);break;case 3:return!0}}return!0},"parse")},T=function(){var E={EOF:1,parseError:s(function(R,D){if(this.yy.parser)this.yy.parser.parseError(R,D);else throw new Error(R)},"parseError"),setInput:s(function(S,R){return this.yy=R||this.yy||{},this._input=S,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:s(function(){var S=this._input[0];this.yytext+=S,this.yyleng++,this.offset++,this.match+=S,this.matched+=S;var R=S.match(/(?:\r\n?|\n).*/g);return R?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),S},"input"),unput:s(function(S){var R=S.length,D=S.split(/(?:\r\n?|\n)/g);this._input=S+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-R),this.offset-=R;var L=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),D.length-1&&(this.yylineno-=D.length-1);var P=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:D?(D.length===L.length?this.yylloc.first_column:0)+L[L.length-D.length].length-D[0].length:this.yylloc.first_column-R},this.options.ranges&&(this.yylloc.range=[P[0],P[0]+this.yyleng-R]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(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).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(S){this.unput(this.match.slice(S))},"less"),pastInput:s(function(){var S=this.matched.substr(0,this.matched.length-this.match.length);return(S.length>20?"...":"")+S.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var S=this.match;return S.length<20&&(S+=this._input.substr(0,20-S.length)),(S.substr(0,20)+(S.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var S=this.pastInput(),R=new Array(S.length+1).join("-");return S+this.upcomingInput()+`
`+R+"^"},"showPosition"),test_match:s(function(S,R){var D,L,P;if(this.options.backtrack_lexer&&(P={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&&(P.yylloc.range=this.yylloc.range.slice(0))),L=S[0].match(/(?:\r\n?|\n).*/g),L&&(this.yylineno+=L.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:L?L[L.length-1].length-L[L.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+S[0].length},this.yytext+=S[0],this.match+=S[0],this.matches=S,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(S[0].length),this.matched+=S[0],D=this.performAction.call(this,this.yy,this,R,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),D)return D;if(this._backtrack){for(var M in P)this[M]=P[M];return!1}return!1},"test_match"),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var S,R,D,L;this._more||(this.yytext="",this.match="");for(var P=this._currentRules(),M=0;MR[0].length)){if(R=D,L=M,this.options.backtrack_lexer){if(S=this.test_match(D,P[M]),S!==!1)return S;if(this._backtrack){R=!1;continue}else return!1}else if(!this.options.flex)break}return R?(S=this.test_match(R,P[L]),S!==!1?S:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var R=this.next();return R||this.lex()},"lex"),begin:s(function(R){this.conditionStack.push(R)},"begin"),popState:s(function(){var R=this.conditionStack.length-1;return R>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:s(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:s(function(R){return R=this.conditionStack.length-1-Math.abs(R||0),R>=0?this.conditionStack[R]:"INITIAL"},"topState"),pushState:s(function(R){this.begin(R)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s(function(R,D,L,P){var M=P;switch(L){case 0:return this.begin("acc_title"),22;break;case 1:return this.popState(),"acc_title_value";break;case 2:return this.begin("acc_descr"),24;break;case 3:return this.popState(),"acc_descr_value";break;case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 10;case 8:break;case 9:return 8;case 10:return 28;case 11:return 48;case 12:return 4;case 13:return this.begin("block"),15;break;case 14:return 36;case 15:break;case 16:return 37;case 17:return 34;case 18:return 34;case 19:return 38;case 20:break;case 21:return this.popState(),17;break;case 22:return D.yytext[0];case 23:return 18;case 24:return 19;case 25:return 41;case 26:return 43;case 27:return 43;case 28:return 43;case 29:return 41;case 30:return 41;case 31:return 42;case 32:return 42;case 33:return 42;case 34:return 42;case 35:return 42;case 36:return 43;case 37:return 42;case 38:return 43;case 39:return 44;case 40:return 44;case 41:return 44;case 42:return 44;case 43:return 41;case 44:return 42;case 45:return 43;case 46:return 45;case 47:return 46;case 48:return 47;case 49:return 47;case 50:return 46;case 51:return 46;case 52:return 46;case 53:return 27;case 54:return D.yytext[0];case 55:return 6}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:,)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:(.*?)[~](.*?)*[~])/i,/^(?:[\*A-Za-z_][A-Za-z0-9\-_\[\]\(\)]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\s*u\b)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block:{rules:[14,15,16,17,18,19,20,21,22],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,23,24,25,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,53,54,55],inclusive:!0}}};return E}();w.lexer=T;function C(){this.yy={}}return s(C,"Parser"),C.prototype=w,w.Parser=C,new C}();LL.parser=LL;Rte=LL});var Md,DL,uDe,hDe,Ite,fDe,dDe,pDe,mDe,gDe,Nte,Ote=_(()=>{"use strict";it();gt();Ci();Md=new Map,DL=[],uDe={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},hDe={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},Ite=s(function(t,e=void 0){return Md.has(t)?!Md.get(t).alias&&e&&(Md.get(t).alias=e,V.info(`Add alias '${e}' to entity '${t}'`)):(Md.set(t,{attributes:[],alias:e}),V.info("Added new entity :",t)),Md.get(t)},"addEntity"),fDe=s(()=>Md,"getEntities"),dDe=s(function(t,e){let r=Ite(t),n;for(n=e.length-1;n>=0;n--)r.attributes.push(e[n]),V.debug("Added attribute ",e[n].attributeName)},"addAttributes"),pDe=s(function(t,e,r,n){let i={entityA:t,roleA:e,entityB:r,relSpec:n};DL.push(i),V.debug("Added new relationship :",i)},"addRelationship"),mDe=s(()=>DL,"getRelationships"),gDe=s(function(){Md=new Map,DL=[],br()},"clear"),Nte={Cardinality:uDe,Identification:hDe,getConfig:s(()=>le().er,"getConfig"),addEntity:Ite,addAttributes:dDe,getEntities:fDe,addRelationship:pDe,getRelationships:mDe,clear:gDe,setAccTitle:Ar,getAccTitle:Gr,setAccDescription:Vr,getAccDescription:Ur,setDiagramTitle:an,getDiagramTitle:Qr}});var ml,yDe,Lo,Pte=_(()=>{"use strict";ml={ONLY_ONE_START:"ONLY_ONE_START",ONLY_ONE_END:"ONLY_ONE_END",ZERO_OR_ONE_START:"ZERO_OR_ONE_START",ZERO_OR_ONE_END:"ZERO_OR_ONE_END",ONE_OR_MORE_START:"ONE_OR_MORE_START",ONE_OR_MORE_END:"ONE_OR_MORE_END",ZERO_OR_MORE_START:"ZERO_OR_MORE_START",ZERO_OR_MORE_END:"ZERO_OR_MORE_END",MD_PARENT_END:"MD_PARENT_END",MD_PARENT_START:"MD_PARENT_START"},yDe=s(function(t,e){let r;t.append("defs").append("marker").attr("id",ml.MD_PARENT_START).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",ml.MD_PARENT_END).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",ml.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),t.append("defs").append("marker").attr("id",ml.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),r=t.append("defs").append("marker").attr("id",ml.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18"),r=t.append("defs").append("marker").attr("id",ml.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,0 L21,18"),t.append("defs").append("marker").attr("id",ml.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),t.append("defs").append("marker").attr("id",ml.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),r=t.append("defs").append("marker").attr("id",ml.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),r=t.append("defs").append("marker").attr("id",ml.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"insertMarkers"),Lo={ERMarkers:ml,insertMarkers:yDe}});var Bte,Fte=_(()=>{"use strict";Bte=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i});function vDe(t){return typeof t=="string"&&Bte.test(t)}var zte,$te=_(()=>{"use strict";Fte();s(vDe,"validate");zte=vDe});function Gte(t,e=0){return ca[t[e+0]]+ca[t[e+1]]+ca[t[e+2]]+ca[t[e+3]]+"-"+ca[t[e+4]]+ca[t[e+5]]+"-"+ca[t[e+6]]+ca[t[e+7]]+"-"+ca[t[e+8]]+ca[t[e+9]]+"-"+ca[t[e+10]]+ca[t[e+11]]+ca[t[e+12]]+ca[t[e+13]]+ca[t[e+14]]+ca[t[e+15]]}var ca,Vte=_(()=>{"use strict";ca=[];for(let t=0;t<256;++t)ca.push((t+256).toString(16).slice(1));s(Gte,"unsafeStringify")});function xDe(t){if(!zte(t))throw TypeError("Invalid UUID");let e,r=new Uint8Array(16);return r[0]=(e=parseInt(t.slice(0,8),16))>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=e&255,r[4]=(e=parseInt(t.slice(9,13),16))>>>8,r[5]=e&255,r[6]=(e=parseInt(t.slice(14,18),16))>>>8,r[7]=e&255,r[8]=(e=parseInt(t.slice(19,23),16))>>>8,r[9]=e&255,r[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,r[11]=e/4294967296&255,r[12]=e>>>24&255,r[13]=e>>>16&255,r[14]=e>>>8&255,r[15]=e&255,r}var Ute,qte=_(()=>{"use strict";$te();s(xDe,"parse");Ute=xDe});function bDe(t){t=unescape(encodeURIComponent(t));let e=[];for(let r=0;r{"use strict";Vte();qte();s(bDe,"stringToBytes");kDe="6ba7b810-9dad-11d1-80b4-00c04fd430c8",wDe="6ba7b811-9dad-11d1-80b4-00c04fd430c8";s(RL,"v35")});function TDe(t,e,r,n){switch(t){case 0:return e&r^~e&n;case 1:return e^r^n;case 2:return e&r^e&n^r&n;case 3:return e^r^n}}function ML(t,e){return t<>>32-e}function EDe(t){let e=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){let o=unescape(encodeURIComponent(t));t=[];for(let l=0;l>>0;p=d,d=f,f=ML(h,30)>>>0,h=u,u=y}r[0]=r[0]+u>>>0,r[1]=r[1]+h>>>0,r[2]=r[2]+f>>>0,r[3]=r[3]+d>>>0,r[4]=r[4]+p>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}var Hte,Yte=_(()=>{"use strict";s(TDe,"f");s(ML,"ROTL");s(EDe,"sha1");Hte=EDe});var CDe,IL,Xte=_(()=>{"use strict";Wte();Yte();CDe=RL("v5",80,Hte),IL=CDe});var jte=_(()=>{"use strict";Xte()});function ODe(t="",e=""){let r=t.replace(SDe,"");return`${Qte(e)}${Qte(r)}${IL(t,NDe)}`}function Qte(t=""){return t.length>0?`${t}-`:""}var SDe,_i,bv,_De,ADe,LDe,DDe,Zte,RDe,Kte,MDe,IDe,NDe,Jte,ere=_(()=>{"use strict";la();Xt();Dd();gt();it();pr();Pte();Un();Qt();jte();SDe=/[^\dA-Za-z](\W)*/g,_i={},bv=new Map,_De=s(function(t){let e=Object.keys(t);for(let r of e)_i[r]=t[r]},"setConf"),ADe=s((t,e,r)=>{let n=_i.entityPadding/3,i=_i.entityPadding/3,a=_i.fontSize*.85,o=e.node().getBBox(),l=[],u=!1,h=!1,f=0,d=0,p=0,m=0,g=o.height+n*2,y=1;r.forEach(k=>{k.attributeKeyTypeList!==void 0&&k.attributeKeyTypeList.length>0&&(u=!0),k.attributeComment!==void 0&&(h=!0)}),r.forEach(k=>{let A=`${e.node().id}-attr-${y}`,w=0,T=uh(k.attributeType),C=t.append("text").classed("er entityLabel",!0).attr("id",`${A}-type`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",le().fontFamily).style("font-size",a+"px").text(T),E=t.append("text").classed("er entityLabel",!0).attr("id",`${A}-name`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",le().fontFamily).style("font-size",a+"px").text(k.attributeName),S={};S.tn=C,S.nn=E;let R=C.node().getBBox(),D=E.node().getBBox();if(f=Math.max(f,R.width),d=Math.max(d,D.width),w=Math.max(R.height,D.height),u){let L=k.attributeKeyTypeList!==void 0?k.attributeKeyTypeList.join(","):"",P=t.append("text").classed("er entityLabel",!0).attr("id",`${A}-key`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",le().fontFamily).style("font-size",a+"px").text(L);S.kn=P;let M=P.node().getBBox();p=Math.max(p,M.width),w=Math.max(w,M.height)}if(h){let L=t.append("text").classed("er entityLabel",!0).attr("id",`${A}-comment`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",le().fontFamily).style("font-size",a+"px").text(k.attributeComment||"");S.cn=L;let P=L.node().getBBox();m=Math.max(m,P.width),w=Math.max(w,P.height)}S.height=w,l.push(S),g+=w+n*2,y+=1});let v=4;u&&(v+=2),h&&(v+=2);let x=f+d+p+m,b={width:Math.max(_i.minEntityWidth,Math.max(o.width+_i.entityPadding*2,x+i*v)),height:r.length>0?g:Math.max(_i.minEntityHeight,o.height+_i.entityPadding*2)};if(r.length>0){let k=Math.max(0,(b.width-x-i*v)/(v/2));e.attr("transform","translate("+b.width/2+","+(n+o.height/2)+")");let A=o.height+n*2,w="attributeBoxOdd";l.forEach(T=>{let C=A+n+T.height/2;T.tn.attr("transform","translate("+i+","+C+")");let E=t.insert("rect","#"+T.tn.node().id).classed(`er ${w}`,!0).attr("x",0).attr("y",A).attr("width",f+i*2+k).attr("height",T.height+n*2),S=parseFloat(E.attr("x"))+parseFloat(E.attr("width"));T.nn.attr("transform","translate("+(S+i)+","+C+")");let R=t.insert("rect","#"+T.nn.node().id).classed(`er ${w}`,!0).attr("x",S).attr("y",A).attr("width",d+i*2+k).attr("height",T.height+n*2),D=parseFloat(R.attr("x"))+parseFloat(R.attr("width"));if(u){T.kn.attr("transform","translate("+(D+i)+","+C+")");let L=t.insert("rect","#"+T.kn.node().id).classed(`er ${w}`,!0).attr("x",D).attr("y",A).attr("width",p+i*2+k).attr("height",T.height+n*2);D=parseFloat(L.attr("x"))+parseFloat(L.attr("width"))}h&&(T.cn.attr("transform","translate("+(D+i)+","+C+")"),t.insert("rect","#"+T.cn.node().id).classed(`er ${w}`,"true").attr("x",D).attr("y",A).attr("width",m+i*2+k).attr("height",T.height+n*2)),A+=T.height+n*2,w=w==="attributeBoxOdd"?"attributeBoxEven":"attributeBoxOdd"})}else b.height=Math.max(_i.minEntityHeight,g),e.attr("transform","translate("+b.width/2+","+b.height/2+")");return b},"drawAttributes"),LDe=s(function(t,e,r){let n=[...e.keys()],i;return n.forEach(function(a){let o=ODe(a,"entity");bv.set(a,o);let l=t.append("g").attr("id",o);i=i===void 0?o:i;let u="text-"+o,h=l.append("text").classed("er entityLabel",!0).attr("id",u).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","middle").style("font-family",le().fontFamily).style("font-size",_i.fontSize+"px").text(e.get(a).alias??a),{width:f,height:d}=ADe(l,h,e.get(a).attributes),m=l.insert("rect","#"+u).classed("er entityBox",!0).attr("x",0).attr("y",0).attr("width",f).attr("height",d).node().getBBox();r.setNode(o,{width:m.width,height:m.height,shape:"rect",id:o})}),i},"drawEntities"),DDe=s(function(t,e){e.nodes().forEach(function(r){r!==void 0&&e.node(r)!==void 0&&t.select("#"+r).attr("transform","translate("+(e.node(r).x-e.node(r).width/2)+","+(e.node(r).y-e.node(r).height/2)+" )")})},"adjustEntities"),Zte=s(function(t){return(t.entityA+t.roleA+t.entityB).replace(/\s/g,"")},"getEdgeName"),RDe=s(function(t,e){return t.forEach(function(r){e.setEdge(bv.get(r.entityA),bv.get(r.entityB),{relationship:r},Zte(r))}),t},"addRelationships"),Kte=0,MDe=s(function(t,e,r,n,i){Kte++;let a=r.edge(bv.get(e.entityA),bv.get(e.entityB),Zte(e)),o=ra().x(function(g){return g.x}).y(function(g){return g.y}).curve(hs),l=t.insert("path","#"+n).classed("er relationshipLine",!0).attr("d",o(a.points)).style("stroke",_i.stroke).style("fill","none");e.relSpec.relType===i.db.Identification.NON_IDENTIFYING&&l.attr("stroke-dasharray","8,8");let u="";switch(_i.arrowMarkerAbsolute&&(u=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,u=u.replace(/\(/g,"\\("),u=u.replace(/\)/g,"\\)")),e.relSpec.cardA){case i.db.Cardinality.ZERO_OR_ONE:l.attr("marker-end","url("+u+"#"+Lo.ERMarkers.ZERO_OR_ONE_END+")");break;case i.db.Cardinality.ZERO_OR_MORE:l.attr("marker-end","url("+u+"#"+Lo.ERMarkers.ZERO_OR_MORE_END+")");break;case i.db.Cardinality.ONE_OR_MORE:l.attr("marker-end","url("+u+"#"+Lo.ERMarkers.ONE_OR_MORE_END+")");break;case i.db.Cardinality.ONLY_ONE:l.attr("marker-end","url("+u+"#"+Lo.ERMarkers.ONLY_ONE_END+")");break;case i.db.Cardinality.MD_PARENT:l.attr("marker-end","url("+u+"#"+Lo.ERMarkers.MD_PARENT_END+")");break}switch(e.relSpec.cardB){case i.db.Cardinality.ZERO_OR_ONE:l.attr("marker-start","url("+u+"#"+Lo.ERMarkers.ZERO_OR_ONE_START+")");break;case i.db.Cardinality.ZERO_OR_MORE:l.attr("marker-start","url("+u+"#"+Lo.ERMarkers.ZERO_OR_MORE_START+")");break;case i.db.Cardinality.ONE_OR_MORE:l.attr("marker-start","url("+u+"#"+Lo.ERMarkers.ONE_OR_MORE_START+")");break;case i.db.Cardinality.ONLY_ONE:l.attr("marker-start","url("+u+"#"+Lo.ERMarkers.ONLY_ONE_START+")");break;case i.db.Cardinality.MD_PARENT:l.attr("marker-start","url("+u+"#"+Lo.ERMarkers.MD_PARENT_START+")");break}let h=l.node().getTotalLength(),f=l.node().getPointAtLength(h*.5),d="rel"+Kte,m=t.append("text").classed("er relationshipLabel",!0).attr("id",d).attr("x",f.x).attr("y",f.y).style("text-anchor","middle").style("dominant-baseline","middle").style("font-family",le().fontFamily).style("font-size",_i.fontSize+"px").text(e.roleA).node().getBBox();t.insert("rect","#"+d).classed("er relationshipLabelBox",!0).attr("x",f.x-m.width/2).attr("y",f.y-m.height/2).attr("width",m.width).attr("height",m.height)},"drawRelationshipFromLayout"),IDe=s(function(t,e,r,n){_i=le().er,V.info("Drawing ER diagram");let i=le().securityLevel,a;i==="sandbox"&&(a=Me("#i"+e));let l=(i==="sandbox"?Me(a.nodes()[0].contentDocument.body):Me("body")).select(`[id='${e}']`);Lo.insertMarkers(l,_i);let u;u=new ir({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:_i.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});let h=LDe(l,n.db.getEntities(),u),f=RDe(n.db.getRelationships(),u);eo(u),DDe(l,u),f.forEach(function(y){MDe(l,y,u,h,n)});let d=_i.diagramPadding;dt.insertTitle(l,"entityTitleText",_i.titleTopMargin,n.db.getDiagramTitle());let p=l.node().getBBox(),m=p.width+d*2,g=p.height+d*2;xr(l,g,m,_i.useMaxWidth),l.attr("viewBox",`${p.x-d} ${p.y-d} ${m} ${g}`)},"draw"),NDe="28e9f9db-3c8d-5aa5-9faf-44286ae5937c";s(ODe,"generateId");s(Qte,"strWithHyphen");Jte={setConf:_De,draw:IDe}});var PDe,tre,rre=_(()=>{"use strict";PDe=s(t=>`
.entityBox {
fill: ${t.mainBkg};
stroke: ${t.nodeBorder};
}
.attributeBoxOdd {
fill: ${t.attributeBackgroundColorOdd};
stroke: ${t.nodeBorder};
}
.attributeBoxEven {
fill: ${t.attributeBackgroundColorEven};
stroke: ${t.nodeBorder};
}
.relationshipLabelBox {
fill: ${t.tertiaryColor};
opacity: 0.7;
background-color: ${t.tertiaryColor};
rect {
opacity: 0.5;
}
}
.relationshipLine {
stroke: ${t.lineColor};
}
.entityTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${t.textColor};
}
#MD_PARENT_START {
fill: #f5f5f5 !important;
stroke: ${t.lineColor} !important;
stroke-width: 1;
}
#MD_PARENT_END {
fill: #f5f5f5 !important;
stroke: ${t.lineColor} !important;
stroke-width: 1;
}
`,"getStyles"),tre=PDe});var nre={};ur(nre,{diagram:()=>BDe});var BDe,ire=_(()=>{"use strict";Mte();Ote();ere();rre();BDe={parser:Rte,db:Nte,renderer:Jte,styles:tre}});function $n(t){return typeof t=="object"&&t!==null&&typeof t.$type=="string"}function ua(t){return typeof t=="object"&&t!==null&&typeof t.$refText=="string"}function NL(t){return typeof t=="object"&&t!==null&&typeof t.name=="string"&&typeof t.type=="string"&&typeof t.path=="string"}function Nd(t){return typeof t=="object"&&t!==null&&$n(t.container)&&ua(t.reference)&&typeof t.message=="string"}function to(t){return typeof t=="object"&&t!==null&&Array.isArray(t.content)}function Xh(t){return typeof t=="object"&&t!==null&&typeof t.tokenType=="object"}function kv(t){return to(t)&&typeof t.fullText=="string"}var Id,Do=_(()=>{"use strict";s($n,"isAstNode");s(ua,"isReference");s(NL,"isAstNodeDescription");s(Nd,"isLinkingError");Id=class{static{s(this,"AbstractAstReflection")}constructor(){this.subtypes={},this.allSubtypes={}}isInstance(e,r){return $n(e)&&this.isSubtype(e.$type,r)}isSubtype(e,r){if(e===r)return!0;let n=this.subtypes[e];n||(n=this.subtypes[e]={});let i=n[r];if(i!==void 0)return i;{let a=this.computeIsSubtype(e,r);return n[r]=a,a}}getAllSubTypes(e){let r=this.allSubtypes[e];if(r)return r;{let n=this.getAllTypes(),i=[];for(let a of n)this.isSubtype(a,e)&&i.push(a);return this.allSubtypes[e]=i,i}}};s(to,"isCompositeCstNode");s(Xh,"isLeafCstNode");s(kv,"isRootCstNode")});function GDe(t){return typeof t=="string"?t:typeof t>"u"?"undefined":typeof t.toString=="function"?t.toString():Object.prototype.toString.call(t)}function Ok(t){return!!t&&typeof t[Symbol.iterator]=="function"}function Wr(...t){if(t.length===1){let e=t[0];if(e instanceof ro)return e;if(Ok(e))return new ro(()=>e[Symbol.iterator](),r=>r.next());if(typeof e.length=="number")return new ro(()=>({index:0}),r=>r.index1?new ro(()=>({collIndex:0,arrIndex:0}),e=>{do{if(e.iterator){let r=e.iterator.next();if(!r.done)return r;e.iterator=void 0}if(e.array){if(e.arrIndex{"use strict";ro=class t{static{s(this,"StreamImpl")}constructor(e,r){this.startFn=e,this.nextFn=r}iterator(){let e={state:this.startFn(),next:s(()=>this.nextFn(e.state),"next"),[Symbol.iterator]:()=>e};return e}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){let e=this.iterator(),r=0,n=e.next();for(;!n.done;)r++,n=e.next();return r}toArray(){let e=[],r=this.iterator(),n;do n=r.next(),n.value!==void 0&&e.push(n.value);while(!n.done);return e}toSet(){return new Set(this)}toMap(e,r){let n=this.map(i=>[e?e(i):i,r?r(i):i]);return new Map(n)}toString(){return this.join()}concat(e){let r=e[Symbol.iterator]();return new t(()=>({first:this.startFn(),firstDone:!1}),n=>{let i;if(!n.firstDone){do if(i=this.nextFn(n.first),!i.done)return i;while(!i.done);n.firstDone=!0}do if(i=r.next(),!i.done)return i;while(!i.done);return Wa})}join(e=","){let r=this.iterator(),n="",i,a=!1;do i=r.next(),i.done||(a&&(n+=e),n+=GDe(i.value)),a=!0;while(!i.done);return n}indexOf(e,r=0){let n=this.iterator(),i=0,a=n.next();for(;!a.done;){if(i>=r&&a.value===e)return i;a=n.next(),i++}return-1}every(e){let r=this.iterator(),n=r.next();for(;!n.done;){if(!e(n.value))return!1;n=r.next()}return!0}some(e){let r=this.iterator(),n=r.next();for(;!n.done;){if(e(n.value))return!0;n=r.next()}return!1}forEach(e){let r=this.iterator(),n=0,i=r.next();for(;!i.done;)e(i.value,n),i=r.next(),n++}map(e){return new t(this.startFn,r=>{let{done:n,value:i}=this.nextFn(r);return n?Wa:{done:!1,value:e(i)}})}filter(e){return new t(this.startFn,r=>{let n;do if(n=this.nextFn(r),!n.done&&e(n.value))return n;while(!n.done);return Wa})}nonNullable(){return this.filter(e=>e!=null)}reduce(e,r){let n=this.iterator(),i=r,a=n.next();for(;!a.done;)i===void 0?i=a.value:i=e(i,a.value),a=n.next();return i}reduceRight(e,r){return this.recursiveReduce(this.iterator(),e,r)}recursiveReduce(e,r,n){let i=e.next();if(i.done)return n;let a=this.recursiveReduce(e,r,n);return a===void 0?i.value:r(a,i.value)}find(e){let r=this.iterator(),n=r.next();for(;!n.done;){if(e(n.value))return n.value;n=r.next()}}findIndex(e){let r=this.iterator(),n=0,i=r.next();for(;!i.done;){if(e(i.value))return n;i=r.next(),n++}return-1}includes(e){let r=this.iterator(),n=r.next();for(;!n.done;){if(n.value===e)return!0;n=r.next()}return!1}flatMap(e){return new t(()=>({this:this.startFn()}),r=>{do{if(r.iterator){let a=r.iterator.next();if(a.done)r.iterator=void 0;else return a}let{done:n,value:i}=this.nextFn(r.this);if(!n){let a=e(i);if(Ok(a))r.iterator=a[Symbol.iterator]();else return{done:!1,value:a}}}while(r.iterator);return Wa})}flat(e){if(e===void 0&&(e=1),e<=0)return this;let r=e>1?this.flat(e-1):this;return new t(()=>({this:r.startFn()}),n=>{do{if(n.iterator){let o=n.iterator.next();if(o.done)n.iterator=void 0;else return o}let{done:i,value:a}=r.nextFn(n.this);if(!i)if(Ok(a))n.iterator=a[Symbol.iterator]();else return{done:!1,value:a}}while(n.iterator);return Wa})}head(){let r=this.iterator().next();if(!r.done)return r.value}tail(e=1){return new t(()=>{let r=this.startFn();for(let n=0;n({size:0,state:this.startFn()}),r=>(r.size++,r.size>e?Wa:this.nextFn(r.state)))}distinct(e){let r=new Set;return this.filter(n=>{let i=e?e(n):n;return r.has(i)?!1:(r.add(i),!0)})}exclude(e,r){let n=new Set;for(let i of e){let a=r?r(i):i;n.add(a)}return this.filter(i=>{let a=r?r(i):i;return!n.has(a)})}};s(GDe,"toString");s(Ok,"isIterable");wv=new ro(()=>{},()=>Wa),Wa=Object.freeze({done:!0,value:void 0});s(Wr,"stream");pc=class extends ro{static{s(this,"TreeStreamImpl")}constructor(e,r,n){super(()=>({iterators:n?.includeRoot?[[e][Symbol.iterator]()]:[r(e)[Symbol.iterator]()],pruned:!1}),i=>{for(i.pruned&&(i.iterators.pop(),i.pruned=!1);i.iterators.length>0;){let o=i.iterators[i.iterators.length-1].next();if(o.done)i.iterators.pop();else return i.iterators.push(r(o.value)[Symbol.iterator]()),o}return Wa})}iterator(){let e={state:this.startFn(),next:s(()=>this.nextFn(e.state),"next"),prune:s(()=>{e.state.pruned=!0},"prune"),[Symbol.iterator]:()=>e};return e}};(function(t){function e(a){return a.reduce((o,l)=>o+l,0)}s(e,"sum"),t.sum=e;function r(a){return a.reduce((o,l)=>o*l,0)}s(r,"product"),t.product=r;function n(a){return a.reduce((o,l)=>Math.min(o,l))}s(n,"min"),t.min=n;function i(a){return a.reduce((o,l)=>Math.max(o,l))}s(i,"max"),t.max=i})(wm||(wm={}))});var Bk={};ur(Bk,{DefaultNameRegexp:()=>Pk,RangeComparison:()=>Eu,compareRange:()=>lre,findCommentNode:()=>FL,findDeclarationNodeAtOffset:()=>UDe,findLeafNodeAtOffset:()=>zL,findLeafNodeBeforeOffset:()=>cre,flattenCst:()=>VDe,getInteriorNodes:()=>HDe,getNextNode:()=>qDe,getPreviousNode:()=>hre,getStartlineNode:()=>WDe,inRange:()=>BL,isChildNode:()=>PL,isCommentNode:()=>OL,streamCst:()=>Od,toDocumentSegment:()=>Pd,tokenToRange:()=>Tm});function Od(t){return new pc(t,e=>to(e)?e.content:[],{includeRoot:!0})}function VDe(t){return Od(t).filter(Xh)}function PL(t,e){for(;t.container;)if(t=t.container,t===e)return!0;return!1}function Tm(t){return{start:{character:t.startColumn-1,line:t.startLine-1},end:{character:t.endColumn,line:t.endLine-1}}}function Pd(t){if(!t)return;let{offset:e,end:r,range:n}=t;return{range:n,offset:e,end:r,length:r-e}}function lre(t,e){if(t.end.linee.end.line||t.start.line===e.end.line&&t.start.character>e.end.character)return Eu.After;let r=t.start.line>e.start.line||t.start.line===e.start.line&&t.start.character>=e.start.character,n=t.end.lineEu.After}function UDe(t,e,r=Pk){if(t){if(e>0){let n=e-t.offset,i=t.text.charAt(n);r.test(i)||e--}return zL(t,e)}}function FL(t,e){if(t){let r=hre(t,!0);if(r&&OL(r,e))return r;if(kv(t)){let n=t.content.findIndex(i=>!i.hidden);for(let i=n-1;i>=0;i--){let a=t.content[i];if(OL(a,e))return a}}}}function OL(t,e){return Xh(t)&&e.includes(t.tokenType.name)}function zL(t,e){if(Xh(t))return t;if(to(t)){let r=ure(t,e,!1);if(r)return zL(r,e)}}function cre(t,e){if(Xh(t))return t;if(to(t)){let r=ure(t,e,!0);if(r)return cre(r,e)}}function ure(t,e,r){let n=0,i=t.content.length-1,a;for(;n<=i;){let o=Math.floor((n+i)/2),l=t.content[o];if(l.offset<=e&&l.end>e)return l;l.end<=e?(a=r?l:void 0,n=o+1):i=o-1}return a}function hre(t,e=!0){for(;t.container;){let r=t.container,n=r.content.indexOf(t);for(;n>0;){n--;let i=r.content[n];if(e||!i.hidden)return i}t=r}}function qDe(t,e=!0){for(;t.container;){let r=t.container,n=r.content.indexOf(t),i=r.content.length-1;for(;n{"use strict";Do();Es();s(Od,"streamCst");s(VDe,"flattenCst");s(PL,"isChildNode");s(Tm,"tokenToRange");s(Pd,"toDocumentSegment");(function(t){t[t.Before=0]="Before",t[t.After=1]="After",t[t.OverlapFront=2]="OverlapFront",t[t.OverlapBack=3]="OverlapBack",t[t.Inside=4]="Inside"})(Eu||(Eu={}));s(lre,"compareRange");s(BL,"inRange");Pk=/^[\w\p{L}]$/u;s(UDe,"findDeclarationNodeAtOffset");s(FL,"findCommentNode");s(OL,"isCommentNode");s(zL,"findLeafNodeAtOffset");s(cre,"findLeafNodeBeforeOffset");s(ure,"binarySearch");s(hre,"getPreviousNode");s(qDe,"getNextNode");s(WDe,"getStartlineNode");s(HDe,"getInteriorNodes");s(YDe,"getCommonParent");s(ore,"getParentChain")});function jh(t){throw new Error("Error! The input value was not handled.")}var Bd,Fk=_(()=>{"use strict";Bd=class extends Error{static{s(this,"ErrorWithLocation")}constructor(e,r){super(e?`${r} at ${e.range.start.line}:${e.range.start.character}`:r)}};s(jh,"assertUnreachable")});var _v={};ur(_v,{AbstractElement:()=>GL,AbstractRule:()=>Tv,AbstractType:()=>Ev,Action:()=>mD,Alternatives:()=>gD,ArrayLiteral:()=>VL,ArrayType:()=>UL,Assignment:()=>yD,BooleanLiteral:()=>WL,CharacterRange:()=>vD,Condition:()=>zk,Conjunction:()=>YL,CrossReference:()=>bD,Disjunction:()=>jL,EndOfFile:()=>kD,Grammar:()=>QL,GrammarImport:()=>dre,Group:()=>TD,InferredType:()=>ZL,Interface:()=>JL,Keyword:()=>ED,LangiumGrammarAstReflection:()=>Em,LangiumGrammarTerminals:()=>XDe,NamedArgument:()=>pre,NegatedToken:()=>CD,Negation:()=>eD,NumberLiteral:()=>rD,Parameter:()=>nD,ParameterReference:()=>iD,ParserRule:()=>sD,ReferenceType:()=>oD,RegexToken:()=>_D,ReturnType:()=>mre,RuleCall:()=>LD,SimpleType:()=>uD,StringLiteral:()=>hD,TerminalAlternatives:()=>DD,TerminalGroup:()=>MD,TerminalRule:()=>Gk,TerminalRuleCall:()=>ND,Type:()=>fD,TypeAttribute:()=>gre,TypeDefinition:()=>$L,UnionType:()=>dD,UnorderedGroup:()=>OD,UntilToken:()=>PD,ValueLiteral:()=>$k,Wildcard:()=>FD,isAbstractElement:()=>Cv,isAbstractRule:()=>jDe,isAbstractType:()=>KDe,isAction:()=>Cu,isAlternatives:()=>Wk,isArrayLiteral:()=>tRe,isArrayType:()=>qL,isAssignment:()=>yl,isBooleanLiteral:()=>HL,isCharacterRange:()=>xD,isCondition:()=>QDe,isConjunction:()=>XL,isCrossReference:()=>Fd,isDisjunction:()=>KL,isEndOfFile:()=>wD,isFeatureName:()=>ZDe,isGrammar:()=>rRe,isGrammarImport:()=>nRe,isGroup:()=>Kh,isInferredType:()=>Vk,isInterface:()=>Uk,isKeyword:()=>Mo,isNamedArgument:()=>iRe,isNegatedToken:()=>SD,isNegation:()=>tD,isNumberLiteral:()=>aRe,isParameter:()=>sRe,isParameterReference:()=>aD,isParserRule:()=>Sa,isPrimitiveType:()=>fre,isReferenceType:()=>lD,isRegexToken:()=>AD,isReturnType:()=>cD,isRuleCall:()=>vl,isSimpleType:()=>qk,isStringLiteral:()=>oRe,isTerminalAlternatives:()=>RD,isTerminalGroup:()=>ID,isTerminalRule:()=>Ro,isTerminalRuleCall:()=>Hk,isType:()=>Sv,isTypeAttribute:()=>lRe,isTypeDefinition:()=>JDe,isUnionType:()=>pD,isUnorderedGroup:()=>Yk,isUntilToken:()=>BD,isValueLiteral:()=>eRe,isWildcard:()=>zD,reflection:()=>Gt});function jDe(t){return Gt.isInstance(t,Tv)}function KDe(t){return Gt.isInstance(t,Ev)}function QDe(t){return Gt.isInstance(t,zk)}function ZDe(t){return fre(t)||t==="current"||t==="entry"||t==="extends"||t==="false"||t==="fragment"||t==="grammar"||t==="hidden"||t==="import"||t==="interface"||t==="returns"||t==="terminal"||t==="true"||t==="type"||t==="infer"||t==="infers"||t==="with"||typeof t=="string"&&/\^?[_a-zA-Z][\w_]*/.test(t)}function fre(t){return t==="string"||t==="number"||t==="boolean"||t==="Date"||t==="bigint"}function JDe(t){return Gt.isInstance(t,$L)}function eRe(t){return Gt.isInstance(t,$k)}function Cv(t){return Gt.isInstance(t,GL)}function tRe(t){return Gt.isInstance(t,VL)}function qL(t){return Gt.isInstance(t,UL)}function HL(t){return Gt.isInstance(t,WL)}function XL(t){return Gt.isInstance(t,YL)}function KL(t){return Gt.isInstance(t,jL)}function rRe(t){return Gt.isInstance(t,QL)}function nRe(t){return Gt.isInstance(t,dre)}function Vk(t){return Gt.isInstance(t,ZL)}function Uk(t){return Gt.isInstance(t,JL)}function iRe(t){return Gt.isInstance(t,pre)}function tD(t){return Gt.isInstance(t,eD)}function aRe(t){return Gt.isInstance(t,rD)}function sRe(t){return Gt.isInstance(t,nD)}function aD(t){return Gt.isInstance(t,iD)}function Sa(t){return Gt.isInstance(t,sD)}function lD(t){return Gt.isInstance(t,oD)}function cD(t){return Gt.isInstance(t,mre)}function qk(t){return Gt.isInstance(t,uD)}function oRe(t){return Gt.isInstance(t,hD)}function Ro(t){return Gt.isInstance(t,Gk)}function Sv(t){return Gt.isInstance(t,fD)}function lRe(t){return Gt.isInstance(t,gre)}function pD(t){return Gt.isInstance(t,dD)}function Cu(t){return Gt.isInstance(t,mD)}function Wk(t){return Gt.isInstance(t,gD)}function yl(t){return Gt.isInstance(t,yD)}function xD(t){return Gt.isInstance(t,vD)}function Fd(t){return Gt.isInstance(t,bD)}function wD(t){return Gt.isInstance(t,kD)}function Kh(t){return Gt.isInstance(t,TD)}function Mo(t){return Gt.isInstance(t,ED)}function SD(t){return Gt.isInstance(t,CD)}function AD(t){return Gt.isInstance(t,_D)}function vl(t){return Gt.isInstance(t,LD)}function RD(t){return Gt.isInstance(t,DD)}function ID(t){return Gt.isInstance(t,MD)}function Hk(t){return Gt.isInstance(t,ND)}function Yk(t){return Gt.isInstance(t,OD)}function BD(t){return Gt.isInstance(t,PD)}function zD(t){return Gt.isInstance(t,FD)}var XDe,Tv,Ev,zk,$L,$k,GL,VL,UL,WL,YL,jL,QL,dre,ZL,JL,pre,eD,rD,nD,iD,sD,oD,mre,uD,hD,Gk,fD,gre,dD,mD,gD,yD,vD,bD,kD,TD,ED,CD,_D,LD,DD,MD,ND,OD,PD,FD,Em,Gt,mc=_(()=>{"use strict";Do();XDe={ID:/\^?[_a-zA-Z][\w_]*/,STRING:/"(\\.|[^"\\])*"|'(\\.|[^'\\])*'/,NUMBER:/NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity)/,RegexLiteral:/\/(?![*+?])(?:[^\r\n\[/\\]|\\.|\[(?:[^\r\n\]\\]|\\.)*\])+\/[a-z]*/,WS:/\s+/,ML_COMMENT:/\/\*[\s\S]*?\*\//,SL_COMMENT:/\/\/[^\n\r]*/},Tv="AbstractRule";s(jDe,"isAbstractRule");Ev="AbstractType";s(KDe,"isAbstractType");zk="Condition";s(QDe,"isCondition");s(ZDe,"isFeatureName");s(fre,"isPrimitiveType");$L="TypeDefinition";s(JDe,"isTypeDefinition");$k="ValueLiteral";s(eRe,"isValueLiteral");GL="AbstractElement";s(Cv,"isAbstractElement");VL="ArrayLiteral";s(tRe,"isArrayLiteral");UL="ArrayType";s(qL,"isArrayType");WL="BooleanLiteral";s(HL,"isBooleanLiteral");YL="Conjunction";s(XL,"isConjunction");jL="Disjunction";s(KL,"isDisjunction");QL="Grammar";s(rRe,"isGrammar");dre="GrammarImport";s(nRe,"isGrammarImport");ZL="InferredType";s(Vk,"isInferredType");JL="Interface";s(Uk,"isInterface");pre="NamedArgument";s(iRe,"isNamedArgument");eD="Negation";s(tD,"isNegation");rD="NumberLiteral";s(aRe,"isNumberLiteral");nD="Parameter";s(sRe,"isParameter");iD="ParameterReference";s(aD,"isParameterReference");sD="ParserRule";s(Sa,"isParserRule");oD="ReferenceType";s(lD,"isReferenceType");mre="ReturnType";s(cD,"isReturnType");uD="SimpleType";s(qk,"isSimpleType");hD="StringLiteral";s(oRe,"isStringLiteral");Gk="TerminalRule";s(Ro,"isTerminalRule");fD="Type";s(Sv,"isType");gre="TypeAttribute";s(lRe,"isTypeAttribute");dD="UnionType";s(pD,"isUnionType");mD="Action";s(Cu,"isAction");gD="Alternatives";s(Wk,"isAlternatives");yD="Assignment";s(yl,"isAssignment");vD="CharacterRange";s(xD,"isCharacterRange");bD="CrossReference";s(Fd,"isCrossReference");kD="EndOfFile";s(wD,"isEndOfFile");TD="Group";s(Kh,"isGroup");ED="Keyword";s(Mo,"isKeyword");CD="NegatedToken";s(SD,"isNegatedToken");_D="RegexToken";s(AD,"isRegexToken");LD="RuleCall";s(vl,"isRuleCall");DD="TerminalAlternatives";s(RD,"isTerminalAlternatives");MD="TerminalGroup";s(ID,"isTerminalGroup");ND="TerminalRuleCall";s(Hk,"isTerminalRuleCall");OD="UnorderedGroup";s(Yk,"isUnorderedGroup");PD="UntilToken";s(BD,"isUntilToken");FD="Wildcard";s(zD,"isWildcard");Em=class extends Id{static{s(this,"LangiumGrammarAstReflection")}getAllTypes(){return["AbstractElement","AbstractRule","AbstractType","Action","Alternatives","ArrayLiteral","ArrayType","Assignment","BooleanLiteral","CharacterRange","Condition","Conjunction","CrossReference","Disjunction","EndOfFile","Grammar","GrammarImport","Group","InferredType","Interface","Keyword","NamedArgument","NegatedToken","Negation","NumberLiteral","Parameter","ParameterReference","ParserRule","ReferenceType","RegexToken","ReturnType","RuleCall","SimpleType","StringLiteral","TerminalAlternatives","TerminalGroup","TerminalRule","TerminalRuleCall","Type","TypeAttribute","TypeDefinition","UnionType","UnorderedGroup","UntilToken","ValueLiteral","Wildcard"]}computeIsSubtype(e,r){switch(e){case mD:case gD:case yD:case vD:case bD:case kD:case TD:case ED:case CD:case _D:case LD:case DD:case MD:case ND:case OD:case PD:case FD:return this.isSubtype(GL,r);case VL:case rD:case hD:return this.isSubtype($k,r);case UL:case oD:case uD:case dD:return this.isSubtype($L,r);case WL:return this.isSubtype(zk,r)||this.isSubtype($k,r);case YL:case jL:case eD:case iD:return this.isSubtype(zk,r);case ZL:case JL:case fD:return this.isSubtype(Ev,r);case sD:return this.isSubtype(Tv,r)||this.isSubtype(Ev,r);case Gk:return this.isSubtype(Tv,r);default:return!1}}getReferenceType(e){let r=`${e.container.$type}:${e.property}`;switch(r){case"Action:type":case"CrossReference:type":case"Interface:superTypes":case"ParserRule:returnType":case"SimpleType:typeRef":return Ev;case"Grammar:hiddenTokens":case"ParserRule:hiddenTokens":case"RuleCall:rule":return Tv;case"Grammar:usedGrammars":return QL;case"NamedArgument:parameter":case"ParameterReference:parameter":return nD;case"TerminalRuleCall:rule":return Gk;default:throw new Error(`${r} is not a valid reference id.`)}}getTypeMetaData(e){switch(e){case"AbstractElement":return{name:"AbstractElement",properties:[{name:"cardinality"},{name:"lookahead"}]};case"ArrayLiteral":return{name:"ArrayLiteral",properties:[{name:"elements",defaultValue:[]}]};case"ArrayType":return{name:"ArrayType",properties:[{name:"elementType"}]};case"BooleanLiteral":return{name:"BooleanLiteral",properties:[{name:"true",defaultValue:!1}]};case"Conjunction":return{name:"Conjunction",properties:[{name:"left"},{name:"right"}]};case"Disjunction":return{name:"Disjunction",properties:[{name:"left"},{name:"right"}]};case"Grammar":return{name:"Grammar",properties:[{name:"definesHiddenTokens",defaultValue:!1},{name:"hiddenTokens",defaultValue:[]},{name:"imports",defaultValue:[]},{name:"interfaces",defaultValue:[]},{name:"isDeclared",defaultValue:!1},{name:"name"},{name:"rules",defaultValue:[]},{name:"types",defaultValue:[]},{name:"usedGrammars",defaultValue:[]}]};case"GrammarImport":return{name:"GrammarImport",properties:[{name:"path"}]};case"InferredType":return{name:"InferredType",properties:[{name:"name"}]};case"Interface":return{name:"Interface",properties:[{name:"attributes",defaultValue:[]},{name:"name"},{name:"superTypes",defaultValue:[]}]};case"NamedArgument":return{name:"NamedArgument",properties:[{name:"calledByName",defaultValue:!1},{name:"parameter"},{name:"value"}]};case"Negation":return{name:"Negation",properties:[{name:"value"}]};case"NumberLiteral":return{name:"NumberLiteral",properties:[{name:"value"}]};case"Parameter":return{name:"Parameter",properties:[{name:"name"}]};case"ParameterReference":return{name:"ParameterReference",properties:[{name:"parameter"}]};case"ParserRule":return{name:"ParserRule",properties:[{name:"dataType"},{name:"definesHiddenTokens",defaultValue:!1},{name:"definition"},{name:"entry",defaultValue:!1},{name:"fragment",defaultValue:!1},{name:"hiddenTokens",defaultValue:[]},{name:"inferredType"},{name:"name"},{name:"parameters",defaultValue:[]},{name:"returnType"},{name:"wildcard",defaultValue:!1}]};case"ReferenceType":return{name:"ReferenceType",properties:[{name:"referenceType"}]};case"ReturnType":return{name:"ReturnType",properties:[{name:"name"}]};case"SimpleType":return{name:"SimpleType",properties:[{name:"primitiveType"},{name:"stringType"},{name:"typeRef"}]};case"StringLiteral":return{name:"StringLiteral",properties:[{name:"value"}]};case"TerminalRule":return{name:"TerminalRule",properties:[{name:"definition"},{name:"fragment",defaultValue:!1},{name:"hidden",defaultValue:!1},{name:"name"},{name:"type"}]};case"Type":return{name:"Type",properties:[{name:"name"},{name:"type"}]};case"TypeAttribute":return{name:"TypeAttribute",properties:[{name:"defaultValue"},{name:"isOptional",defaultValue:!1},{name:"name"},{name:"type"}]};case"UnionType":return{name:"UnionType",properties:[{name:"types",defaultValue:[]}]};case"Action":return{name:"Action",properties:[{name:"cardinality"},{name:"feature"},{name:"inferredType"},{name:"lookahead"},{name:"operator"},{name:"type"}]};case"Alternatives":return{name:"Alternatives",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case"Assignment":return{name:"Assignment",properties:[{name:"cardinality"},{name:"feature"},{name:"lookahead"},{name:"operator"},{name:"terminal"}]};case"CharacterRange":return{name:"CharacterRange",properties:[{name:"cardinality"},{name:"left"},{name:"lookahead"},{name:"right"}]};case"CrossReference":return{name:"CrossReference",properties:[{name:"cardinality"},{name:"deprecatedSyntax",defaultValue:!1},{name:"lookahead"},{name:"terminal"},{name:"type"}]};case"EndOfFile":return{name:"EndOfFile",properties:[{name:"cardinality"},{name:"lookahead"}]};case"Group":return{name:"Group",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"guardCondition"},{name:"lookahead"}]};case"Keyword":return{name:"Keyword",properties:[{name:"cardinality"},{name:"lookahead"},{name:"value"}]};case"NegatedToken":return{name:"NegatedToken",properties:[{name:"cardinality"},{name:"lookahead"},{name:"terminal"}]};case"RegexToken":return{name:"RegexToken",properties:[{name:"cardinality"},{name:"lookahead"},{name:"regex"}]};case"RuleCall":return{name:"RuleCall",properties:[{name:"arguments",defaultValue:[]},{name:"cardinality"},{name:"lookahead"},{name:"rule"}]};case"TerminalAlternatives":return{name:"TerminalAlternatives",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case"TerminalGroup":return{name:"TerminalGroup",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case"TerminalRuleCall":return{name:"TerminalRuleCall",properties:[{name:"cardinality"},{name:"lookahead"},{name:"rule"}]};case"UnorderedGroup":return{name:"UnorderedGroup",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case"UntilToken":return{name:"UntilToken",properties:[{name:"cardinality"},{name:"lookahead"},{name:"terminal"}]};case"Wildcard":return{name:"Wildcard",properties:[{name:"cardinality"},{name:"lookahead"}]};default:return{name:e,properties:[]}}}},Gt=new Em});var jk={};ur(jk,{assignMandatoryProperties:()=>VD,copyAstNode:()=>GD,findLocalReferences:()=>uRe,findRootNode:()=>yre,getContainerOfType:()=>zd,getDocument:()=>Ai,hasContainerOfType:()=>cRe,linkContentToContainer:()=>Xk,streamAllContents:()=>gc,streamAst:()=>Io,streamContents:()=>Av,streamReferences:()=>Cm});function Xk(t){for(let[e,r]of Object.entries(t))e.startsWith("$")||(Array.isArray(r)?r.forEach((n,i)=>{$n(n)&&(n.$container=t,n.$containerProperty=e,n.$containerIndex=i)}):$n(r)&&(r.$container=t,r.$containerProperty=e))}function zd(t,e){let r=t;for(;r;){if(e(r))return r;r=r.$container}}function cRe(t,e){let r=t;for(;r;){if(e(r))return!0;r=r.$container}return!1}function Ai(t){let r=yre(t).$document;if(!r)throw new Error("AST node has no document.");return r}function yre(t){for(;t.$container;)t=t.$container;return t}function Av(t,e){if(!t)throw new Error("Node must be an AstNode.");let r=e?.range;return new ro(()=>({keys:Object.keys(t),keyIndex:0,arrayIndex:0}),n=>{for(;n.keyIndexAv(r,e))}function Io(t,e){if(t){if(e?.range&&!$D(t,e.range))return new pc(t,()=>[])}else throw new Error("Root node must be an AstNode.");return new pc(t,r=>Av(r,e),{includeRoot:!0})}function $D(t,e){var r;if(!e)return!0;let n=(r=t.$cstNode)===null||r===void 0?void 0:r.range;return n?BL(n,e):!1}function Cm(t){return new ro(()=>({keys:Object.keys(t),keyIndex:0,arrayIndex:0}),e=>{for(;e.keyIndex{Cm(n).forEach(i=>{i.reference.ref===t&&r.push(i.reference)})}),Wr(r)}function VD(t,e){let r=t.getTypeMetaData(e.$type),n=e;for(let i of r.properties)i.defaultValue!==void 0&&n[i.name]===void 0&&(n[i.name]=vre(i.defaultValue))}function vre(t){return Array.isArray(t)?[...t.map(vre)]:t}function GD(t,e){let r={$type:t.$type};for(let[n,i]of Object.entries(t))if(!n.startsWith("$"))if($n(i))r[n]=GD(i,e);else if(ua(i))r[n]=e(r,n,i.$refNode,i.$refText);else if(Array.isArray(i)){let a=[];for(let o of i)$n(o)?a.push(GD(o,e)):ua(o)?a.push(e(r,n,o.$refNode,o.$refText)):a.push(o);r[n]=a}else r[n]=i;return Xk(r),r}var Ha=_(()=>{"use strict";Do();Es();gl();s(Xk,"linkContentToContainer");s(zd,"getContainerOfType");s(cRe,"hasContainerOfType");s(Ai,"getDocument");s(yre,"findRootNode");s(Av,"streamContents");s(gc,"streamAllContents");s(Io,"streamAst");s($D,"isAstNodeInRange");s(Cm,"streamReferences");s(uRe,"findLocalReferences");s(VD,"assignMandatoryProperties");s(vre,"copyDefaultValue");s(GD,"copyAstNode")});function zt(t){return t.charCodeAt(0)}function Kk(t,e){Array.isArray(t)?t.forEach(function(r){e.push(r)}):e.push(t)}function Sm(t,e){if(t[e]===!0)throw"duplicate flag "+e;let r=t[e];t[e]=!0}function $d(t){if(t===void 0)throw Error("Internal Error - Should never get here!");return!0}function Lv(){throw Error("Internal Error - Should never get here!")}function UD(t){return t.type==="Character"}var qD=_(()=>{"use strict";s(zt,"cc");s(Kk,"insertToSet");s(Sm,"addFlag");s($d,"ASSERT_EXISTS");s(Lv,"ASSERT_NEVER_REACH_HERE");s(UD,"isCharacter")});var Dv,Rv,WD,xre=_(()=>{"use strict";qD();Dv=[];for(let t=zt("0");t<=zt("9");t++)Dv.push(t);Rv=[zt("_")].concat(Dv);for(let t=zt("a");t<=zt("z");t++)Rv.push(t);for(let t=zt("A");t<=zt("Z");t++)Rv.push(t);WD=[zt(" "),zt("\f"),zt(`
`),zt("\r"),zt(" "),zt("\v"),zt(" "),zt("\xA0"),zt("\u1680"),zt("\u2000"),zt("\u2001"),zt("\u2002"),zt("\u2003"),zt("\u2004"),zt("\u2005"),zt("\u2006"),zt("\u2007"),zt("\u2008"),zt("\u2009"),zt("\u200A"),zt("\u2028"),zt("\u2029"),zt("\u202F"),zt("\u205F"),zt("\u3000"),zt("\uFEFF")]});var hRe,Qk,fRe,Gd,bre=_(()=>{"use strict";qD();xre();hRe=/[0-9a-fA-F]/,Qk=/[0-9]/,fRe=/[1-9]/,Gd=class{static{s(this,"RegExpParser")}constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");let r=this.disjunction();this.consumeChar("/");let n={type:"Flags",loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":Sm(n,"global");break;case"i":Sm(n,"ignoreCase");break;case"m":Sm(n,"multiLine");break;case"u":Sm(n,"unicode");break;case"y":Sm(n,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:n,value:r,loc:this.loc(0)}}disjunction(){let e=[],r=this.idx;for(e.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e,loc:this.loc(r)}}alternative(){let e=[],r=this.idx;for(;this.isTerm();)e.push(this.term());return{type:"Alternative",value:e,loc:this.loc(r)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){let e=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(e)};case"$":return{type:"EndAnchor",loc:this.loc(e)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(e)};case"B":return{type:"NonWordBoundary",loc:this.loc(e)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let r;switch(this.popChar()){case"=":r="Lookahead";break;case"!":r="NegativeLookahead";break}$d(r);let n=this.disjunction();return this.consumeChar(")"),{type:r,value:n,loc:this.loc(e)}}return Lv()}quantifier(e=!1){let r,n=this.idx;switch(this.popChar()){case"*":r={atLeast:0,atMost:1/0};break;case"+":r={atLeast:1,atMost:1/0};break;case"?":r={atLeast:0,atMost:1};break;case"{":let i=this.integerIncludingZero();switch(this.popChar()){case"}":r={atLeast:i,atMost:i};break;case",":let a;this.isDigit()?(a=this.integerIncludingZero(),r={atLeast:i,atMost:a}):r={atLeast:i,atMost:1/0},this.consumeChar("}");break}if(e===!0&&r===void 0)return;$d(r);break}if(!(e===!0&&r===void 0)&&$d(r))return this.peekChar(0)==="?"?(this.consumeChar("?"),r.greedy=!1):r.greedy=!0,r.type="Quantifier",r.loc=this.loc(n),r}atom(){let e,r=this.idx;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group();break}return e===void 0&&this.isPatternCharacter()&&(e=this.patternCharacter()),$d(e)?(e.loc=this.loc(r),this.isQuantifier()&&(e.quantifier=this.quantifier()),e):Lv()}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[zt(`
`),zt("\r"),zt("\u2028"),zt("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let e,r=!1;switch(this.popChar()){case"d":e=Dv;break;case"D":e=Dv,r=!0;break;case"s":e=WD;break;case"S":e=WD,r=!0;break;case"w":e=Rv;break;case"W":e=Rv,r=!0;break}return $d(e)?{type:"Set",value:e,complement:r}:Lv()}controlEscapeAtom(){let e;switch(this.popChar()){case"f":e=zt("\f");break;case"n":e=zt(`
`);break;case"r":e=zt("\r");break;case"t":e=zt(" ");break;case"v":e=zt("\v");break}return $d(e)?{type:"Character",value:e}:Lv()}controlLetterEscapeAtom(){this.consumeChar("c");let e=this.popChar();if(/[a-zA-Z]/.test(e)===!1)throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:zt("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){let e=this.popChar();return{type:"Character",value:zt(e)}}classPatternCharacterAtom(){switch(this.peekChar()){case`
`:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:let e=this.popChar();return{type:"Character",value:zt(e)}}}characterClass(){let e=[],r=!1;for(this.consumeChar("["),this.peekChar(0)==="^"&&(this.consumeChar("^"),r=!0);this.isClassAtom();){let n=this.classAtom(),i=n.type==="Character";if(UD(n)&&this.isRangeDash()){this.consumeChar("-");let a=this.classAtom(),o=a.type==="Character";if(UD(a)){if(a.value=this.input.length)throw Error("Unexpected end of input");this.idx++}loc(e){return{begin:e,end:this.idx}}}});var yc,kre=_(()=>{"use strict";yc=class{static{s(this,"BaseRegExpVisitor")}visitChildren(e){for(let r in e){let n=e[r];e.hasOwnProperty(r)&&(n.type!==void 0?this.visit(n):Array.isArray(n)&&n.forEach(i=>{this.visit(i)},this))}}visit(e){switch(e.type){case"Pattern":this.visitPattern(e);break;case"Flags":this.visitFlags(e);break;case"Disjunction":this.visitDisjunction(e);break;case"Alternative":this.visitAlternative(e);break;case"StartAnchor":this.visitStartAnchor(e);break;case"EndAnchor":this.visitEndAnchor(e);break;case"WordBoundary":this.visitWordBoundary(e);break;case"NonWordBoundary":this.visitNonWordBoundary(e);break;case"Lookahead":this.visitLookahead(e);break;case"NegativeLookahead":this.visitNegativeLookahead(e);break;case"Character":this.visitCharacter(e);break;case"Set":this.visitSet(e);break;case"Group":this.visitGroup(e);break;case"GroupBackReference":this.visitGroupBackReference(e);break;case"Quantifier":this.visitQuantifier(e);break}this.visitChildren(e)}visitPattern(e){}visitFlags(e){}visitDisjunction(e){}visitAlternative(e){}visitStartAnchor(e){}visitEndAnchor(e){}visitWordBoundary(e){}visitNonWordBoundary(e){}visitLookahead(e){}visitNegativeLookahead(e){}visitCharacter(e){}visitSet(e){}visitGroup(e){}visitGroupBackReference(e){}visitQuantifier(e){}}});var Mv=_(()=>{"use strict";bre();kre()});var Jk={};ur(Jk,{NEWLINE_REGEXP:()=>YD,escapeRegExp:()=>Ud,getCaseInsensitivePattern:()=>jD,getTerminalParts:()=>dRe,isMultilineComment:()=>XD,isWhitespace:()=>Zk,partialMatches:()=>KD,partialRegExp:()=>Tre});function dRe(t){try{typeof t!="string"&&(t=t.source),t=`/${t}/`;let e=wre.pattern(t),r=[];for(let n of e.value.value)Vd.reset(t),Vd.visit(n),r.push({start:Vd.startRegexp,end:Vd.endRegex});return r}catch{return[]}}function XD(t){try{return typeof t=="string"&&(t=new RegExp(t)),t=t.toString(),Vd.reset(t),Vd.visit(wre.pattern(t)),Vd.multiline}catch{return!1}}function Zk(t){return(typeof t=="string"?new RegExp(t):t).test(" ")}function Ud(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function jD(t){return Array.prototype.map.call(t,e=>/\w/.test(e)?`[${e.toLowerCase()}${e.toUpperCase()}]`:Ud(e)).join("")}function KD(t,e){let r=Tre(t),n=e.match(r);return!!n&&n[0].length>0}function Tre(t){typeof t=="string"&&(t=new RegExp(t));let e=t,r=t.source,n=0;function i(){let a="",o;function l(h){a+=r.substr(n,h),n+=h}s(l,"appendRaw");function u(h){a+="(?:"+r.substr(n,h)+"|$)",n+=h}for(s(u,"appendOptional");n",n)-n+1);break;default:u(2);break}break;case"[":o=/\[(?:\\.|.)*?\]/g,o.lastIndex=n,o=o.exec(r)||[],u(o[0].length);break;case"|":case"^":case"$":case"*":case"+":case"?":l(1);break;case"{":o=/\{\d+,?\d*\}/g,o.lastIndex=n,o=o.exec(r),o?l(o[0].length):u(1);break;case"(":if(r[n+1]==="?")switch(r[n+2]){case":":a+="(?:",n+=3,a+=i()+"|$)";break;case"=":a+="(?=",n+=3,a+=i()+")";break;case"!":o=n,n+=3,i(),a+=r.substr(o,n-o);break;case"<":switch(r[n+3]){case"=":case"!":o=n,n+=4,i(),a+=r.substr(o,n-o);break;default:l(r.indexOf(">",n)-n+1),a+=i()+"|$)";break}break}else l(1),a+=i()+"|$)";break;case")":return++n,a;default:u(1);break}return a}return s(i,"process"),new RegExp(i(),t.flags)}var YD,wre,HD,Vd,_m=_(()=>{"use strict";Mv();YD=/\r?\n/gm,wre=new Gd,HD=class extends yc{static{s(this,"TerminalRegExpVisitor")}constructor(){super(...arguments),this.isStarting=!0,this.endRegexpStack=[],this.multiline=!1}get endRegex(){return this.endRegexpStack.join("")}reset(e){this.multiline=!1,this.regex=e,this.startRegexp="",this.isStarting=!0,this.endRegexpStack=[]}visitGroup(e){e.quantifier&&(this.isStarting=!1,this.endRegexpStack=[])}visitCharacter(e){let r=String.fromCharCode(e.value);if(!this.multiline&&r===`
`&&(this.multiline=!0),e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{let n=Ud(r);this.endRegexpStack.push(n),this.isStarting&&(this.startRegexp+=n)}}visitSet(e){if(!this.multiline){let r=this.regex.substring(e.loc.begin,e.loc.end),n=new RegExp(r);this.multiline=!!`
`.match(n)}if(e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{let r=this.regex.substring(e.loc.begin,e.loc.end);this.endRegexpStack.push(r),this.isStarting&&(this.startRegexp+=r)}}visitChildren(e){e.type==="Group"&&e.quantifier||super.visitChildren(e)}},Vd=new HD;s(dRe,"getTerminalParts");s(XD,"isMultilineComment");s(Zk,"isWhitespace");s(Ud,"escapeRegExp");s(jD,"getCaseInsensitivePattern");s(KD,"partialMatches");s(Tre,"partialRegExp")});var t6={};ur(t6,{findAssignment:()=>aR,findNameAssignment:()=>e6,findNodeForKeyword:()=>nR,findNodeForProperty:()=>Nv,findNodesForKeyword:()=>pRe,findNodesForKeywordInternal:()=>iR,findNodesForProperty:()=>tR,getActionAtElement:()=>Are,getActionType:()=>Dre,getAllReachableRules:()=>Iv,getCrossReferenceTerminal:()=>JD,getEntryRule:()=>Ere,getExplicitRuleType:()=>sR,getHiddenRules:()=>Cre,getRuleType:()=>oR,getTypeName:()=>qd,isArrayCardinality:()=>gRe,isArrayOperator:()=>yRe,isCommentTerminal:()=>eR,isDataType:()=>vRe,isDataTypeRule:()=>Ov,isOptionalCardinality:()=>mRe,terminalRegex:()=>Am});function Ere(t){return t.rules.find(e=>Sa(e)&&e.entry)}function Cre(t){return t.rules.filter(e=>Ro(e)&&e.hidden)}function Iv(t,e){let r=new Set,n=Ere(t);if(!n)return new Set(t.rules);let i=[n].concat(Cre(t));for(let o of i)Sre(o,r,e);let a=new Set;for(let o of t.rules)(r.has(o.name)||Ro(o)&&o.hidden)&&a.add(o);return a}function Sre(t,e,r){e.add(t.name),gc(t).forEach(n=>{if(vl(n)||r&&Hk(n)){let i=n.rule.ref;i&&!e.has(i.name)&&Sre(i,e,r)}})}function JD(t){if(t.terminal)return t.terminal;if(t.type.ref){let e=e6(t.type.ref);return e?.terminal}}function eR(t){return t.hidden&&!Am(t).test(" ")}function tR(t,e){return!t||!e?[]:rR(t,e,t.astNode,!0)}function Nv(t,e,r){if(!t||!e)return;let n=rR(t,e,t.astNode,!0);if(n.length!==0)return r!==void 0?r=Math.max(0,Math.min(r,n.length-1)):r=0,n[r]}function rR(t,e,r,n){if(!n){let i=zd(t.grammarSource,yl);if(i&&i.feature===e)return[t]}return to(t)&&t.astNode===r?t.content.flatMap(i=>rR(i,e,r,!1)):[]}function pRe(t,e){return t?iR(t,e,t?.astNode):[]}function nR(t,e,r){if(!t)return;let n=iR(t,e,t?.astNode);if(n.length!==0)return r!==void 0?r=Math.max(0,Math.min(r,n.length-1)):r=0,n[r]}function iR(t,e,r){if(t.astNode!==r)return[];if(Mo(t.grammarSource)&&t.grammarSource.value===e)return[t];let n=Od(t).iterator(),i,a=[];do if(i=n.next(),!i.done){let o=i.value;o.astNode===r?Mo(o.grammarSource)&&o.grammarSource.value===e&&a.push(o):n.prune()}while(!i.done);return a}function aR(t){var e;let r=t.astNode;for(;r===((e=t.container)===null||e===void 0?void 0:e.astNode);){let n=zd(t.grammarSource,yl);if(n)return n;t=t.container}}function e6(t){let e=t;return Vk(e)&&(Cu(e.$container)?e=e.$container.$container:Sa(e.$container)?e=e.$container:jh(e.$container)),_re(t,e,new Map)}function _re(t,e,r){var n;function i(a,o){let l;return zd(a,yl)||(l=_re(o,o,r)),r.set(t,l),l}if(s(i,"go"),r.has(t))return r.get(t);r.set(t,void 0);for(let a of gc(e)){if(yl(a)&&a.feature.toLowerCase()==="name")return r.set(t,a),a;if(vl(a)&&Sa(a.rule.ref))return i(a,a.rule.ref);if(qk(a)&&(!((n=a.typeRef)===null||n===void 0)&&n.ref))return i(a,a.typeRef.ref)}}function Are(t){let e=t.$container;if(Kh(e)){let r=e.elements,n=r.indexOf(t);for(let i=n-1;i>=0;i--){let a=r[i];if(Cu(a))return a;{let o=gc(r[i]).find(Cu);if(o)return o}}}if(Cv(e))return Are(e)}function mRe(t,e){return t==="?"||t==="*"||Kh(e)&&!!e.guardCondition}function gRe(t){return t==="*"||t==="+"}function yRe(t){return t==="+="}function Ov(t){return Lre(t,new Set)}function Lre(t,e){if(e.has(t))return!0;e.add(t);for(let r of gc(t))if(vl(r)){if(!r.rule.ref||Sa(r.rule.ref)&&!Lre(r.rule.ref,e))return!1}else{if(yl(r))return!1;if(Cu(r))return!1}return!!t.definition}function vRe(t){return ZD(t.type,new Set)}function ZD(t,e){if(e.has(t))return!0;if(e.add(t),qL(t))return!1;if(lD(t))return!1;if(pD(t))return t.types.every(r=>ZD(r,e));if(qk(t)){if(t.primitiveType!==void 0)return!0;if(t.stringType!==void 0)return!0;if(t.typeRef!==void 0){let r=t.typeRef.ref;return Sv(r)?ZD(r.type,e):!1}else return!1}else return!1}function sR(t){if(t.inferredType)return t.inferredType.name;if(t.dataType)return t.dataType;if(t.returnType){let e=t.returnType.ref;if(e){if(Sa(e))return e.name;if(Uk(e)||Sv(e))return e.name}}}function qd(t){var e;if(Sa(t))return Ov(t)?t.name:(e=sR(t))!==null&&e!==void 0?e:t.name;if(Uk(t)||Sv(t)||cD(t))return t.name;if(Cu(t)){let r=Dre(t);if(r)return r}else if(Vk(t))return t.name;throw new Error("Cannot get name of Unknown Type")}function Dre(t){var e;if(t.inferredType)return t.inferredType.name;if(!((e=t.type)===null||e===void 0)&&e.ref)return qd(t.type.ref)}function oR(t){var e,r,n;return Ro(t)?(r=(e=t.type)===null||e===void 0?void 0:e.name)!==null&&r!==void 0?r:"string":Ov(t)?t.name:(n=sR(t))!==null&&n!==void 0?n:t.name}function Am(t){let e={s:!1,i:!1,u:!1},r=Lm(t.definition,e),n=Object.entries(e).filter(([,i])=>i).map(([i])=>i).join("");return new RegExp(r,n)}function Lm(t,e){if(RD(t))return xRe(t);if(ID(t))return bRe(t);if(xD(t))return TRe(t);if(Hk(t)){let r=t.rule.ref;if(!r)throw new Error("Missing rule reference.");return Su(Lm(r.definition),{cardinality:t.cardinality,lookahead:t.lookahead})}else{if(SD(t))return wRe(t);if(BD(t))return kRe(t);if(AD(t)){let r=t.regex.lastIndexOf("/"),n=t.regex.substring(1,r),i=t.regex.substring(r+1);return e&&(e.i=i.includes("i"),e.s=i.includes("s"),e.u=i.includes("u")),Su(n,{cardinality:t.cardinality,lookahead:t.lookahead,wrap:!1})}else{if(zD(t))return Su(lR,{cardinality:t.cardinality,lookahead:t.lookahead});throw new Error(`Invalid terminal element: ${t?.$type}`)}}}function xRe(t){return Su(t.elements.map(e=>Lm(e)).join("|"),{cardinality:t.cardinality,lookahead:t.lookahead})}function bRe(t){return Su(t.elements.map(e=>Lm(e)).join(""),{cardinality:t.cardinality,lookahead:t.lookahead})}function kRe(t){return Su(`${lR}*?${Lm(t.terminal)}`,{cardinality:t.cardinality,lookahead:t.lookahead})}function wRe(t){return Su(`(?!${Lm(t.terminal)})${lR}*?`,{cardinality:t.cardinality,lookahead:t.lookahead})}function TRe(t){return t.right?Su(`[${QD(t.left)}-${QD(t.right)}]`,{cardinality:t.cardinality,lookahead:t.lookahead,wrap:!1}):Su(QD(t.left),{cardinality:t.cardinality,lookahead:t.lookahead,wrap:!1})}function QD(t){return Ud(t.value)}function Su(t,e){var r;return(e.wrap!==!1||e.lookahead)&&(t=`(${(r=e.lookahead)!==null&&r!==void 0?r:""}${t})`),e.cardinality?`${t}${e.cardinality}`:t}var lR,xl=_(()=>{"use strict";Fk();mc();Do();Ha();gl();_m();s(Ere,"getEntryRule");s(Cre,"getHiddenRules");s(Iv,"getAllReachableRules");s(Sre,"ruleDfs");s(JD,"getCrossReferenceTerminal");s(eR,"isCommentTerminal");s(tR,"findNodesForProperty");s(Nv,"findNodeForProperty");s(rR,"findNodesForPropertyInternal");s(pRe,"findNodesForKeyword");s(nR,"findNodeForKeyword");s(iR,"findNodesForKeywordInternal");s(aR,"findAssignment");s(e6,"findNameAssignment");s(_re,"findNameAssignmentInternal");s(Are,"getActionAtElement");s(mRe,"isOptionalCardinality");s(gRe,"isArrayCardinality");s(yRe,"isArrayOperator");s(Ov,"isDataTypeRule");s(Lre,"isDataTypeRuleInternal");s(vRe,"isDataType");s(ZD,"isDataTypeInternal");s(sR,"getExplicitRuleType");s(qd,"getTypeName");s(Dre,"getActionType");s(oR,"getRuleType");s(Am,"terminalRegex");lR=/[\s\S]/.source;s(Lm,"abstractElementToRegex");s(xRe,"terminalAlternativesToRegex");s(bRe,"terminalGroupToRegex");s(kRe,"untilTokenToRegex");s(wRe,"negateTokenToRegex");s(TRe,"characterRangeToRegex");s(QD,"keywordToRegex");s(Su,"withCardinality")});function cR(t){let e=[],r=t.Grammar;for(let n of r.rules)Ro(n)&&eR(n)&&XD(Am(n))&&e.push(n.name);return{multilineCommentRules:e,nameRegexp:Pk}}var uR=_(()=>{"use strict";gl();xl();_m();mc();s(cR,"createGrammarConfig")});var hR=_(()=>{"use strict"});function Dm(t){console&&console.error&&console.error(`Error: ${t}`)}function Pv(t){console&&console.warn&&console.warn(`Warning: ${t}`)}var Rre=_(()=>{"use strict";s(Dm,"PRINT_ERROR");s(Pv,"PRINT_WARNING")});function Bv(t){let e=new Date().getTime(),r=t();return{time:new Date().getTime()-e,value:r}}var Mre=_(()=>{"use strict";s(Bv,"timer")});function Fv(t){function e(){}s(e,"FakeConstructor"),e.prototype=t;let r=new e;function n(){return typeof r.bar}return s(n,"fakeAccess"),n(),n(),t;(0,eval)(t)}var Ire=_(()=>{"use strict";s(Fv,"toFastProperties")});var Rm=_(()=>{"use strict";Rre();Mre();Ire()});function ERe(t){return CRe(t)?t.LABEL:t.name}function CRe(t){return si(t.LABEL)&&t.LABEL!==""}function r6(t){return Ge(t,Mm)}function Mm(t){function e(r){return Ge(r,Mm)}if(s(e,"convertDefinition"),t instanceof Yr){let r={type:"NonTerminal",name:t.nonTerminalName,idx:t.idx};return si(t.label)&&(r.label=t.label),r}else{if(t instanceof vn)return{type:"Alternative",definition:e(t.definition)};if(t instanceof Xr)return{type:"Option",idx:t.idx,definition:e(t.definition)};if(t instanceof xn)return{type:"RepetitionMandatory",idx:t.idx,definition:e(t.definition)};if(t instanceof bn)return{type:"RepetitionMandatoryWithSeparator",idx:t.idx,separator:Mm(new sr({terminalType:t.separator})),definition:e(t.definition)};if(t instanceof ln)return{type:"RepetitionWithSeparator",idx:t.idx,separator:Mm(new sr({terminalType:t.separator})),definition:e(t.definition)};if(t instanceof mr)return{type:"Repetition",idx:t.idx,definition:e(t.definition)};if(t instanceof cn)return{type:"Alternation",idx:t.idx,definition:e(t.definition)};if(t instanceof sr){let r={type:"Terminal",name:t.terminalType.name,label:ERe(t.terminalType),idx:t.idx};si(t.label)&&(r.terminalLabel=t.label);let n=t.terminalType.PATTERN;return t.terminalType.PATTERN&&(r.pattern=_o(n)?n.source:n),r}else{if(t instanceof Ya)return{type:"Rule",name:t.name,orgText:t.orgText,definition:e(t.definition)};throw Error("non exhaustive match")}}}var no,Yr,Ya,vn,Xr,xn,bn,mr,ln,cn,sr,n6=_(()=>{"use strict";Tt();s(ERe,"tokenLabel");s(CRe,"hasTokenLabel");no=class{static{s(this,"AbstractProduction")}get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),be(this.definition,r=>{r.accept(e)})}},Yr=class extends no{static{s(this,"NonTerminal")}constructor(e){super([]),this.idx=1,aa(this,Ts(e,r=>r!==void 0))}set definition(e){}get definition(){return this.referencedRule!==void 0?this.referencedRule.definition:[]}accept(e){e.visit(this)}},Ya=class extends no{static{s(this,"Rule")}constructor(e){super(e.definition),this.orgText="",aa(this,Ts(e,r=>r!==void 0))}},vn=class extends no{static{s(this,"Alternative")}constructor(e){super(e.definition),this.ignoreAmbiguities=!1,aa(this,Ts(e,r=>r!==void 0))}},Xr=class extends no{static{s(this,"Option")}constructor(e){super(e.definition),this.idx=1,aa(this,Ts(e,r=>r!==void 0))}},xn=class extends no{static{s(this,"RepetitionMandatory")}constructor(e){super(e.definition),this.idx=1,aa(this,Ts(e,r=>r!==void 0))}},bn=class extends no{static{s(this,"RepetitionMandatoryWithSeparator")}constructor(e){super(e.definition),this.idx=1,aa(this,Ts(e,r=>r!==void 0))}},mr=class extends no{static{s(this,"Repetition")}constructor(e){super(e.definition),this.idx=1,aa(this,Ts(e,r=>r!==void 0))}},ln=class extends no{static{s(this,"RepetitionWithSeparator")}constructor(e){super(e.definition),this.idx=1,aa(this,Ts(e,r=>r!==void 0))}},cn=class extends no{static{s(this,"Alternation")}get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,aa(this,Ts(e,r=>r!==void 0))}},sr=class{static{s(this,"Terminal")}constructor(e){this.idx=1,aa(this,Ts(e,r=>r!==void 0))}accept(e){e.visit(this)}};s(r6,"serializeGrammar");s(Mm,"serializeProduction")});var Xa,Nre=_(()=>{"use strict";n6();Xa=class{static{s(this,"GAstVisitor")}visit(e){let r=e;switch(r.constructor){case Yr:return this.visitNonTerminal(r);case vn:return this.visitAlternative(r);case Xr:return this.visitOption(r);case xn:return this.visitRepetitionMandatory(r);case bn:return this.visitRepetitionMandatoryWithSeparator(r);case ln:return this.visitRepetitionWithSeparator(r);case mr:return this.visitRepetition(r);case cn:return this.visitAlternation(r);case sr:return this.visitTerminal(r);case Ya:return this.visitRule(r);default:throw Error("non exhaustive match")}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}}});function fR(t){return t instanceof vn||t instanceof Xr||t instanceof mr||t instanceof xn||t instanceof bn||t instanceof ln||t instanceof sr||t instanceof Ya}function Wd(t,e=[]){return t instanceof Xr||t instanceof mr||t instanceof ln?!0:t instanceof cn?pv(t.definition,n=>Wd(n,e)):t instanceof Yr&&Rn(e,t)?!1:t instanceof no?(t instanceof Yr&&e.push(t),Ca(t.definition,n=>Wd(n,e))):!1}function dR(t){return t instanceof cn}function Cs(t){if(t instanceof Yr)return"SUBRULE";if(t instanceof Xr)return"OPTION";if(t instanceof cn)return"OR";if(t instanceof xn)return"AT_LEAST_ONE";if(t instanceof bn)return"AT_LEAST_ONE_SEP";if(t instanceof ln)return"MANY_SEP";if(t instanceof mr)return"MANY";if(t instanceof sr)return"CONSUME";throw Error("non exhaustive match")}var Ore=_(()=>{"use strict";Tt();n6();s(fR,"isSequenceProd");s(Wd,"isOptionalProd");s(dR,"isBranchingProd");s(Cs,"getProductionDslName")});var ja=_(()=>{"use strict";n6();Nre();Ore()});function Pre(t,e,r){return[new Xr({definition:[new sr({terminalType:t.separator})].concat(t.definition)})].concat(e,r)}var _u,i6=_(()=>{"use strict";Tt();ja();_u=class{static{s(this,"RestWalker")}walk(e,r=[]){be(e.definition,(n,i)=>{let a=ai(e.definition,i+1);if(n instanceof Yr)this.walkProdRef(n,a,r);else if(n instanceof sr)this.walkTerminal(n,a,r);else if(n instanceof vn)this.walkFlat(n,a,r);else if(n instanceof Xr)this.walkOption(n,a,r);else if(n instanceof xn)this.walkAtLeastOne(n,a,r);else if(n instanceof bn)this.walkAtLeastOneSep(n,a,r);else if(n instanceof ln)this.walkManySep(n,a,r);else if(n instanceof mr)this.walkMany(n,a,r);else if(n instanceof cn)this.walkOr(n,a,r);else throw Error("non exhaustive match")})}walkTerminal(e,r,n){}walkProdRef(e,r,n){}walkFlat(e,r,n){let i=r.concat(n);this.walk(e,i)}walkOption(e,r,n){let i=r.concat(n);this.walk(e,i)}walkAtLeastOne(e,r,n){let i=[new Xr({definition:e.definition})].concat(r,n);this.walk(e,i)}walkAtLeastOneSep(e,r,n){let i=Pre(e,r,n);this.walk(e,i)}walkMany(e,r,n){let i=[new Xr({definition:e.definition})].concat(r,n);this.walk(e,i)}walkManySep(e,r,n){let i=Pre(e,r,n);this.walk(e,i)}walkOr(e,r,n){let i=r.concat(n);be(e.definition,a=>{let o=new vn({definition:[a]});this.walk(o,i)})}};s(Pre,"restForRepetitionWithSeparator")});function Hd(t){if(t instanceof Yr)return Hd(t.referencedRule);if(t instanceof sr)return ARe(t);if(fR(t))return SRe(t);if(dR(t))return _Re(t);throw Error("non exhaustive match")}function SRe(t){let e=[],r=t.definition,n=0,i=r.length>n,a,o=!0;for(;i&&o;)a=r[n],o=Wd(a),e=e.concat(Hd(a)),n=n+1,i=r.length>n;return bm(e)}function _Re(t){let e=Ge(t.definition,r=>Hd(r));return bm(Ir(e))}function ARe(t){return[t.terminalType]}var pR=_(()=>{"use strict";Tt();ja();s(Hd,"first");s(SRe,"firstForSequence");s(_Re,"firstForBranching");s(ARe,"firstForTerminal")});var a6,mR=_(()=>{"use strict";a6="_~IN~_"});function Bre(t){let e={};return be(t,r=>{let n=new gR(r).startWalking();aa(e,n)}),e}function LRe(t,e){return t.name+e+a6}var gR,Fre=_(()=>{"use strict";i6();pR();Tt();mR();ja();gR=class extends _u{static{s(this,"ResyncFollowsWalker")}constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,r,n){}walkProdRef(e,r,n){let i=LRe(e.referencedRule,e.idx)+this.topProd.name,a=r.concat(n),o=new vn({definition:a}),l=Hd(o);this.follows[i]=l}};s(Bre,"computeAllProdsFollows");s(LRe,"buildBetweenProdsFollowPrefix")});function Im(t){let e=t.toString();if(s6.hasOwnProperty(e))return s6[e];{let r=DRe.pattern(e);return s6[e]=r,r}}function zre(){s6={}}var s6,DRe,o6=_(()=>{"use strict";Mv();s6={},DRe=new Gd;s(Im,"getRegExpAst");s(zre,"clearRegExpParserCache")});function Vre(t,e=!1){try{let r=Im(t);return yR(r.value,{},r.flags.ignoreCase)}catch(r){if(r.message===Gre)e&&Pv(`${zv} Unable to optimize: < ${t.toString()} >
Complement Sets cannot be automatically optimized.
This will disable the lexer's first char optimizations.
See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{let n="";e&&(n=`
This will disable the lexer's first char optimizations.
See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),Dm(`${zv}
Failed parsing: < ${t.toString()} >
Using the @chevrotain/regexp-to-ast library
Please open an issue at: https://github.com/chevrotain/chevrotain/issues`+n)}}return[]}function yR(t,e,r){switch(t.type){case"Disjunction":for(let i=0;i{if(typeof u=="number")l6(u,e,r);else{let h=u;if(r===!0)for(let f=h.from;f<=h.to;f++)l6(f,e,r);else{for(let f=h.from;f<=h.to&&f=Nm){let f=h.from>=Nm?h.from:Nm,d=h.to,p=vc(f),m=vc(d);for(let g=p;g<=m;g++)e[g]=g}}}});break;case"Group":yR(o.value,e,r);break;default:throw Error("Non Exhaustive Match")}let l=o.quantifier!==void 0&&o.quantifier.atLeast===0;if(o.type==="Group"&&vR(o)===!1||o.type!=="Group"&&l===!1)break}break;default:throw Error("non exhaustive match!")}return nr(e)}function l6(t,e,r){let n=vc(t);e[n]=n,r===!0&&RRe(t,e)}function RRe(t,e){let r=String.fromCharCode(t),n=r.toUpperCase();if(n!==r){let i=vc(n.charCodeAt(0));e[i]=i}else{let i=r.toLowerCase();if(i!==r){let a=vc(i.charCodeAt(0));e[a]=a}}}function $re(t,e){return qa(t.value,r=>{if(typeof r=="number")return Rn(e,r);{let n=r;return qa(e,i=>n.from<=i&&i<=n.to)!==void 0}})}function vR(t){let e=t.quantifier;return e&&e.atLeast===0?!0:t.value?ct(t.value)?Ca(t.value,vR):vR(t.value):!1}function c6(t,e){if(e instanceof RegExp){let r=Im(e),n=new xR(t);return n.visit(r),n.found}else return qa(e,r=>Rn(t,r.charCodeAt(0)))!==void 0}var Gre,zv,xR,Ure=_(()=>{"use strict";Mv();Tt();Rm();o6();bR();Gre="Complement Sets are not supported for first char optimization",zv=`Unable to use "first char" lexer optimizations:
`;s(Vre,"getOptimizedStartCodesIndices");s(yR,"firstCharOptimizedIndices");s(l6,"addOptimizedIdxToResult");s(RRe,"handleIgnoreCase");s($re,"findCode");s(vR,"isWholeOptional");xR=class extends yc{static{s(this,"CharCodeFinder")}constructor(e){super(),this.targetCharCodes=e,this.found=!1}visitChildren(e){if(this.found!==!0){switch(e.type){case"Lookahead":this.visitLookahead(e);return;case"NegativeLookahead":this.visitNegativeLookahead(e);return}super.visitChildren(e)}}visitCharacter(e){Rn(this.targetCharCodes,e.value)&&(this.found=!0)}visitSet(e){e.complement?$re(e,this.targetCharCodes)===void 0&&(this.found=!0):$re(e,this.targetCharCodes)!==void 0&&(this.found=!0)}};s(c6,"canMatchCharCode")});function Hre(t,e){e=Vh(e,{useSticky:wR,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",`
`],tracer:s((b,k)=>k(),"tracer")});let r=e.tracer;r("initCharCodeToOptimizedIndexMap",()=>{jRe()});let n;r("Reject Lexer.NA",()=>{n=qh(t,b=>b[Yd]===jn.NA)});let i=!1,a;r("Transform Patterns",()=>{i=!1,a=Ge(n,b=>{let k=b[Yd];if(_o(k)){let A=k.source;return A.length===1&&A!=="^"&&A!=="$"&&A!=="."&&!k.ignoreCase?A:A.length===2&&A[0]==="\\"&&!Rn(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],A[1])?A[1]:e.useSticky?Wre(k):qre(k)}else{if(fi(k))return i=!0,{exec:k};if(typeof k=="object")return i=!0,k;if(typeof k=="string"){if(k.length===1)return k;{let A=k.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),w=new RegExp(A);return e.useSticky?Wre(w):qre(w)}}else throw Error("non exhaustive match")}})});let o,l,u,h,f;r("misc mapping",()=>{o=Ge(n,b=>b.tokenTypeIdx),l=Ge(n,b=>{let k=b.GROUP;if(k!==jn.SKIPPED){if(si(k))return k;if(jt(k))return!1;throw Error("non exhaustive match")}}),u=Ge(n,b=>{let k=b.LONGER_ALT;if(k)return ct(k)?Ge(k,w=>pk(n,w)):[pk(n,k)]}),h=Ge(n,b=>b.PUSH_MODE),f=Ge(n,b=>Ve(b,"POP_MODE"))});let d;r("Line Terminator Handling",()=>{let b=ene(e.lineTerminatorCharacters);d=Ge(n,k=>!1),e.positionTracking!=="onlyOffset"&&(d=Ge(n,k=>Ve(k,"LINE_BREAKS")?!!k.LINE_BREAKS:Jre(k,b)===!1&&c6(b,k.PATTERN)))});let p,m,g,y;r("Misc Mapping #2",()=>{p=Ge(n,Qre),m=Ge(a,YRe),g=Or(n,(b,k)=>{let A=k.GROUP;return si(A)&&A!==jn.SKIPPED&&(b[A]=[]),b},{}),y=Ge(a,(b,k)=>({pattern:a[k],longerAlt:u[k],canLineTerminator:d[k],isCustom:p[k],short:m[k],group:l[k],push:h[k],pop:f[k],tokenTypeIdx:o[k],tokenType:n[k]}))});let v=!0,x=[];return e.safeMode||r("First Char Optimization",()=>{x=Or(n,(b,k,A)=>{if(typeof k.PATTERN=="string"){let w=k.PATTERN.charCodeAt(0),T=vc(w);kR(b,T,y[A])}else if(ct(k.START_CHARS_HINT)){let w;be(k.START_CHARS_HINT,T=>{let C=typeof T=="string"?T.charCodeAt(0):T,E=vc(C);w!==E&&(w=E,kR(b,E,y[A]))})}else if(_o(k.PATTERN))if(k.PATTERN.unicode)v=!1,e.ensureOptimizations&&Dm(`${zv} Unable to analyze < ${k.PATTERN.toString()} > pattern.
The regexp unicode flag is not currently supported by the regexp-to-ast library.
This will disable the lexer's first char optimizations.
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{let w=Vre(k.PATTERN,e.ensureOptimizations);Vt(w)&&(v=!1),be(w,T=>{kR(b,T,y[A])})}else e.ensureOptimizations&&Dm(`${zv} TokenType: <${k.name}> is using a custom token pattern without providing parameter.
This will disable the lexer's first char optimizations.
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),v=!1;return b},[])}),{emptyGroups:g,patternIdxToConfig:y,charCodeToPatternIdxToConfig:x,hasCustom:i,canBeOptimized:v}}function Yre(t,e){let r=[],n=IRe(t);r=r.concat(n.errors);let i=NRe(n.valid),a=i.valid;return r=r.concat(i.errors),r=r.concat(MRe(a)),r=r.concat(VRe(a)),r=r.concat(URe(a,e)),r=r.concat(qRe(a)),r}function MRe(t){let e=[],r=Nr(t,n=>_o(n[Yd]));return e=e.concat(PRe(r)),e=e.concat(zRe(r)),e=e.concat($Re(r)),e=e.concat(GRe(r)),e=e.concat(BRe(r)),e}function IRe(t){let e=Nr(t,i=>!Ve(i,Yd)),r=Ge(e,i=>({message:"Token Type: ->"+i.name+"<- missing static 'PATTERN' property",type:In.MISSING_PATTERN,tokenTypes:[i]})),n=Uh(t,e);return{errors:r,valid:n}}function NRe(t){let e=Nr(t,i=>{let a=i[Yd];return!_o(a)&&!fi(a)&&!Ve(a,"exec")&&!si(a)}),r=Ge(e,i=>({message:"Token Type: ->"+i.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:In.INVALID_PATTERN,tokenTypes:[i]})),n=Uh(t,e);return{errors:r,valid:n}}function PRe(t){class e extends yc{static{s(this,"EndAnchorFinder")}constructor(){super(...arguments),this.found=!1}visitEndAnchor(a){this.found=!0}}let r=Nr(t,i=>{let a=i.PATTERN;try{let o=Im(a),l=new e;return l.visit(o),l.found}catch{return ORe.test(a.source)}});return Ge(r,i=>({message:`Unexpected RegExp Anchor Error:
Token Type: ->`+i.name+`<- static 'PATTERN' cannot contain end of input anchor '$'
See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:In.EOI_ANCHOR_FOUND,tokenTypes:[i]}))}function BRe(t){let e=Nr(t,n=>n.PATTERN.test(""));return Ge(e,n=>({message:"Token Type: ->"+n.name+"<- static 'PATTERN' must not match an empty string",type:In.EMPTY_MATCH_PATTERN,tokenTypes:[n]}))}function zRe(t){class e extends yc{static{s(this,"StartAnchorFinder")}constructor(){super(...arguments),this.found=!1}visitStartAnchor(a){this.found=!0}}let r=Nr(t,i=>{let a=i.PATTERN;try{let o=Im(a),l=new e;return l.visit(o),l.found}catch{return FRe.test(a.source)}});return Ge(r,i=>({message:`Unexpected RegExp Anchor Error:
Token Type: ->`+i.name+`<- static 'PATTERN' cannot contain start of input anchor '^'
See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:In.SOI_ANCHOR_FOUND,tokenTypes:[i]}))}function $Re(t){let e=Nr(t,n=>{let i=n[Yd];return i instanceof RegExp&&(i.multiline||i.global)});return Ge(e,n=>({message:"Token Type: ->"+n.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:In.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[n]}))}function GRe(t){let e=[],r=Ge(t,a=>Or(t,(o,l)=>(a.PATTERN.source===l.PATTERN.source&&!Rn(e,l)&&l.PATTERN!==jn.NA&&(e.push(l),o.push(l)),o),[]));r=uc(r);let n=Nr(r,a=>a.length>1);return Ge(n,a=>{let o=Ge(a,u=>u.name);return{message:`The same RegExp pattern ->${Yi(a).PATTERN}<-has been used in all of the following Token Types: ${o.join(", ")} <-`,type:In.DUPLICATE_PATTERNS_FOUND,tokenTypes:a}})}function VRe(t){let e=Nr(t,n=>{if(!Ve(n,"GROUP"))return!1;let i=n.GROUP;return i!==jn.SKIPPED&&i!==jn.NA&&!si(i)});return Ge(e,n=>({message:"Token Type: ->"+n.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:In.INVALID_GROUP_TYPE_FOUND,tokenTypes:[n]}))}function URe(t,e){let r=Nr(t,i=>i.PUSH_MODE!==void 0&&!Rn(e,i.PUSH_MODE));return Ge(r,i=>({message:`Token Type: ->${i.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${i.PUSH_MODE}<-which does not exist`,type:In.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[i]}))}function qRe(t){let e=[],r=Or(t,(n,i,a)=>{let o=i.PATTERN;return o===jn.NA||(si(o)?n.push({str:o,idx:a,tokenType:i}):_o(o)&&HRe(o)&&n.push({str:o.source,idx:a,tokenType:i})),n},[]);return be(t,(n,i)=>{be(r,({str:a,idx:o,tokenType:l})=>{if(i${l.name}<- can never be matched.
Because it appears AFTER the Token Type ->${n.name}<-in the lexer's definition.
See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;e.push({message:u,type:In.UNREACHABLE_PATTERN,tokenTypes:[n,l]})}})}),e}function WRe(t,e){if(_o(e)){let r=e.exec(t);return r!==null&&r.index===0}else{if(fi(e))return e(t,0,[],{});if(Ve(e,"exec"))return e.exec(t,0,[],{});if(typeof e=="string")return e===t;throw Error("non exhaustive match")}}function HRe(t){return qa([".","\\","[","]","|","^","$","(",")","?","*","+","{"],r=>t.source.indexOf(r)!==-1)===void 0}function qre(t){let e=t.ignoreCase?"i":"";return new RegExp(`^(?:${t.source})`,e)}function Wre(t){let e=t.ignoreCase?"iy":"y";return new RegExp(`${t.source}`,e)}function Xre(t,e,r){let n=[];return Ve(t,Om)||n.push({message:"A MultiMode Lexer cannot be initialized without a <"+Om+`> property in its definition
`,type:In.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),Ve(t,u6)||n.push({message:"A MultiMode Lexer cannot be initialized without a <"+u6+`> property in its definition
`,type:In.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),Ve(t,u6)&&Ve(t,Om)&&!Ve(t.modes,t.defaultMode)&&n.push({message:`A MultiMode Lexer cannot be initialized with a ${Om}: <${t.defaultMode}>which does not exist
`,type:In.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),Ve(t,u6)&&be(t.modes,(i,a)=>{be(i,(o,l)=>{if(jt(o))n.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${a}> at index: <${l}>
`,type:In.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED});else if(Ve(o,"LONGER_ALT")){let u=ct(o.LONGER_ALT)?o.LONGER_ALT:[o.LONGER_ALT];be(u,h=>{!jt(h)&&!Rn(i,h)&&n.push({message:`A MultiMode Lexer cannot be initialized with a longer_alt <${h.name}> on token <${o.name}> outside of mode <${a}>
`,type:In.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})})}})}),n}function jre(t,e,r){let n=[],i=!1,a=uc(Ir(nr(t.modes))),o=qh(a,u=>u[Yd]===jn.NA),l=ene(r);return e&&be(o,u=>{let h=Jre(u,l);if(h!==!1){let d={message:XRe(u,h),type:h.issue,tokenType:u};n.push(d)}else Ve(u,"LINE_BREAKS")?u.LINE_BREAKS===!0&&(i=!0):c6(l,u.PATTERN)&&(i=!0)}),e&&!i&&n.push({message:`Warning: No LINE_BREAKS Found.
This Lexer has been defined to track line and column information,
But none of the Token Types can be identified as matching a line terminator.
See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS
for details.`,type:In.NO_LINE_BREAKS_FLAGS}),n}function Kre(t){let e={},r=kr(t);return be(r,n=>{let i=t[n];if(ct(i))e[n]=[];else throw Error("non exhaustive match")}),e}function Qre(t){let e=t.PATTERN;if(_o(e))return!1;if(fi(e))return!0;if(Ve(e,"exec"))return!0;if(si(e))return!1;throw Error("non exhaustive match")}function YRe(t){return si(t)&&t.length===1?t.charCodeAt(0):!1}function Jre(t,e){if(Ve(t,"LINE_BREAKS"))return!1;if(_o(t.PATTERN)){try{c6(e,t.PATTERN)}catch(r){return{issue:In.IDENTIFY_TERMINATOR,errMsg:r.message}}return!1}else{if(si(t.PATTERN))return!1;if(Qre(t))return{issue:In.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}}function XRe(t,e){if(e.issue===In.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern.
The problem is in the <${t.name}> Token Type
Root cause: ${e.errMsg}.
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(e.issue===In.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the option.
The problem is in the <${t.name}> Token Type
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error("non exhaustive match")}function ene(t){return Ge(t,r=>si(r)?r.charCodeAt(0):r)}function kR(t,e,r){t[e]===void 0?t[e]=[r]:t[e].push(r)}function vc(t){return t255?255+~~(t/255):t}}var Yd,Om,u6,wR,ORe,FRe,Zre,Nm,h6,bR=_(()=>{"use strict";Mv();$v();Tt();Rm();Ure();o6();Yd="PATTERN",Om="defaultMode",u6="modes",wR=typeof new RegExp("(?:)").sticky=="boolean";s(Hre,"analyzeTokenTypes");s(Yre,"validatePatterns");s(MRe,"validateRegExpPattern");s(IRe,"findMissingPatterns");s(NRe,"findInvalidPatterns");ORe=/[^\\][$]/;s(PRe,"findEndOfInputAnchor");s(BRe,"findEmptyMatchRegExps");FRe=/[^\\[][\^]|^\^/;s(zRe,"findStartOfInputAnchor");s($Re,"findUnsupportedFlags");s(GRe,"findDuplicatePatterns");s(VRe,"findInvalidGroupType");s(URe,"findModesThatDoNotExist");s(qRe,"findUnreachablePatterns");s(WRe,"testTokenType");s(HRe,"noMetaChar");s(qre,"addStartOfInput");s(Wre,"addStickyFlag");s(Xre,"performRuntimeChecks");s(jre,"performWarningRuntimeChecks");s(Kre,"cloneEmptyGroups");s(Qre,"isCustomPattern");s(YRe,"isShortPattern");Zre={test:s(function(t){let e=t.length;for(let r=this.lastIndex;r{r.isParent=r.categoryMatches.length>0})}function KRe(t){let e=Hr(t),r=t,n=!0;for(;n;){r=uc(Ir(Ge(r,a=>a.CATEGORIES)));let i=Uh(r,e);e=e.concat(i),Vt(i)?n=!1:r=i}return e}function QRe(t){be(t,e=>{TR(e)||(nne[tne]=e,e.tokenTypeIdx=tne++),rne(e)&&!ct(e.CATEGORIES)&&(e.CATEGORIES=[e.CATEGORIES]),rne(e)||(e.CATEGORIES=[]),eMe(e)||(e.categoryMatches=[]),tMe(e)||(e.categoryMatchesMap={})})}function ZRe(t){be(t,e=>{e.categoryMatches=[],be(e.categoryMatchesMap,(r,n)=>{e.categoryMatches.push(nne[n].tokenTypeIdx)})})}function JRe(t){be(t,e=>{ine([],e)})}function ine(t,e){be(t,r=>{e.categoryMatchesMap[r.tokenTypeIdx]=!0}),be(e.CATEGORIES,r=>{let n=t.concat(e);Rn(n,r)||ine(n,r)})}function TR(t){return Ve(t,"tokenTypeIdx")}function rne(t){return Ve(t,"CATEGORIES")}function eMe(t){return Ve(t,"categoryMatches")}function tMe(t){return Ve(t,"categoryMatchesMap")}function ane(t){return Ve(t,"tokenTypeIdx")}var tne,nne,Xd=_(()=>{"use strict";Tt();s(Au,"tokenStructuredMatcher");s(Pm,"tokenStructuredMatcherNoCategories");tne=1,nne={};s(Lu,"augmentTokenTypes");s(KRe,"expandCategories");s(QRe,"assignTokenDefaultProps");s(ZRe,"assignCategoriesTokensProp");s(JRe,"assignCategoriesMapProp");s(ine,"singleAssignCategoriesToksMap");s(TR,"hasShortKeyProperty");s(rne,"hasCategoriesProperty");s(eMe,"hasExtendingTokensTypesProperty");s(tMe,"hasExtendingTokensTypesMapProperty");s(ane,"isTokenType")});var ER,CR=_(()=>{"use strict";ER={buildUnableToPopLexerModeMessage(t){return`Unable to pop Lexer Mode after encountering Token ->${t.image}<- The Mode Stack is empty`},buildUnexpectedCharactersMessage(t,e,r,n,i){return`unexpected character: ->${t.charAt(e)}<- at offset: ${e}, skipped ${r} characters.`}}});var In,Gv,jn,$v=_(()=>{"use strict";bR();Tt();Rm();Xd();CR();o6();(function(t){t[t.MISSING_PATTERN=0]="MISSING_PATTERN",t[t.INVALID_PATTERN=1]="INVALID_PATTERN",t[t.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",t[t.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",t[t.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",t[t.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",t[t.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",t[t.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",t[t.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",t[t.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",t[t.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",t[t.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",t[t.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",t[t.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",t[t.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",t[t.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",t[t.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK",t[t.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]="MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE"})(In||(In={}));Gv={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[`
`,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:ER,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0};Object.freeze(Gv);jn=class{static{s(this,"Lexer")}constructor(e,r=Gv){if(this.lexerDefinition=e,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=(i,a)=>{if(this.traceInitPerf===!0){this.traceInitIndent++;let o=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent <${i}>`);let{time:l,value:u}=Bv(a),h=l>10?console.warn:console.log;return this.traceInitIndent time: ${l}ms`),this.traceInitIndent--,u}else return a()},typeof r=="boolean")throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object.
a boolean 2nd argument is no longer supported`);this.config=aa({},Gv,r);let n=this.config.traceInitPerf;n===!0?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):typeof n=="number"&&(this.traceInitMaxIdent=n,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",()=>{let i,a=!0;this.TRACE_INIT("Lexer Config handling",()=>{if(this.config.lineTerminatorsPattern===Gv.lineTerminatorsPattern)this.config.lineTerminatorsPattern=Zre;else if(this.config.lineTerminatorCharacters===Gv.lineTerminatorCharacters)throw Error(`Error: Missing property on the Lexer config.
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(r.safeMode&&r.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');this.trackStartLines=/full|onlyStart/i.test(this.config.positionTracking),this.trackEndLines=/full/i.test(this.config.positionTracking),ct(e)?i={modes:{defaultMode:Hr(e)},defaultMode:Om}:(a=!1,i=Hr(e))}),this.config.skipValidations===!1&&(this.TRACE_INIT("performRuntimeChecks",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(Xre(i,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT("performWarningRuntimeChecks",()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(jre(i,this.trackStartLines,this.config.lineTerminatorCharacters))})),i.modes=i.modes?i.modes:{},be(i.modes,(l,u)=>{i.modes[u]=qh(l,h=>jt(h))});let o=kr(i.modes);if(be(i.modes,(l,u)=>{this.TRACE_INIT(`Mode: <${u}> processing`,()=>{if(this.modes.push(u),this.config.skipValidations===!1&&this.TRACE_INIT("validatePatterns",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(Yre(l,o))}),Vt(this.lexerDefinitionErrors)){Lu(l);let h;this.TRACE_INIT("analyzeTokenTypes",()=>{h=Hre(l,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:r.positionTracking,ensureOptimizations:r.ensureOptimizations,safeMode:r.safeMode,tracer:this.TRACE_INIT})}),this.patternIdxToConfig[u]=h.patternIdxToConfig,this.charCodeToPatternIdxToConfig[u]=h.charCodeToPatternIdxToConfig,this.emptyGroups=aa({},this.emptyGroups,h.emptyGroups),this.hasCustom=h.hasCustom||this.hasCustom,this.canModeBeOptimized[u]=h.canBeOptimized}})}),this.defaultMode=i.defaultMode,!Vt(this.lexerDefinitionErrors)&&!this.config.deferDefinitionErrorsHandling){let u=Ge(this.lexerDefinitionErrors,h=>h.message).join(`-----------------------
`);throw new Error(`Errors detected in definition of Lexer:
`+u)}be(this.lexerDefinitionWarning,l=>{Pv(l.message)}),this.TRACE_INIT("Choosing sub-methods implementations",()=>{if(wR?(this.chopInput=Wi,this.match=this.matchWithTest):(this.updateLastIndex=zn,this.match=this.matchWithExec),a&&(this.handleModes=zn),this.trackStartLines===!1&&(this.computeNewColumn=Wi),this.trackEndLines===!1&&(this.updateTokenEndLineColumnLocation=zn),/full/i.test(this.config.positionTracking))this.createTokenInstance=this.createFullToken;else if(/onlyStart/i.test(this.config.positionTracking))this.createTokenInstance=this.createStartOnlyToken;else if(/onlyOffset/i.test(this.config.positionTracking))this.createTokenInstance=this.createOffsetOnlyToken;else throw Error(`Invalid config option: "${this.config.positionTracking}"`);this.hasCustom?(this.addToken=this.addTokenUsingPush,this.handlePayload=this.handlePayloadWithCustom):(this.addToken=this.addTokenUsingMemberAccess,this.handlePayload=this.handlePayloadNoCustom)}),this.TRACE_INIT("Failed Optimization Warnings",()=>{let l=Or(this.canModeBeOptimized,(u,h,f)=>(h===!1&&u.push(f),u),[]);if(r.ensureOptimizations&&!Vt(l))throw Error(`Lexer Modes: < ${l.join(", ")} > cannot be optimized.
Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.
Or inspect the console log for details on how to resolve these issues.`)}),this.TRACE_INIT("clearRegExpParserCache",()=>{zre()}),this.TRACE_INIT("toFastProperties",()=>{Fv(this)})})}tokenize(e,r=this.defaultMode){if(!Vt(this.lexerDefinitionErrors)){let i=Ge(this.lexerDefinitionErrors,a=>a.message).join(`-----------------------
`);throw new Error(`Unable to Tokenize because Errors detected in definition of Lexer:
`+i)}return this.tokenizeInternal(e,r)}tokenizeInternal(e,r){let n,i,a,o,l,u,h,f,d,p,m,g,y,v,x,b,k=e,A=k.length,w=0,T=0,C=this.hasCustom?0:Math.floor(e.length/10),E=new Array(C),S=[],R=this.trackStartLines?1:void 0,D=this.trackStartLines?1:void 0,L=Kre(this.emptyGroups),P=this.trackStartLines,M=this.config.lineTerminatorsPattern,F=0,I=[],O=[],z=[],N=[];Object.freeze(N);let U;function $(){return I}s($,"getPossiblePatternsSlow");function W(fe){let ne=vc(fe),H=O[ne];return H===void 0?N:H}s(W,"getPossiblePatternsOptimized");let ee=s(fe=>{if(z.length===1&&fe.tokenType.PUSH_MODE===void 0){let ne=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(fe);S.push({offset:fe.startOffset,line:fe.startLine,column:fe.startColumn,length:fe.image.length,message:ne})}else{z.pop();let ne=sa(z);I=this.patternIdxToConfig[ne],O=this.charCodeToPatternIdxToConfig[ne],F=I.length;let H=this.canModeBeOptimized[ne]&&this.config.safeMode===!1;O&&H?U=W:U=$}},"pop_mode");function te(fe){z.push(fe),O=this.charCodeToPatternIdxToConfig[fe],I=this.patternIdxToConfig[fe],F=I.length,F=I.length;let ne=this.canModeBeOptimized[fe]&&this.config.safeMode===!1;O&&ne?U=W:U=$}s(te,"push_mode"),te.call(this,r);let ce,Z=this.config.recoveryEnabled;for(;wu.length){u=o,h=f,ce=ie;break}}}break}}if(u!==null){if(d=u.length,p=ce.group,p!==void 0&&(m=ce.tokenTypeIdx,g=this.createTokenInstance(u,w,m,ce.tokenType,R,D,d),this.handlePayload(g,h),p===!1?T=this.addToken(E,T,g):L[p].push(g)),e=this.chopInput(e,d),w=w+d,D=this.computeNewColumn(D,d),P===!0&&ce.canLineTerminator===!0){let Q=0,K,re;M.lastIndex=0;do K=M.test(u),K===!0&&(re=M.lastIndex-1,Q++);while(K===!0);Q!==0&&(R=R+Q,D=d-re,this.updateTokenEndLineColumnLocation(g,p,re,Q,R,D,d))}this.handleModes(ce,ee,te,g)}else{let Q=w,K=R,re=D,ie=Z===!1;for(;ie===!1&&w{"use strict";Tt();$v();Xd();s(Du,"tokenLabel");s(SR,"hasTokenLabel");rMe="parent",sne="categories",one="label",lne="group",cne="push_mode",une="pop_mode",hne="longer_alt",fne="line_breaks",dne="start_chars_hint";s(f6,"createToken");s(nMe,"createTokenInternal");io=f6({name:"EOF",pattern:jn.NA});Lu([io]);s(jd,"createTokenInstance");s(Vv,"tokenMatcher")});var Ru,pne,bl,Bm=_(()=>{"use strict";Kd();Tt();ja();Ru={buildMismatchTokenMessage({expected:t,actual:e,previous:r,ruleName:n}){return`Expecting ${SR(t)?`--> ${Du(t)} <--`:`token of type --> ${t.name} <--`} but found --> '${e.image}' <--`},buildNotAllInputParsedMessage({firstRedundant:t,ruleName:e}){return"Redundant input, expecting EOF but found: "+t.image},buildNoViableAltMessage({expectedPathsPerAlt:t,actual:e,previous:r,customUserDescription:n,ruleName:i}){let a="Expecting: ",l=`
but found: '`+Yi(e).image+"'";if(n)return a+n+l;{let u=Or(t,(p,m)=>p.concat(m),[]),h=Ge(u,p=>`[${Ge(p,m=>Du(m)).join(", ")}]`),d=`one of these possible Token sequences:
${Ge(h,(p,m)=>` ${m+1}. ${p}`).join(`
`)}`;return a+d+l}},buildEarlyExitMessage({expectedIterationPaths:t,actual:e,customUserDescription:r,ruleName:n}){let i="Expecting: ",o=`
but found: '`+Yi(e).image+"'";if(r)return i+r+o;{let u=`expecting at least one iteration which starts with one of these possible Token sequences::
<${Ge(t,h=>`[${Ge(h,f=>Du(f)).join(",")}]`).join(" ,")}>`;return i+u+o}}};Object.freeze(Ru);pne={buildRuleNotFoundError(t,e){return"Invalid grammar, reference to a rule which is not defined: ->"+e.nonTerminalName+`<-
inside top level rule: ->`+t.name+"<-"}},bl={buildDuplicateFoundError(t,e){function r(f){return f instanceof sr?f.terminalType.name:f instanceof Yr?f.nonTerminalName:""}s(r,"getExtraProductionArgument");let n=t.name,i=Yi(e),a=i.idx,o=Cs(i),l=r(i),u=a>0,h=`->${o}${u?a:""}<- ${l?`with argument: ->${l}<-`:""}
appears more than once (${e.length} times) in the top level rule: ->${n}<-.
For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES
`;return h=h.replace(/[ \t]+/g," "),h=h.replace(/\s\s+/g,`
`),h},buildNamespaceConflictError(t){return`Namespace conflict found in grammar.
The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <${t.name}>.
To resolve this make sure each Terminal and Non-Terminal names are unique
This is easy to accomplish by using the convention that Terminal names start with an uppercase letter
and Non-Terminal names start with a lower case letter.`},buildAlternationPrefixAmbiguityError(t){let e=Ge(t.prefixPath,i=>Du(i)).join(", "),r=t.alternation.idx===0?"":t.alternation.idx;return`Ambiguous alternatives: <${t.ambiguityIndices.join(" ,")}> due to common lookahead prefix
in inside <${t.topLevelRule.name}> Rule,
<${e}> may appears as a prefix path in all these alternatives.
See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX
For Further details.`},buildAlternationAmbiguityError(t){let e=Ge(t.prefixPath,i=>Du(i)).join(", "),r=t.alternation.idx===0?"":t.alternation.idx,n=`Ambiguous Alternatives Detected: <${t.ambiguityIndices.join(" ,")}> in inside <${t.topLevelRule.name}> Rule,
<${e}> may appears as a prefix path in all these alternatives.
`;return n=n+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
For Further details.`,n},buildEmptyRepetitionError(t){let e=Cs(t.repetition);return t.repetition.idx!==0&&(e+=t.repetition.idx),`The repetition <${e}> within Rule <${t.topLevelRule.name}> can never consume any tokens.
This could lead to an infinite loop.`},buildTokenNameError(t){return"deprecated"},buildEmptyAlternationError(t){return`Ambiguous empty alternative: <${t.emptyChoiceIdx+1}> in inside <${t.topLevelRule.name}> Rule.
Only the last alternative may be an empty alternative.`},buildTooManyAlternativesError(t){return`An Alternation cannot have more than 256 alternatives:
inside <${t.topLevelRule.name}> Rule.
has ${t.alternation.definition.length+1} alternatives.`},buildLeftRecursionError(t){let e=t.topLevelRule.name,r=Ge(t.leftRecursionPath,a=>a.name),n=`${e} --> ${r.concat([e]).join(" --> ")}`;return`Left Recursion found in grammar.
rule: <${e}> can be invoked from itself (directly or indirectly)
without consuming any Tokens. The grammar path that causes this is:
${n}
To fix this refactor your grammar to remove the left recursion.
see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError(t){return"deprecated"},buildDuplicateRuleNameError(t){let e;return t.topLevelRule instanceof Ya?e=t.topLevelRule.name:e=t.topLevelRule,`Duplicate definition, rule: ->${e}<- is already defined in the grammar: ->${t.grammarName}<-`}}});function mne(t,e){let r=new _R(t,e);return r.resolveRefs(),r.errors}var _R,gne=_(()=>{"use strict";Ss();Tt();ja();s(mne,"resolveGrammar");_R=class extends Xa{static{s(this,"GastRefResolverVisitor")}constructor(e,r){super(),this.nameToTopRule=e,this.errMsgProvider=r,this.errors=[]}resolveRefs(){be(nr(this.nameToTopRule),e=>{this.currTopLevel=e,e.accept(this)})}visitNonTerminal(e){let r=this.nameToTopRule[e.nonTerminalName];if(r)e.referencedRule=r;else{let n=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e);this.errors.push({message:n,type:Li.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}}}});function g6(t,e,r=[]){r=Hr(r);let n=[],i=0;function a(l){return l.concat(ai(t,i+1))}s(a,"remainingPathWith");function o(l){let u=g6(a(l),e,r);return n.concat(u)}for(s(o,"getAlternativesForProd");r.length{Vt(u.definition)===!1&&(n=o(u.definition))}),n;if(l instanceof sr)r.push(l.terminalType);else throw Error("non exhaustive match")}i++}return n.push({partialPath:r,suffixDef:ai(t,i)}),n}function y6(t,e,r,n){let i="EXIT_NONE_TERMINAL",a=[i],o="EXIT_ALTERNATIVE",l=!1,u=e.length,h=u-n-1,f=[],d=[];for(d.push({idx:-1,def:t,ruleStack:[],occurrenceStack:[]});!Vt(d);){let p=d.pop();if(p===o){l&&sa(d).idx<=h&&d.pop();continue}let m=p.def,g=p.idx,y=p.ruleStack,v=p.occurrenceStack;if(Vt(m))continue;let x=m[0];if(x===i){let b={idx:g,def:ai(m),ruleStack:wu(y),occurrenceStack:wu(v)};d.push(b)}else if(x instanceof sr)if(g=0;b--){let k=x.definition[b],A={idx:g,def:k.definition.concat(ai(m)),ruleStack:y,occurrenceStack:v};d.push(A),d.push(o)}else if(x instanceof vn)d.push({idx:g,def:x.definition.concat(ai(m)),ruleStack:y,occurrenceStack:v});else if(x instanceof Ya)d.push(iMe(x,g,y,v));else throw Error("non exhaustive match")}return f}function iMe(t,e,r,n){let i=Hr(r);i.push(t.name);let a=Hr(n);return a.push(1),{idx:e,def:t.definition,ruleStack:i,occurrenceStack:a}}var AR,d6,Fm,p6,Uv,m6,qv,Wv=_(()=>{"use strict";Tt();pR();i6();ja();AR=class extends _u{static{s(this,"AbstractNextPossibleTokensWalker")}constructor(e,r){super(),this.topProd=e,this.path=r,this.possibleTokTypes=[],this.nextProductionName="",this.nextProductionOccurrence=0,this.found=!1,this.isAtEndOfPath=!1}startWalking(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=Hr(this.path.ruleStack).reverse(),this.occurrenceStack=Hr(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes}walk(e,r=[]){this.found||super.walk(e,r)}walkProdRef(e,r,n){if(e.referencedRule.name===this.nextProductionName&&e.idx===this.nextProductionOccurrence){let i=r.concat(n);this.updateExpectedNext(),this.walk(e.referencedRule,i)}}updateExpectedNext(){Vt(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}},d6=class extends AR{static{s(this,"NextAfterTokenWalker")}constructor(e,r){super(e,r),this.path=r,this.nextTerminalName="",this.nextTerminalOccurrence=0,this.nextTerminalName=this.path.lastTok.name,this.nextTerminalOccurrence=this.path.lastTokOccurrence}walkTerminal(e,r,n){if(this.isAtEndOfPath&&e.terminalType.name===this.nextTerminalName&&e.idx===this.nextTerminalOccurrence&&!this.found){let i=r.concat(n),a=new vn({definition:i});this.possibleTokTypes=Hd(a),this.found=!0}}},Fm=class extends _u{static{s(this,"AbstractNextTerminalAfterProductionWalker")}constructor(e,r){super(),this.topRule=e,this.occurrence=r,this.result={token:void 0,occurrence:void 0,isEndOfRule:void 0}}startWalking(){return this.walk(this.topRule),this.result}},p6=class extends Fm{static{s(this,"NextTerminalAfterManyWalker")}walkMany(e,r,n){if(e.idx===this.occurrence){let i=Yi(r.concat(n));this.result.isEndOfRule=i===void 0,i instanceof sr&&(this.result.token=i.terminalType,this.result.occurrence=i.idx)}else super.walkMany(e,r,n)}},Uv=class extends Fm{static{s(this,"NextTerminalAfterManySepWalker")}walkManySep(e,r,n){if(e.idx===this.occurrence){let i=Yi(r.concat(n));this.result.isEndOfRule=i===void 0,i instanceof sr&&(this.result.token=i.terminalType,this.result.occurrence=i.idx)}else super.walkManySep(e,r,n)}},m6=class extends Fm{static{s(this,"NextTerminalAfterAtLeastOneWalker")}walkAtLeastOne(e,r,n){if(e.idx===this.occurrence){let i=Yi(r.concat(n));this.result.isEndOfRule=i===void 0,i instanceof sr&&(this.result.token=i.terminalType,this.result.occurrence=i.idx)}else super.walkAtLeastOne(e,r,n)}},qv=class extends Fm{static{s(this,"NextTerminalAfterAtLeastOneSepWalker")}walkAtLeastOneSep(e,r,n){if(e.idx===this.occurrence){let i=Yi(r.concat(n));this.result.isEndOfRule=i===void 0,i instanceof sr&&(this.result.token=i.terminalType,this.result.occurrence=i.idx)}else super.walkAtLeastOneSep(e,r,n)}};s(g6,"possiblePathsFrom");s(y6,"nextPossibleTokensAfter");s(iMe,"expandTopLevelRule")});function Hv(t){if(t instanceof Xr||t==="Option")return Nn.OPTION;if(t instanceof mr||t==="Repetition")return Nn.REPETITION;if(t instanceof xn||t==="RepetitionMandatory")return Nn.REPETITION_MANDATORY;if(t instanceof bn||t==="RepetitionMandatoryWithSeparator")return Nn.REPETITION_MANDATORY_WITH_SEPARATOR;if(t instanceof ln||t==="RepetitionWithSeparator")return Nn.REPETITION_WITH_SEPARATOR;if(t instanceof cn||t==="Alternation")return Nn.ALTERNATION;throw Error("non exhaustive match")}function x6(t){let{occurrence:e,rule:r,prodType:n,maxLookahead:i}=t,a=Hv(n);return a===Nn.ALTERNATION?zm(e,r,i):$m(e,r,a,i)}function vne(t,e,r,n,i,a){let o=zm(t,e,r),l=Ene(o)?Pm:Au;return a(o,n,l,i)}function xne(t,e,r,n,i,a){let o=$m(t,e,i,r),l=Ene(o)?Pm:Au;return a(o[0],l,n)}function bne(t,e,r,n){let i=t.length,a=Ca(t,o=>Ca(o,l=>l.length===1));if(e)return function(o){let l=Ge(o,u=>u.GATE);for(let u=0;uIr(u)),l=Or(o,(u,h,f)=>(be(h,d=>{Ve(u,d.tokenTypeIdx)||(u[d.tokenTypeIdx]=f),be(d.categoryMatches,p=>{Ve(u,p)||(u[p]=f)})}),u),{});return function(){let u=this.LA(1);return l[u.tokenTypeIdx]}}else return function(){for(let o=0;oa.length===1),i=t.length;if(n&&!r){let a=Ir(t);if(a.length===1&&Vt(a[0].categoryMatches)){let l=a[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===l}}else{let o=Or(a,(l,u,h)=>(l[u.tokenTypeIdx]=!0,be(u.categoryMatches,f=>{l[f]=!0}),l),[]);return function(){let l=this.LA(1);return o[l.tokenTypeIdx]===!0}}}else return function(){e:for(let a=0;ag6([o],1)),n=yne(r.length),i=Ge(r,o=>{let l={};return be(o,u=>{let h=LR(u.partialPath);be(h,f=>{l[f]=!0})}),l}),a=r;for(let o=1;o<=e;o++){let l=a;a=yne(l.length);for(let u=0;u{let x=LR(v.partialPath);be(x,b=>{i[u][b]=!0})})}}}}return n}function zm(t,e,r,n){let i=new v6(t,Nn.ALTERNATION,n);return e.accept(i),wne(i.result,r)}function $m(t,e,r,n){let i=new v6(t,r);e.accept(i);let a=i.result,l=new DR(e,t,r).startWalking(),u=new vn({definition:a}),h=new vn({definition:l});return wne([u,h],n)}function b6(t,e){e:for(let r=0;r{let i=e[n];return r===i||i.categoryMatchesMap[r.tokenTypeIdx]})}function Ene(t){return Ca(t,e=>Ca(e,r=>Ca(r,n=>Vt(n.categoryMatches))))}var Nn,DR,v6,Gm=_(()=>{"use strict";Tt();Wv();i6();Xd();ja();(function(t){t[t.OPTION=0]="OPTION",t[t.REPETITION=1]="REPETITION",t[t.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",t[t.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",t[t.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",t[t.ALTERNATION=5]="ALTERNATION"})(Nn||(Nn={}));s(Hv,"getProdType");s(x6,"getLookaheadPaths");s(vne,"buildLookaheadFuncForOr");s(xne,"buildLookaheadFuncForOptionalProd");s(bne,"buildAlternativesLookAheadFunc");s(kne,"buildSingleAlternativeLookaheadFunction");DR=class extends _u{static{s(this,"RestDefinitionFinderWalker")}constructor(e,r,n){super(),this.topProd=e,this.targetOccurrence=r,this.targetProdType=n}startWalking(){return this.walk(this.topProd),this.restDef}checkIsTarget(e,r,n,i){return e.idx===this.targetOccurrence&&this.targetProdType===r?(this.restDef=n.concat(i),!0):!1}walkOption(e,r,n){this.checkIsTarget(e,Nn.OPTION,r,n)||super.walkOption(e,r,n)}walkAtLeastOne(e,r,n){this.checkIsTarget(e,Nn.REPETITION_MANDATORY,r,n)||super.walkOption(e,r,n)}walkAtLeastOneSep(e,r,n){this.checkIsTarget(e,Nn.REPETITION_MANDATORY_WITH_SEPARATOR,r,n)||super.walkOption(e,r,n)}walkMany(e,r,n){this.checkIsTarget(e,Nn.REPETITION,r,n)||super.walkOption(e,r,n)}walkManySep(e,r,n){this.checkIsTarget(e,Nn.REPETITION_WITH_SEPARATOR,r,n)||super.walkOption(e,r,n)}},v6=class extends Xa{static{s(this,"InsideDefinitionFinderVisitor")}constructor(e,r,n){super(),this.targetOccurrence=e,this.targetProdType=r,this.targetRef=n,this.result=[]}checkIsTarget(e,r){e.idx===this.targetOccurrence&&this.targetProdType===r&&(this.targetRef===void 0||e===this.targetRef)&&(this.result=e.definition)}visitOption(e){this.checkIsTarget(e,Nn.OPTION)}visitRepetition(e){this.checkIsTarget(e,Nn.REPETITION)}visitRepetitionMandatory(e){this.checkIsTarget(e,Nn.REPETITION_MANDATORY)}visitRepetitionMandatoryWithSeparator(e){this.checkIsTarget(e,Nn.REPETITION_MANDATORY_WITH_SEPARATOR)}visitRepetitionWithSeparator(e){this.checkIsTarget(e,Nn.REPETITION_WITH_SEPARATOR)}visitAlternation(e){this.checkIsTarget(e,Nn.ALTERNATION)}};s(yne,"initializeArrayOfArrays");s(LR,"pathToHashKeys");s(aMe,"isUniquePrefixHash");s(wne,"lookAheadSequenceFromAlternatives");s(zm,"getLookaheadPathsForOr");s($m,"getLookaheadPathsForOptionalProd");s(b6,"containsPath");s(Tne,"isStrictPrefixOfPath");s(Ene,"areTokenCategoriesNotUsed")});function Cne(t){let e=t.lookaheadStrategy.validate({rules:t.rules,tokenTypes:t.tokenTypes,grammarName:t.grammarName});return Ge(e,r=>Object.assign({type:Li.CUSTOM_LOOKAHEAD_VALIDATION},r))}function Sne(t,e,r,n){let i=oa(t,u=>sMe(u,r)),a=fMe(t,e,r),o=oa(t,u=>cMe(u,r)),l=oa(t,u=>lMe(u,t,n,r));return i.concat(a,o,l)}function sMe(t,e){let r=new RR;t.accept(r);let n=r.allProductions,i=q9(n,oMe),a=Ts(i,l=>l.length>1);return Ge(nr(a),l=>{let u=Yi(l),h=e.buildDuplicateFoundError(t,l),f=Cs(u),d={message:h,type:Li.DUPLICATE_PRODUCTIONS,ruleName:t.name,dslName:f,occurrence:u.idx},p=_ne(u);return p&&(d.parameter=p),d})}function oMe(t){return`${Cs(t)}_#_${t.idx}_#_${_ne(t)}`}function _ne(t){return t instanceof sr?t.terminalType.name:t instanceof Yr?t.nonTerminalName:""}function lMe(t,e,r,n){let i=[];if(Or(e,(o,l)=>l.name===t.name?o+1:o,0)>1){let o=n.buildDuplicateRuleNameError({topLevelRule:t,grammarName:r});i.push({message:o,type:Li.DUPLICATE_RULE_NAME,ruleName:t.name})}return i}function Ane(t,e,r){let n=[],i;return Rn(e,t)||(i=`Invalid rule override, rule: ->${t}<- cannot be overridden in the grammar: ->${r}<-as it is not defined in any of the super grammars `,n.push({message:i,type:Li.INVALID_RULE_OVERRIDE,ruleName:t})),n}function IR(t,e,r,n=[]){let i=[],a=k6(e.definition);if(Vt(a))return[];{let o=t.name;Rn(a,t)&&i.push({message:r.buildLeftRecursionError({topLevelRule:t,leftRecursionPath:n}),type:Li.LEFT_RECURSION,ruleName:o});let u=Uh(a,n.concat([t])),h=oa(u,f=>{let d=Hr(n);return d.push(f),IR(t,f,r,d)});return i.concat(h)}}function k6(t){let e=[];if(Vt(t))return e;let r=Yi(t);if(r instanceof Yr)e.push(r.referencedRule);else if(r instanceof vn||r instanceof Xr||r instanceof xn||r instanceof bn||r instanceof ln||r instanceof mr)e=e.concat(k6(r.definition));else if(r instanceof cn)e=Ir(Ge(r.definition,a=>k6(a.definition)));else if(!(r instanceof sr))throw Error("non exhaustive match");let n=Wd(r),i=t.length>1;if(n&&i){let a=ai(t);return e.concat(k6(a))}else return e}function Lne(t,e){let r=new Yv;t.accept(r);let n=r.alternations;return oa(n,a=>{let o=wu(a.definition);return oa(o,(l,u)=>{let h=y6([l],[],Au,1);return Vt(h)?[{message:e.buildEmptyAlternationError({topLevelRule:t,alternation:a,emptyChoiceIdx:u}),type:Li.NONE_LAST_EMPTY_ALT,ruleName:t.name,occurrence:a.idx,alternative:u+1}]:[]})})}function Dne(t,e,r){let n=new Yv;t.accept(n);let i=n.alternations;return i=qh(i,o=>o.ignoreAmbiguities===!0),oa(i,o=>{let l=o.idx,u=o.maxLookahead||e,h=zm(l,t,u,o),f=uMe(h,o,t,r),d=hMe(h,o,t,r);return f.concat(d)})}function cMe(t,e){let r=new Yv;t.accept(r);let n=r.alternations;return oa(n,a=>a.definition.length>255?[{message:e.buildTooManyAlternativesError({topLevelRule:t,alternation:a}),type:Li.TOO_MANY_ALTS,ruleName:t.name,occurrence:a.idx}]:[])}function Rne(t,e,r){let n=[];return be(t,i=>{let a=new MR;i.accept(a);let o=a.allProductions;be(o,l=>{let u=Hv(l),h=l.maxLookahead||e,f=l.idx,p=$m(f,i,u,h)[0];if(Vt(Ir(p))){let m=r.buildEmptyRepetitionError({topLevelRule:i,repetition:l});n.push({message:m,type:Li.NO_NON_EMPTY_LOOKAHEAD,ruleName:i.name})}})}),n}function uMe(t,e,r,n){let i=[],a=Or(t,(l,u,h)=>(e.definition[h].ignoreAmbiguities===!0||be(u,f=>{let d=[h];be(t,(p,m)=>{h!==m&&b6(p,f)&&e.definition[m].ignoreAmbiguities!==!0&&d.push(m)}),d.length>1&&!b6(i,f)&&(i.push(f),l.push({alts:d,path:f}))}),l),[]);return Ge(a,l=>{let u=Ge(l.alts,f=>f+1);return{message:n.buildAlternationAmbiguityError({topLevelRule:r,alternation:e,ambiguityIndices:u,prefixPath:l.path}),type:Li.AMBIGUOUS_ALTS,ruleName:r.name,occurrence:e.idx,alternatives:l.alts}})}function hMe(t,e,r,n){let i=Or(t,(o,l,u)=>{let h=Ge(l,f=>({idx:u,path:f}));return o.concat(h)},[]);return uc(oa(i,o=>{if(e.definition[o.idx].ignoreAmbiguities===!0)return[];let u=o.idx,h=o.path,f=Nr(i,p=>e.definition[p.idx].ignoreAmbiguities!==!0&&p.idx{let m=[p.idx+1,u+1],g=e.idx===0?"":e.idx;return{message:n.buildAlternationPrefixAmbiguityError({topLevelRule:r,alternation:e,ambiguityIndices:m,prefixPath:p.path}),type:Li.AMBIGUOUS_PREFIX_ALTS,ruleName:r.name,occurrence:g,alternatives:m}})}))}function fMe(t,e,r){let n=[],i=Ge(e,a=>a.name);return be(t,a=>{let o=a.name;if(Rn(i,o)){let l=r.buildNamespaceConflictError(a);n.push({message:l,type:Li.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:o})}}),n}var RR,Yv,MR,Xv=_(()=>{"use strict";Tt();Ss();ja();Gm();Wv();Xd();s(Cne,"validateLookahead");s(Sne,"validateGrammar");s(sMe,"validateDuplicateProductions");s(oMe,"identifyProductionForDuplicates");s(_ne,"getExtraProductionArgument");RR=class extends Xa{static{s(this,"OccurrenceValidationCollector")}constructor(){super(...arguments),this.allProductions=[]}visitNonTerminal(e){this.allProductions.push(e)}visitOption(e){this.allProductions.push(e)}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}visitAlternation(e){this.allProductions.push(e)}visitTerminal(e){this.allProductions.push(e)}};s(lMe,"validateRuleDoesNotAlreadyExist");s(Ane,"validateRuleIsOverridden");s(IR,"validateNoLeftRecursion");s(k6,"getFirstNoneTerminal");Yv=class extends Xa{static{s(this,"OrCollector")}constructor(){super(...arguments),this.alternations=[]}visitAlternation(e){this.alternations.push(e)}};s(Lne,"validateEmptyOrAlternative");s(Dne,"validateAmbiguousAlternationAlternatives");MR=class extends Xa{static{s(this,"RepetitionCollector")}constructor(){super(...arguments),this.allProductions=[]}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}};s(cMe,"validateTooManyAlts");s(Rne,"validateSomeNonEmptyLookaheadPath");s(uMe,"checkAlternativesAmbiguities");s(hMe,"checkPrefixAlternativesAmbiguities");s(fMe,"checkTerminalAndNoneTerminalsNameSpace")});function Mne(t){let e=Vh(t,{errMsgProvider:pne}),r={};return be(t.rules,n=>{r[n.name]=n}),mne(r,e.errMsgProvider)}function Ine(t){return t=Vh(t,{errMsgProvider:bl}),Sne(t.rules,t.tokenTypes,t.errMsgProvider,t.grammarName)}var Nne=_(()=>{"use strict";Tt();gne();Xv();Bm();s(Mne,"resolveGrammar");s(Ine,"validateGrammar")});function Qh(t){return Rn(zne,t.name)}var One,Pne,Bne,Fne,zne,Vm,Qd,jv,Kv,Qv,Um=_(()=>{"use strict";Tt();One="MismatchedTokenException",Pne="NoViableAltException",Bne="EarlyExitException",Fne="NotAllInputParsedException",zne=[One,Pne,Bne,Fne];Object.freeze(zne);s(Qh,"isRecognitionException");Vm=class extends Error{static{s(this,"RecognitionException")}constructor(e,r){super(e),this.token=r,this.resyncedTokens=[],Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},Qd=class extends Vm{static{s(this,"MismatchedTokenException")}constructor(e,r,n){super(e,r),this.previousToken=n,this.name=One}},jv=class extends Vm{static{s(this,"NoViableAltException")}constructor(e,r,n){super(e,r),this.previousToken=n,this.name=Pne}},Kv=class extends Vm{static{s(this,"NotAllInputParsedException")}constructor(e,r){super(e,r),this.name=Fne}},Qv=class extends Vm{static{s(this,"EarlyExitException")}constructor(e,r,n){super(e,r),this.previousToken=n,this.name=Bne}}});function dMe(t,e,r,n,i,a,o){let l=this.getKeyForAutomaticLookahead(n,i),u=this.firstAfterRepMap[l];if(u===void 0){let p=this.getCurrRuleFullName(),m=this.getGAstProductions()[p];u=new a(m,i).startWalking(),this.firstAfterRepMap[l]=u}let h=u.token,f=u.occurrence,d=u.isEndOfRule;this.RULE_STACK.length===1&&d&&h===void 0&&(h=io,f=1),!(h===void 0||f===void 0)&&this.shouldInRepetitionRecoveryBeTried(h,f,o)&&this.tryInRepetitionRecovery(t,e,r,h)}var NR,PR,OR,w6,BR=_(()=>{"use strict";Kd();Tt();Um();mR();Ss();NR={},PR="InRuleRecoveryException",OR=class extends Error{static{s(this,"InRuleRecoveryException")}constructor(e){super(e),this.name=PR}},w6=class{static{s(this,"Recoverable")}initRecoverable(e){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=Ve(e,"recoveryEnabled")?e.recoveryEnabled:Ka.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=dMe)}getTokenToInsert(e){let r=jd(e,"",NaN,NaN,NaN,NaN,NaN,NaN);return r.isInsertedInRecovery=!0,r}canTokenTypeBeInsertedInRecovery(e){return!0}canTokenTypeBeDeletedInRecovery(e){return!0}tryInRepetitionRecovery(e,r,n,i){let a=this.findReSyncTokenType(),o=this.exportLexerState(),l=[],u=!1,h=this.LA(1),f=this.LA(1),d=s(()=>{let p=this.LA(0),m=this.errorMessageProvider.buildMismatchTokenMessage({expected:i,actual:h,previous:p,ruleName:this.getCurrRuleFullName()}),g=new Qd(m,h,this.LA(0));g.resyncedTokens=wu(l),this.SAVE_ERROR(g)},"generateErrorMessage");for(;!u;)if(this.tokenMatcher(f,i)){d();return}else if(n.call(this)){d(),e.apply(this,r);return}else this.tokenMatcher(f,a)?u=!0:(f=this.SKIP_TOKEN(),this.addToResyncTokens(f,l));this.importLexerState(o)}shouldInRepetitionRecoveryBeTried(e,r,n){return!(n===!1||this.tokenMatcher(this.LA(1),e)||this.isBackTracking()||this.canPerformInRuleRecovery(e,this.getFollowsForInRuleRecovery(e,r)))}getFollowsForInRuleRecovery(e,r){let n=this.getCurrentGrammarPath(e,r);return this.getNextPossibleTokenTypes(n)}tryInRuleRecovery(e,r){if(this.canRecoverWithSingleTokenInsertion(e,r))return this.getTokenToInsert(e);if(this.canRecoverWithSingleTokenDeletion(e)){let n=this.SKIP_TOKEN();return this.consumeToken(),n}throw new OR("sad sad panda")}canPerformInRuleRecovery(e,r){return this.canRecoverWithSingleTokenInsertion(e,r)||this.canRecoverWithSingleTokenDeletion(e)}canRecoverWithSingleTokenInsertion(e,r){if(!this.canTokenTypeBeInsertedInRecovery(e)||Vt(r))return!1;let n=this.LA(1);return qa(r,a=>this.tokenMatcher(n,a))!==void 0}canRecoverWithSingleTokenDeletion(e){return this.canTokenTypeBeDeletedInRecovery(e)?this.tokenMatcher(this.LA(2),e):!1}isInCurrentRuleReSyncSet(e){let r=this.getCurrFollowKey(),n=this.getFollowSetFromFollowKey(r);return Rn(n,e)}findReSyncTokenType(){let e=this.flattenFollowSet(),r=this.LA(1),n=2;for(;;){let i=qa(e,a=>Vv(r,a));if(i!==void 0)return i;r=this.LA(n),n++}}getCurrFollowKey(){if(this.RULE_STACK.length===1)return NR;let e=this.getLastExplicitRuleShortName(),r=this.getLastExplicitRuleOccurrenceIndex(),n=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:r,inRule:this.shortRuleNameToFullName(n)}}buildFullFollowKeyStack(){let e=this.RULE_STACK,r=this.RULE_OCCURRENCE_STACK;return Ge(e,(n,i)=>i===0?NR:{ruleName:this.shortRuleNameToFullName(n),idxInCallingRule:r[i],inRule:this.shortRuleNameToFullName(e[i-1])})}flattenFollowSet(){let e=Ge(this.buildFullFollowKeyStack(),r=>this.getFollowSetFromFollowKey(r));return Ir(e)}getFollowSetFromFollowKey(e){if(e===NR)return[io];let r=e.ruleName+e.idxInCallingRule+a6+e.inRule;return this.resyncFollows[r]}addToResyncTokens(e,r){return this.tokenMatcher(e,io)||r.push(e),r}reSyncTo(e){let r=[],n=this.LA(1);for(;this.tokenMatcher(n,e)===!1;)n=this.SKIP_TOKEN(),this.addToResyncTokens(n,r);return wu(r)}attemptInRepetitionRecovery(e,r,n,i,a,o,l){}getCurrentGrammarPath(e,r){let n=this.getHumanReadableRuleStack(),i=Hr(this.RULE_OCCURRENCE_STACK);return{ruleStack:n,occurrenceStack:i,lastTok:e,lastTokOccurrence:r}}getHumanReadableRuleStack(){return Ge(this.RULE_STACK,e=>this.shortRuleNameToFullName(e))}};s(dMe,"attemptInRepetitionRecovery")});function T6(t,e,r){return r|e|t}var E6=_(()=>{"use strict";s(T6,"getKeyForAutomaticLookahead")});var Mu,FR=_(()=>{"use strict";Tt();Bm();Ss();Xv();Gm();Mu=class{static{s(this,"LLkLookaheadStrategy")}constructor(e){var r;this.maxLookahead=(r=e?.maxLookahead)!==null&&r!==void 0?r:Ka.maxLookahead}validate(e){let r=this.validateNoLeftRecursion(e.rules);if(Vt(r)){let n=this.validateEmptyOrAlternatives(e.rules),i=this.validateAmbiguousAlternationAlternatives(e.rules,this.maxLookahead),a=this.validateSomeNonEmptyLookaheadPath(e.rules,this.maxLookahead);return[...r,...n,...i,...a]}return r}validateNoLeftRecursion(e){return oa(e,r=>IR(r,r,bl))}validateEmptyOrAlternatives(e){return oa(e,r=>Lne(r,bl))}validateAmbiguousAlternationAlternatives(e,r){return oa(e,n=>Dne(n,r,bl))}validateSomeNonEmptyLookaheadPath(e,r){return Rne(e,r,bl)}buildLookaheadForAlternation(e){return vne(e.prodOccurrence,e.rule,e.maxLookahead,e.hasPredicates,e.dynamicTokensEnabled,bne)}buildLookaheadForOptional(e){return xne(e.prodOccurrence,e.rule,e.maxLookahead,e.dynamicTokensEnabled,Hv(e.prodType),kne)}}});function pMe(t){C6.reset(),t.accept(C6);let e=C6.dslMethods;return C6.reset(),e}var S6,zR,C6,$ne=_(()=>{"use strict";Tt();Ss();E6();ja();FR();S6=class{static{s(this,"LooksAhead")}initLooksAhead(e){this.dynamicTokensEnabled=Ve(e,"dynamicTokensEnabled")?e.dynamicTokensEnabled:Ka.dynamicTokensEnabled,this.maxLookahead=Ve(e,"maxLookahead")?e.maxLookahead:Ka.maxLookahead,this.lookaheadStrategy=Ve(e,"lookaheadStrategy")?e.lookaheadStrategy:new Mu({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=new Map}preComputeLookaheadFunctions(e){be(e,r=>{this.TRACE_INIT(`${r.name} Rule Lookahead`,()=>{let{alternation:n,repetition:i,option:a,repetitionMandatory:o,repetitionMandatoryWithSeparator:l,repetitionWithSeparator:u}=pMe(r);be(n,h=>{let f=h.idx===0?"":h.idx;this.TRACE_INIT(`${Cs(h)}${f}`,()=>{let d=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:h.idx,rule:r,maxLookahead:h.maxLookahead||this.maxLookahead,hasPredicates:h.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled}),p=T6(this.fullRuleNameToShort[r.name],256,h.idx);this.setLaFuncCache(p,d)})}),be(i,h=>{this.computeLookaheadFunc(r,h.idx,768,"Repetition",h.maxLookahead,Cs(h))}),be(a,h=>{this.computeLookaheadFunc(r,h.idx,512,"Option",h.maxLookahead,Cs(h))}),be(o,h=>{this.computeLookaheadFunc(r,h.idx,1024,"RepetitionMandatory",h.maxLookahead,Cs(h))}),be(l,h=>{this.computeLookaheadFunc(r,h.idx,1536,"RepetitionMandatoryWithSeparator",h.maxLookahead,Cs(h))}),be(u,h=>{this.computeLookaheadFunc(r,h.idx,1280,"RepetitionWithSeparator",h.maxLookahead,Cs(h))})})})}computeLookaheadFunc(e,r,n,i,a,o){this.TRACE_INIT(`${o}${r===0?"":r}`,()=>{let l=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:r,rule:e,maxLookahead:a||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:i}),u=T6(this.fullRuleNameToShort[e.name],n,r);this.setLaFuncCache(u,l)})}getKeyForAutomaticLookahead(e,r){let n=this.getLastExplicitRuleShortName();return T6(n,e,r)}getLaFuncFromCache(e){return this.lookAheadFuncsCache.get(e)}setLaFuncCache(e,r){this.lookAheadFuncsCache.set(e,r)}},zR=class extends Xa{static{s(this,"DslMethodsCollectorVisitor")}constructor(){super(...arguments),this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}reset(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}visitOption(e){this.dslMethods.option.push(e)}visitRepetitionWithSeparator(e){this.dslMethods.repetitionWithSeparator.push(e)}visitRepetitionMandatory(e){this.dslMethods.repetitionMandatory.push(e)}visitRepetitionMandatoryWithSeparator(e){this.dslMethods.repetitionMandatoryWithSeparator.push(e)}visitRepetition(e){this.dslMethods.repetition.push(e)}visitAlternation(e){this.dslMethods.alternation.push(e)}},C6=new zR;s(pMe,"collectMethods")});function VR(t,e){isNaN(t.startOffset)===!0?(t.startOffset=e.startOffset,t.endOffset=e.endOffset):t.endOffset{"use strict";s(VR,"setNodeLocationOnlyOffset");s(UR,"setNodeLocationFull");s(Gne,"addTerminalToCst");s(Vne,"addNoneTerminalToCst")});function qR(t,e){Object.defineProperty(t,mMe,{enumerable:!1,configurable:!0,writable:!1,value:e})}var mMe,qne=_(()=>{"use strict";mMe="name";s(qR,"defineNameProp")});function gMe(t,e){let r=kr(t),n=r.length;for(let i=0;io.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>:
${a.join(`
`).replace(/\n/g,`
`)}`)}},"validateVisitor")};return r.prototype=n,r.prototype.constructor=r,r._RULE_NAMES=e,r}function Hne(t,e,r){let n=s(function(){},"derivedConstructor");qR(n,t+"BaseSemanticsWithDefaults");let i=Object.create(r.prototype);return be(e,a=>{i[a]=gMe}),n.prototype=i,n.prototype.constructor=n,n}function yMe(t,e){return vMe(t,e)}function vMe(t,e){let r=Nr(e,i=>fi(t[i])===!1),n=Ge(r,i=>({msg:`Missing visitor method: <${i}> on ${t.constructor.name} CST Visitor.`,type:WR.MISSING_METHOD,methodName:i}));return uc(n)}var WR,Yne=_(()=>{"use strict";Tt();qne();s(gMe,"defaultVisit");s(Wne,"createBaseSemanticVisitorConstructor");s(Hne,"createBaseVisitorConstructorWithDefaults");(function(t){t[t.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",t[t.MISSING_METHOD=1]="MISSING_METHOD"})(WR||(WR={}));s(yMe,"validateVisitor");s(vMe,"validateMissingCstMethods")});var D6,Xne=_(()=>{"use strict";Une();Tt();Yne();Ss();D6=class{static{s(this,"TreeBuilder")}initTreeBuilder(e){if(this.CST_STACK=[],this.outputCst=e.outputCst,this.nodeLocationTracking=Ve(e,"nodeLocationTracking")?e.nodeLocationTracking:Ka.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=zn,this.cstFinallyStateUpdate=zn,this.cstPostTerminal=zn,this.cstPostNonTerminal=zn,this.cstPostRule=zn;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=UR,this.setNodeLocationFromNode=UR,this.cstPostRule=zn,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=zn,this.setNodeLocationFromNode=zn,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=VR,this.setNodeLocationFromNode=VR,this.cstPostRule=zn,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=zn,this.setNodeLocationFromNode=zn,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=zn,this.setNodeLocationFromNode=zn,this.cstPostRule=zn,this.setInitialNodeLocation=zn;else throw Error(`Invalid config option: "${e.nodeLocationTracking}"`)}setInitialNodeLocationOnlyOffsetRecovery(e){e.location={startOffset:NaN,endOffset:NaN}}setInitialNodeLocationOnlyOffsetRegular(e){e.location={startOffset:this.LA(1).startOffset,endOffset:NaN}}setInitialNodeLocationFullRecovery(e){e.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}}setInitialNodeLocationFullRegular(e){let r=this.LA(1);e.location={startOffset:r.startOffset,startLine:r.startLine,startColumn:r.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}}cstInvocationStateUpdate(e){let r={name:e,children:Object.create(null)};this.setInitialNodeLocation(r),this.CST_STACK.push(r)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(e){let r=this.LA(0),n=e.location;n.startOffset<=r.startOffset?(n.endOffset=r.endOffset,n.endLine=r.endLine,n.endColumn=r.endColumn):(n.startOffset=NaN,n.startLine=NaN,n.startColumn=NaN)}cstPostRuleOnlyOffset(e){let r=this.LA(0),n=e.location;n.startOffset<=r.startOffset?n.endOffset=r.endOffset:n.startOffset=NaN}cstPostTerminal(e,r){let n=this.CST_STACK[this.CST_STACK.length-1];Gne(n,r,e),this.setNodeLocationFromToken(n.location,r)}cstPostNonTerminal(e,r){let n=this.CST_STACK[this.CST_STACK.length-1];Vne(n,r,e),this.setNodeLocationFromNode(n.location,e.location)}getBaseCstVisitorConstructor(){if(jt(this.baseCstVisitorConstructor)){let e=Wne(this.className,kr(this.gastProductionsCache));return this.baseCstVisitorConstructor=e,e}return this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){if(jt(this.baseCstVisitorWithDefaultsConstructor)){let e=Hne(this.className,kr(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=e,e}return this.baseCstVisitorWithDefaultsConstructor}getLastExplicitRuleShortName(){let e=this.RULE_STACK;return e[e.length-1]}getPreviousExplicitRuleShortName(){let e=this.RULE_STACK;return e[e.length-2]}getLastExplicitRuleOccurrenceIndex(){let e=this.RULE_OCCURRENCE_STACK;return e[e.length-1]}}});var R6,jne=_(()=>{"use strict";Ss();R6=class{static{s(this,"LexerAdapter")}initLexerAdapter(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1}set input(e){if(this.selfAnalysisDone!==!0)throw Error("Missing invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=e,this.tokVectorLength=e.length}get input(){return this.tokVector}SKIP_TOKEN(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):qm}LA(e){let r=this.currIdx+e;return r<0||this.tokVectorLength<=r?qm:this.tokVector[r]}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(e){this.currIdx=e}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx=this.tokVector.length-1}getLexerPosition(){return this.exportLexerState()}}});var M6,Kne=_(()=>{"use strict";Tt();Um();Ss();Bm();Xv();ja();M6=class{static{s(this,"RecognizerApi")}ACTION(e){return e.call(this)}consume(e,r,n){return this.consumeInternal(r,e,n)}subrule(e,r,n){return this.subruleInternal(r,e,n)}option(e,r){return this.optionInternal(r,e)}or(e,r){return this.orInternal(r,e)}many(e,r){return this.manyInternal(e,r)}atLeastOne(e,r){return this.atLeastOneInternal(e,r)}CONSUME(e,r){return this.consumeInternal(e,0,r)}CONSUME1(e,r){return this.consumeInternal(e,1,r)}CONSUME2(e,r){return this.consumeInternal(e,2,r)}CONSUME3(e,r){return this.consumeInternal(e,3,r)}CONSUME4(e,r){return this.consumeInternal(e,4,r)}CONSUME5(e,r){return this.consumeInternal(e,5,r)}CONSUME6(e,r){return this.consumeInternal(e,6,r)}CONSUME7(e,r){return this.consumeInternal(e,7,r)}CONSUME8(e,r){return this.consumeInternal(e,8,r)}CONSUME9(e,r){return this.consumeInternal(e,9,r)}SUBRULE(e,r){return this.subruleInternal(e,0,r)}SUBRULE1(e,r){return this.subruleInternal(e,1,r)}SUBRULE2(e,r){return this.subruleInternal(e,2,r)}SUBRULE3(e,r){return this.subruleInternal(e,3,r)}SUBRULE4(e,r){return this.subruleInternal(e,4,r)}SUBRULE5(e,r){return this.subruleInternal(e,5,r)}SUBRULE6(e,r){return this.subruleInternal(e,6,r)}SUBRULE7(e,r){return this.subruleInternal(e,7,r)}SUBRULE8(e,r){return this.subruleInternal(e,8,r)}SUBRULE9(e,r){return this.subruleInternal(e,9,r)}OPTION(e){return this.optionInternal(e,0)}OPTION1(e){return this.optionInternal(e,1)}OPTION2(e){return this.optionInternal(e,2)}OPTION3(e){return this.optionInternal(e,3)}OPTION4(e){return this.optionInternal(e,4)}OPTION5(e){return this.optionInternal(e,5)}OPTION6(e){return this.optionInternal(e,6)}OPTION7(e){return this.optionInternal(e,7)}OPTION8(e){return this.optionInternal(e,8)}OPTION9(e){return this.optionInternal(e,9)}OR(e){return this.orInternal(e,0)}OR1(e){return this.orInternal(e,1)}OR2(e){return this.orInternal(e,2)}OR3(e){return this.orInternal(e,3)}OR4(e){return this.orInternal(e,4)}OR5(e){return this.orInternal(e,5)}OR6(e){return this.orInternal(e,6)}OR7(e){return this.orInternal(e,7)}OR8(e){return this.orInternal(e,8)}OR9(e){return this.orInternal(e,9)}MANY(e){this.manyInternal(0,e)}MANY1(e){this.manyInternal(1,e)}MANY2(e){this.manyInternal(2,e)}MANY3(e){this.manyInternal(3,e)}MANY4(e){this.manyInternal(4,e)}MANY5(e){this.manyInternal(5,e)}MANY6(e){this.manyInternal(6,e)}MANY7(e){this.manyInternal(7,e)}MANY8(e){this.manyInternal(8,e)}MANY9(e){this.manyInternal(9,e)}MANY_SEP(e){this.manySepFirstInternal(0,e)}MANY_SEP1(e){this.manySepFirstInternal(1,e)}MANY_SEP2(e){this.manySepFirstInternal(2,e)}MANY_SEP3(e){this.manySepFirstInternal(3,e)}MANY_SEP4(e){this.manySepFirstInternal(4,e)}MANY_SEP5(e){this.manySepFirstInternal(5,e)}MANY_SEP6(e){this.manySepFirstInternal(6,e)}MANY_SEP7(e){this.manySepFirstInternal(7,e)}MANY_SEP8(e){this.manySepFirstInternal(8,e)}MANY_SEP9(e){this.manySepFirstInternal(9,e)}AT_LEAST_ONE(e){this.atLeastOneInternal(0,e)}AT_LEAST_ONE1(e){return this.atLeastOneInternal(1,e)}AT_LEAST_ONE2(e){this.atLeastOneInternal(2,e)}AT_LEAST_ONE3(e){this.atLeastOneInternal(3,e)}AT_LEAST_ONE4(e){this.atLeastOneInternal(4,e)}AT_LEAST_ONE5(e){this.atLeastOneInternal(5,e)}AT_LEAST_ONE6(e){this.atLeastOneInternal(6,e)}AT_LEAST_ONE7(e){this.atLeastOneInternal(7,e)}AT_LEAST_ONE8(e){this.atLeastOneInternal(8,e)}AT_LEAST_ONE9(e){this.atLeastOneInternal(9,e)}AT_LEAST_ONE_SEP(e){this.atLeastOneSepFirstInternal(0,e)}AT_LEAST_ONE_SEP1(e){this.atLeastOneSepFirstInternal(1,e)}AT_LEAST_ONE_SEP2(e){this.atLeastOneSepFirstInternal(2,e)}AT_LEAST_ONE_SEP3(e){this.atLeastOneSepFirstInternal(3,e)}AT_LEAST_ONE_SEP4(e){this.atLeastOneSepFirstInternal(4,e)}AT_LEAST_ONE_SEP5(e){this.atLeastOneSepFirstInternal(5,e)}AT_LEAST_ONE_SEP6(e){this.atLeastOneSepFirstInternal(6,e)}AT_LEAST_ONE_SEP7(e){this.atLeastOneSepFirstInternal(7,e)}AT_LEAST_ONE_SEP8(e){this.atLeastOneSepFirstInternal(8,e)}AT_LEAST_ONE_SEP9(e){this.atLeastOneSepFirstInternal(9,e)}RULE(e,r,n=Wm){if(Rn(this.definedRulesNames,e)){let o={message:bl.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className}),type:Li.DUPLICATE_RULE_NAME,ruleName:e};this.definitionErrors.push(o)}this.definedRulesNames.push(e);let i=this.defineRule(e,r,n);return this[e]=i,i}OVERRIDE_RULE(e,r,n=Wm){let i=Ane(e,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(i);let a=this.defineRule(e,r,n);return this[e]=a,a}BACKTRACK(e,r){return function(){this.isBackTrackingStack.push(1);let n=this.saveRecogState();try{return e.apply(this,r),!0}catch(i){if(Qh(i))return!1;throw i}finally{this.reloadRecogState(n),this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){return r6(nr(this.gastProductionsCache))}}});var I6,Qne=_(()=>{"use strict";Tt();E6();Um();Gm();Wv();Ss();BR();Kd();Xd();I6=class{static{s(this,"RecognizerEngine")}initRecognizerEngine(e,r){if(this.className=this.constructor.name,this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=Pm,this.subruleIdx=0,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},Ve(r,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a property.
See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0
For Further details.`);if(ct(e)){if(Vt(e))throw Error(`A Token Vocabulary cannot be empty.
Note that the first argument for the parser constructor
is no longer a Token vector (since v4.0).`);if(typeof e[0].startOffset=="number")throw Error(`The Parser constructor no longer accepts a token vector as the first argument.
See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0
For Further details.`)}if(ct(e))this.tokensMap=Or(e,(a,o)=>(a[o.name]=o,a),{});else if(Ve(e,"modes")&&Ca(Ir(nr(e.modes)),ane)){let a=Ir(nr(e.modes)),o=bm(a);this.tokensMap=Or(o,(l,u)=>(l[u.name]=u,l),{})}else if(on(e))this.tokensMap=Hr(e);else throw new Error(" argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=io;let n=Ve(e,"modes")?Ir(nr(e.modes)):nr(e),i=Ca(n,a=>Vt(a.categoryMatches));this.tokenMatcher=i?Pm:Au,Lu(nr(this.tokensMap))}defineRule(e,r,n){if(this.selfAnalysisDone)throw Error(`Grammar rule <${e}> may not be defined after the 'performSelfAnalysis' method has been called'
Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);let i=Ve(n,"resyncEnabled")?n.resyncEnabled:Wm.resyncEnabled,a=Ve(n,"recoveryValueFunc")?n.recoveryValueFunc:Wm.recoveryValueFunc,o=this.ruleShortNameIdx<<12;this.ruleShortNameIdx++,this.shortRuleNameToFull[o]=e,this.fullRuleNameToShort[e]=o;let l;return this.outputCst===!0?l=s(function(...f){try{this.ruleInvocationStateUpdate(o,e,this.subruleIdx),r.apply(this,f);let d=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(d),d}catch(d){return this.invokeRuleCatch(d,i,a)}finally{this.ruleFinallyStateUpdate()}},"invokeRuleWithTry"):l=s(function(...f){try{return this.ruleInvocationStateUpdate(o,e,this.subruleIdx),r.apply(this,f)}catch(d){return this.invokeRuleCatch(d,i,a)}finally{this.ruleFinallyStateUpdate()}},"invokeRuleWithTryCst"),Object.assign(l,{ruleName:e,originalGrammarAction:r})}invokeRuleCatch(e,r,n){let i=this.RULE_STACK.length===1,a=r&&!this.isBackTracking()&&this.recoveryEnabled;if(Qh(e)){let o=e;if(a){let l=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(l))if(o.resyncedTokens=this.reSyncTo(l),this.outputCst){let u=this.CST_STACK[this.CST_STACK.length-1];return u.recoveredNode=!0,u}else return n(e);else{if(this.outputCst){let u=this.CST_STACK[this.CST_STACK.length-1];u.recoveredNode=!0,o.partialCstResult=u}throw o}}else{if(i)return this.moveToTerminatedState(),n(e);throw o}}else throw e}optionInternal(e,r){let n=this.getKeyForAutomaticLookahead(512,r);return this.optionInternalLogic(e,r,n)}optionInternalLogic(e,r,n){let i=this.getLaFuncFromCache(n),a;if(typeof e!="function"){a=e.DEF;let o=e.GATE;if(o!==void 0){let l=i;i=s(()=>o.call(this)&&l.call(this),"lookAheadFunc")}}else a=e;if(i.call(this)===!0)return a.call(this)}atLeastOneInternal(e,r){let n=this.getKeyForAutomaticLookahead(1024,e);return this.atLeastOneInternalLogic(e,r,n)}atLeastOneInternalLogic(e,r,n){let i=this.getLaFuncFromCache(n),a;if(typeof r!="function"){a=r.DEF;let o=r.GATE;if(o!==void 0){let l=i;i=s(()=>o.call(this)&&l.call(this),"lookAheadFunc")}}else a=r;if(i.call(this)===!0){let o=this.doSingleRepetition(a);for(;i.call(this)===!0&&o===!0;)o=this.doSingleRepetition(a)}else throw this.raiseEarlyExitException(e,Nn.REPETITION_MANDATORY,r.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,r],i,1024,e,m6)}atLeastOneSepFirstInternal(e,r){let n=this.getKeyForAutomaticLookahead(1536,e);this.atLeastOneSepFirstInternalLogic(e,r,n)}atLeastOneSepFirstInternalLogic(e,r,n){let i=r.DEF,a=r.SEP;if(this.getLaFuncFromCache(n).call(this)===!0){i.call(this);let l=s(()=>this.tokenMatcher(this.LA(1),a),"separatorLookAheadFunc");for(;this.tokenMatcher(this.LA(1),a)===!0;)this.CONSUME(a),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,a,l,i,qv],l,1536,e,qv)}else throw this.raiseEarlyExitException(e,Nn.REPETITION_MANDATORY_WITH_SEPARATOR,r.ERR_MSG)}manyInternal(e,r){let n=this.getKeyForAutomaticLookahead(768,e);return this.manyInternalLogic(e,r,n)}manyInternalLogic(e,r,n){let i=this.getLaFuncFromCache(n),a;if(typeof r!="function"){a=r.DEF;let l=r.GATE;if(l!==void 0){let u=i;i=s(()=>l.call(this)&&u.call(this),"lookaheadFunction")}}else a=r;let o=!0;for(;i.call(this)===!0&&o===!0;)o=this.doSingleRepetition(a);this.attemptInRepetitionRecovery(this.manyInternal,[e,r],i,768,e,p6,o)}manySepFirstInternal(e,r){let n=this.getKeyForAutomaticLookahead(1280,e);this.manySepFirstInternalLogic(e,r,n)}manySepFirstInternalLogic(e,r,n){let i=r.DEF,a=r.SEP;if(this.getLaFuncFromCache(n).call(this)===!0){i.call(this);let l=s(()=>this.tokenMatcher(this.LA(1),a),"separatorLookAheadFunc");for(;this.tokenMatcher(this.LA(1),a)===!0;)this.CONSUME(a),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,a,l,i,Uv],l,1280,e,Uv)}}repetitionSepSecondInternal(e,r,n,i,a){for(;n();)this.CONSUME(r),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,r,n,i,a],n,1536,e,a)}doSingleRepetition(e){let r=this.getLexerPosition();return e.call(this),this.getLexerPosition()>r}orInternal(e,r){let n=this.getKeyForAutomaticLookahead(256,r),i=ct(e)?e:e.DEF,o=this.getLaFuncFromCache(n).call(this,i);if(o!==void 0)return i[o].ALT.call(this);this.raiseNoAltException(r,e.ERR_MSG)}ruleFinallyStateUpdate(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),this.RULE_STACK.length===0&&this.isAtEndOfInput()===!1){let e=this.LA(1),r=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:e,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new Kv(r,e))}}subruleInternal(e,r,n){let i;try{let a=n!==void 0?n.ARGS:void 0;return this.subruleIdx=r,i=e.apply(this,a),this.cstPostNonTerminal(i,n!==void 0&&n.LABEL!==void 0?n.LABEL:e.ruleName),i}catch(a){throw this.subruleInternalError(a,n,e.ruleName)}}subruleInternalError(e,r,n){throw Qh(e)&&e.partialCstResult!==void 0&&(this.cstPostNonTerminal(e.partialCstResult,r!==void 0&&r.LABEL!==void 0?r.LABEL:n),delete e.partialCstResult),e}consumeInternal(e,r,n){let i;try{let a=this.LA(1);this.tokenMatcher(a,e)===!0?(this.consumeToken(),i=a):this.consumeInternalError(e,a,n)}catch(a){i=this.consumeInternalRecovery(e,r,a)}return this.cstPostTerminal(n!==void 0&&n.LABEL!==void 0?n.LABEL:e.name,i),i}consumeInternalError(e,r,n){let i,a=this.LA(0);throw n!==void 0&&n.ERR_MSG?i=n.ERR_MSG:i=this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:r,previous:a,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new Qd(i,r,a))}consumeInternalRecovery(e,r,n){if(this.recoveryEnabled&&n.name==="MismatchedTokenException"&&!this.isBackTracking()){let i=this.getFollowsForInRuleRecovery(e,r);try{return this.tryInRuleRecovery(e,i)}catch(a){throw a.name===PR?n:a}}else throw n}saveRecogState(){let e=this.errors,r=Hr(this.RULE_STACK);return{errors:e,lexerState:this.exportLexerState(),RULE_STACK:r,CST_STACK:this.CST_STACK}}reloadRecogState(e){this.errors=e.errors,this.importLexerState(e.lexerState),this.RULE_STACK=e.RULE_STACK}ruleInvocationStateUpdate(e,r,n){this.RULE_OCCURRENCE_STACK.push(n),this.RULE_STACK.push(e),this.cstInvocationStateUpdate(r)}isBackTracking(){return this.isBackTrackingStack.length!==0}getCurrRuleFullName(){let e=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[e]}shortRuleNameToFullName(e){return this.shortRuleNameToFull[e]}isAtEndOfInput(){return this.tokenMatcher(this.LA(1),io)}reset(){this.resetLexerState(),this.subruleIdx=0,this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]}}});var N6,Zne=_(()=>{"use strict";Um();Tt();Gm();Ss();N6=class{static{s(this,"ErrorHandler")}initErrorHandler(e){this._errors=[],this.errorMessageProvider=Ve(e,"errorMessageProvider")?e.errorMessageProvider:Ka.errorMessageProvider}SAVE_ERROR(e){if(Qh(e))return e.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:Hr(this.RULE_OCCURRENCE_STACK)},this._errors.push(e),e;throw Error("Trying to save an Error which is not a RecognitionException")}get errors(){return Hr(this._errors)}set errors(e){this._errors=e}raiseEarlyExitException(e,r,n){let i=this.getCurrRuleFullName(),a=this.getGAstProductions()[i],l=$m(e,a,r,this.maxLookahead)[0],u=[];for(let f=1;f<=this.maxLookahead;f++)u.push(this.LA(f));let h=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:l,actual:u,previous:this.LA(0),customUserDescription:n,ruleName:i});throw this.SAVE_ERROR(new Qv(h,this.LA(1),this.LA(0)))}raiseNoAltException(e,r){let n=this.getCurrRuleFullName(),i=this.getGAstProductions()[n],a=zm(e,i,this.maxLookahead),o=[];for(let h=1;h<=this.maxLookahead;h++)o.push(this.LA(h));let l=this.LA(0),u=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:a,actual:o,previous:l,customUserDescription:r,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new jv(u,this.LA(1),l))}}});var O6,Jne=_(()=>{"use strict";Wv();Tt();O6=class{static{s(this,"ContentAssist")}initContentAssist(){}computeContentAssist(e,r){let n=this.gastProductionsCache[e];if(jt(n))throw Error(`Rule ->${e}<- does not exist in this grammar.`);return y6([n],r,this.tokenMatcher,this.maxLookahead)}getNextPossibleTokenTypes(e){let r=Yi(e.ruleStack),i=this.getGAstProductions()[r];return new d6(i,e).startWalking()}}});function Jv(t,e,r,n=!1){B6(r);let i=sa(this.recordingProdStack),a=fi(e)?e:e.DEF,o=new t({definition:[],idx:r});return n&&(o.separator=e.SEP),Ve(e,"MAX_LOOKAHEAD")&&(o.maxLookahead=e.MAX_LOOKAHEAD),this.recordingProdStack.push(o),a.call(this),i.definition.push(o),this.recordingProdStack.pop(),F6}function kMe(t,e){B6(e);let r=sa(this.recordingProdStack),n=ct(t)===!1,i=n===!1?t:t.DEF,a=new cn({definition:[],idx:e,ignoreAmbiguities:n&&t.IGNORE_AMBIGUITIES===!0});Ve(t,"MAX_LOOKAHEAD")&&(a.maxLookahead=t.MAX_LOOKAHEAD);let o=pv(i,l=>fi(l.GATE));return a.hasPredicates=o,r.definition.push(a),be(i,l=>{let u=new vn({definition:[]});a.definition.push(u),Ve(l,"IGNORE_AMBIGUITIES")?u.ignoreAmbiguities=l.IGNORE_AMBIGUITIES:Ve(l,"GATE")&&(u.ignoreAmbiguities=!0),this.recordingProdStack.push(u),l.ALT.call(this),this.recordingProdStack.pop()}),F6}function rie(t){return t===0?"":`${t}`}function B6(t){if(t<0||t>tie){let e=new Error(`Invalid DSL Method idx value: <${t}>
Idx value must be a none negative value smaller than ${tie+1}`);throw e.KNOWN_RECORDER_ERROR=!0,e}}var F6,eie,tie,nie,iie,bMe,P6,aie=_(()=>{"use strict";Tt();ja();$v();Xd();Kd();Ss();E6();F6={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(F6);eie=!0,tie=Math.pow(2,8)-1,nie=f6({name:"RECORDING_PHASE_TOKEN",pattern:jn.NA});Lu([nie]);iie=jd(nie,`This IToken indicates the Parser is in Recording Phase
See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(iie);bMe={name:`This CSTNode indicates the Parser is in Recording Phase
See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,children:{}},P6=class{static{s(this,"GastRecorder")}initGastRecorder(e){this.recordingProdStack=[],this.RECORDING_PHASE=!1}enableRecording(){this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",()=>{for(let e=0;e<10;e++){let r=e>0?e:"";this[`CONSUME${r}`]=function(n,i){return this.consumeInternalRecord(n,e,i)},this[`SUBRULE${r}`]=function(n,i){return this.subruleInternalRecord(n,e,i)},this[`OPTION${r}`]=function(n){return this.optionInternalRecord(n,e)},this[`OR${r}`]=function(n){return this.orInternalRecord(n,e)},this[`MANY${r}`]=function(n){this.manyInternalRecord(e,n)},this[`MANY_SEP${r}`]=function(n){this.manySepFirstInternalRecord(e,n)},this[`AT_LEAST_ONE${r}`]=function(n){this.atLeastOneInternalRecord(e,n)},this[`AT_LEAST_ONE_SEP${r}`]=function(n){this.atLeastOneSepFirstInternalRecord(e,n)}}this.consume=function(e,r,n){return this.consumeInternalRecord(r,e,n)},this.subrule=function(e,r,n){return this.subruleInternalRecord(r,e,n)},this.option=function(e,r){return this.optionInternalRecord(r,e)},this.or=function(e,r){return this.orInternalRecord(r,e)},this.many=function(e,r){this.manyInternalRecord(e,r)},this.atLeastOne=function(e,r){this.atLeastOneInternalRecord(e,r)},this.ACTION=this.ACTION_RECORD,this.BACKTRACK=this.BACKTRACK_RECORD,this.LA=this.LA_RECORD})}disableRecording(){this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",()=>{let e=this;for(let r=0;r<10;r++){let n=r>0?r:"";delete e[`CONSUME${n}`],delete e[`SUBRULE${n}`],delete e[`OPTION${n}`],delete e[`OR${n}`],delete e[`MANY${n}`],delete e[`MANY_SEP${n}`],delete e[`AT_LEAST_ONE${n}`],delete e[`AT_LEAST_ONE_SEP${n}`]}delete e.consume,delete e.subrule,delete e.option,delete e.or,delete e.many,delete e.atLeastOne,delete e.ACTION,delete e.BACKTRACK,delete e.LA})}ACTION_RECORD(e){}BACKTRACK_RECORD(e,r){return()=>!0}LA_RECORD(e){return qm}topLevelRuleRecord(e,r){try{let n=new Ya({definition:[],name:e});return n.name=e,this.recordingProdStack.push(n),r.call(this),this.recordingProdStack.pop(),n}catch(n){if(n.KNOWN_RECORDER_ERROR!==!0)try{n.message=n.message+`
This error was thrown during the "grammar recording phase" For more info see:
https://chevrotain.io/docs/guide/internals.html#grammar-recording`}catch{throw n}throw n}}optionInternalRecord(e,r){return Jv.call(this,Xr,e,r)}atLeastOneInternalRecord(e,r){Jv.call(this,xn,r,e)}atLeastOneSepFirstInternalRecord(e,r){Jv.call(this,bn,r,e,eie)}manyInternalRecord(e,r){Jv.call(this,mr,r,e)}manySepFirstInternalRecord(e,r){Jv.call(this,ln,r,e,eie)}orInternalRecord(e,r){return kMe.call(this,e,r)}subruleInternalRecord(e,r,n){if(B6(r),!e||Ve(e,"ruleName")===!1){let l=new Error(` argument is invalid expecting a Parser method reference but got: <${JSON.stringify(e)}>
inside top level rule: <${this.recordingProdStack[0].name}>`);throw l.KNOWN_RECORDER_ERROR=!0,l}let i=sa(this.recordingProdStack),a=e.ruleName,o=new Yr({idx:r,nonTerminalName:a,label:n?.LABEL,referencedRule:void 0});return i.definition.push(o),this.outputCst?bMe:F6}consumeInternalRecord(e,r,n){if(B6(r),!TR(e)){let o=new Error(` argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}>
inside top level rule: <${this.recordingProdStack[0].name}>`);throw o.KNOWN_RECORDER_ERROR=!0,o}let i=sa(this.recordingProdStack),a=new sr({idx:r,terminalType:e,label:n?.LABEL});return i.definition.push(a),iie}};s(Jv,"recordProd");s(kMe,"recordOrProd");s(rie,"getIdxSuffix");s(B6,"assertMethodIdxIsValid")});var z6,sie=_(()=>{"use strict";Tt();Rm();Ss();z6=class{static{s(this,"PerformanceTracer")}initPerformanceTracer(e){if(Ve(e,"traceInitPerf")){let r=e.traceInitPerf,n=typeof r=="number";this.traceInitMaxIdent=n?r:1/0,this.traceInitPerf=n?r>0:r}else this.traceInitMaxIdent=0,this.traceInitPerf=Ka.traceInitPerf;this.traceInitIndent=-1}TRACE_INIT(e,r){if(this.traceInitPerf===!0){this.traceInitIndent++;let n=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent <${e}>`);let{time:i,value:a}=Bv(r),o=i>10?console.warn:console.log;return this.traceInitIndent time: ${i}ms`),this.traceInitIndent--,a}else return r()}}});function oie(t,e){e.forEach(r=>{let n=r.prototype;Object.getOwnPropertyNames(n).forEach(i=>{if(i==="constructor")return;let a=Object.getOwnPropertyDescriptor(n,i);a&&(a.get||a.set)?Object.defineProperty(t.prototype,i,a):t.prototype[i]=r.prototype[i]})})}var lie=_(()=>{"use strict";s(oie,"applyMixins")});function $6(t=void 0){return function(){return t}}var qm,Ka,Wm,Li,e2,t2,Ss=_(()=>{"use strict";Tt();Rm();Fre();Kd();Bm();Nne();BR();$ne();Xne();jne();Kne();Qne();Zne();Jne();aie();sie();lie();Xv();qm=jd(io,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(qm);Ka=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:Ru,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),Wm=Object.freeze({recoveryValueFunc:s(()=>{},"recoveryValueFunc"),resyncEnabled:!0});(function(t){t[t.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",t[t.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",t[t.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",t[t.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",t[t.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",t[t.LEFT_RECURSION=5]="LEFT_RECURSION",t[t.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",t[t.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",t[t.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",t[t.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",t[t.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",t[t.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",t[t.TOO_MANY_ALTS=12]="TOO_MANY_ALTS",t[t.CUSTOM_LOOKAHEAD_VALIDATION=13]="CUSTOM_LOOKAHEAD_VALIDATION"})(Li||(Li={}));s($6,"EMPTY_ALT");e2=class t{static{s(this,"Parser")}static performSelfAnalysis(e){throw Error("The **static** `performSelfAnalysis` method has been deprecated. \nUse the **instance** method with the same name instead.")}performSelfAnalysis(){this.TRACE_INIT("performSelfAnalysis",()=>{let e;this.selfAnalysisDone=!0;let r=this.className;this.TRACE_INIT("toFastProps",()=>{Fv(this)}),this.TRACE_INIT("Grammar Recording",()=>{try{this.enableRecording(),be(this.definedRulesNames,i=>{let o=this[i].originalGrammarAction,l;this.TRACE_INIT(`${i} Rule`,()=>{l=this.topLevelRuleRecord(i,o)}),this.gastProductionsCache[i]=l})}finally{this.disableRecording()}});let n=[];if(this.TRACE_INIT("Grammar Resolving",()=>{n=Mne({rules:nr(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(n)}),this.TRACE_INIT("Grammar Validations",()=>{if(Vt(n)&&this.skipValidations===!1){let i=Ine({rules:nr(this.gastProductionsCache),tokenTypes:nr(this.tokensMap),errMsgProvider:bl,grammarName:r}),a=Cne({lookaheadStrategy:this.lookaheadStrategy,rules:nr(this.gastProductionsCache),tokenTypes:nr(this.tokensMap),grammarName:r});this.definitionErrors=this.definitionErrors.concat(i,a)}}),Vt(this.definitionErrors)&&(this.recoveryEnabled&&this.TRACE_INIT("computeAllProdsFollows",()=>{let i=Bre(nr(this.gastProductionsCache));this.resyncFollows=i}),this.TRACE_INIT("ComputeLookaheadFunctions",()=>{var i,a;(a=(i=this.lookaheadStrategy).initialize)===null||a===void 0||a.call(i,{rules:nr(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(nr(this.gastProductionsCache))})),!t.DEFER_DEFINITION_ERRORS_HANDLING&&!Vt(this.definitionErrors))throw e=Ge(this.definitionErrors,i=>i.message),new Error(`Parser Definition Errors detected:
${e.join(`
-------------------------------
`)}`)})}constructor(e,r){this.definitionErrors=[],this.selfAnalysisDone=!1;let n=this;if(n.initErrorHandler(r),n.initLexerAdapter(),n.initLooksAhead(r),n.initRecognizerEngine(e,r),n.initRecoverable(r),n.initTreeBuilder(r),n.initContentAssist(),n.initGastRecorder(r),n.initPerformanceTracer(r),Ve(r,"ignoredIssues"))throw new Error(`The IParserConfig property has been deprecated.
Please use the flag on the relevant DSL method instead.
See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES
For further details.`);this.skipValidations=Ve(r,"skipValidations")?r.skipValidations:Ka.skipValidations}};e2.DEFER_DEFINITION_ERRORS_HANDLING=!1;oie(e2,[w6,S6,D6,R6,I6,M6,N6,O6,P6,z6]);t2=class extends e2{static{s(this,"EmbeddedActionsParser")}constructor(e,r=Ka){let n=Hr(r);n.outputCst=!1,super(e,n)}}});var cie=_(()=>{"use strict";ja()});var uie=_(()=>{"use strict"});var hie=_(()=>{"use strict";cie();uie()});var fie=_(()=>{"use strict";hR()});var Zd=_(()=>{"use strict";hR();Ss();$v();Kd();Gm();FR();Bm();Um();CR();ja();ja();hie();fie()});function Jd(t,e,r){return`${t.name}_${e}_${r}`}function gie(t){let e={decisionMap:{},decisionStates:[],ruleToStartState:new Map,ruleToStopState:new Map,states:[]};AMe(e,t);let r=t.length;for(let n=0;nyie(t,e,o));return jm(t,e,n,r,...i)}function NMe(t,e,r){let n=Xi(t,e,r,{type:Zh});Jh(t,n);let i=jm(t,e,n,r,e0(t,e,r));return OMe(t,e,r,i)}function e0(t,e,r){let n=Nr(Ge(r.definition,i=>yie(t,e,i)),i=>i!==void 0);return n.length===1?n[0]:n.length===0?void 0:BMe(t,n)}function vie(t,e,r,n,i){let a=n.left,o=n.right,l=Xi(t,e,r,{type:_Me});Jh(t,l);let u=Xi(t,e,r,{type:mie});return a.loopback=l,u.loopback=l,t.decisionMap[Jd(e,i?"RepetitionMandatoryWithSeparator":"RepetitionMandatory",r.idx)]=l,mi(o,l),i===void 0?(mi(l,a),mi(l,u)):(mi(l,u),mi(l,i.left),mi(i.right,a)),{left:a,right:u}}function xie(t,e,r,n,i){let a=n.left,o=n.right,l=Xi(t,e,r,{type:SMe});Jh(t,l);let u=Xi(t,e,r,{type:mie}),h=Xi(t,e,r,{type:CMe});return l.loopback=h,u.loopback=h,mi(l,a),mi(l,u),mi(o,h),i!==void 0?(mi(h,u),mi(h,i.left),mi(i.right,a)):mi(h,l),t.decisionMap[Jd(e,i?"RepetitionWithSeparator":"Repetition",r.idx)]=l,{left:l,right:u}}function OMe(t,e,r,n){let i=n.left,a=n.right;return mi(i,a),t.decisionMap[Jd(e,"Option",r.idx)]=i,n}function Jh(t,e){return t.decisionStates.push(e),e.decision=t.decisionStates.length-1,e.decision}function jm(t,e,r,n,...i){let a=Xi(t,e,n,{type:EMe,start:r});r.end=a;for(let l of i)l!==void 0?(mi(r,l.left),mi(l.right,a)):mi(r,a);let o={left:r,right:a};return t.decisionMap[Jd(e,PMe(n),n.idx)]=r,o}function PMe(t){if(t instanceof cn)return"Alternation";if(t instanceof Xr)return"Option";if(t instanceof mr)return"Repetition";if(t instanceof ln)return"RepetitionWithSeparator";if(t instanceof xn)return"RepetitionMandatory";if(t instanceof bn)return"RepetitionMandatoryWithSeparator";throw new Error("Invalid production type encountered")}function BMe(t,e){let r=e.length;for(let a=0;a{"use strict";ym();z9();Zd();s(Jd,"buildATNKey");Zh=1,TMe=2,die=4,pie=5,Xm=7,EMe=8,CMe=9,SMe=10,_Me=11,mie=12,r2=class{static{s(this,"AbstractTransition")}constructor(e){this.target=e}isEpsilon(){return!1}},Hm=class extends r2{static{s(this,"AtomTransition")}constructor(e,r){super(e),this.tokenType=r}},n2=class extends r2{static{s(this,"EpsilonTransition")}constructor(e){super(e)}isEpsilon(){return!0}},Ym=class extends r2{static{s(this,"RuleTransition")}constructor(e,r,n){super(e),this.rule=r,this.followState=n}isEpsilon(){return!0}};s(gie,"createATN");s(AMe,"createRuleStartAndStopATNStates");s(yie,"atom");s(LMe,"repetition");s(DMe,"repetitionSep");s(RMe,"repetitionMandatory");s(MMe,"repetitionMandatorySep");s(IMe,"alternation");s(NMe,"option");s(e0,"block");s(vie,"plus");s(xie,"star");s(OMe,"optional");s(Jh,"defineDecisionState");s(jm,"makeAlts");s(PMe,"getProdType");s(BMe,"makeBlock");s(YR,"tokenRef");s(FMe,"ruleRef");s(zMe,"buildRuleHandle");s(mi,"epsilon");s(Xi,"newState");s(XR,"addTransition");s($Me,"removeState")});function jR(t,e=!0){return`${e?`a${t.alt}`:""}s${t.state.stateNumber}:${t.stack.map(r=>r.stateNumber.toString()).join("_")}`}var i2,Km,kie=_(()=>{"use strict";ym();i2={},Km=class{static{s(this,"ATNConfigSet")}constructor(){this.map={},this.configs=[]}get size(){return this.configs.length}finalize(){this.map={}}add(e){let r=jR(e);r in this.map||(this.map[r]=this.configs.length,this.configs.push(e))}get elements(){return this.configs}get alts(){return Ge(this.configs,e=>e.alt)}get key(){let e="";for(let r in this.map)e+=r+":";return e}};s(jR,"getATNConfigKey")});function GMe(t,e){let r={};return n=>{let i=n.toString(),a=r[i];return a!==void 0||(a={atnStartState:t,decision:e,states:{}},r[i]=a),a}}function Tie(t,e=!0){let r=new Set;for(let n of t){let i=new Set;for(let a of n){if(a===void 0){if(e)break;return!1}let o=[a.tokenTypeIdx].concat(a.categoryMatches);for(let l of o)if(r.has(l)){if(!i.has(l))return!1}else r.add(l),i.add(l)}}return!0}function VMe(t){let e=t.decisionStates.length,r=Array(e);for(let n=0;nDu(i)).join(", "),r=t.production.idx===0?"":t.production.idx,n=`Ambiguous Alternatives Detected: <${t.ambiguityIndices.join(", ")}> in <${YMe(t.production)}${r}> inside <${t.topLevelRule.name}> Rule,
<${e}> may appears as a prefix path in all these alternatives.
`;return n=n+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
For Further details.`,n}function YMe(t){if(t instanceof Yr)return"SUBRULE";if(t instanceof Xr)return"OPTION";if(t instanceof cn)return"OR";if(t instanceof xn)return"AT_LEAST_ONE";if(t instanceof bn)return"AT_LEAST_ONE_SEP";if(t instanceof ln)return"MANY_SEP";if(t instanceof mr)return"MANY";if(t instanceof sr)return"CONSUME";throw Error("non exhaustive match")}function XMe(t,e,r){let n=oa(e.configs.elements,a=>a.state.transitions),i=IJ(n.filter(a=>a instanceof Hm).map(a=>a.tokenType),a=>a.tokenTypeIdx);return{actualToken:r,possibleTokenTypes:i,tokenPath:t}}function jMe(t,e){return t.edges[e.tokenTypeIdx]}function KMe(t,e,r){let n=new Km,i=[];for(let o of t.elements){if(r.is(o.alt)===!1)continue;if(o.state.type===Xm){i.push(o);continue}let l=o.state.transitions.length;for(let u=0;u0&&!tIe(a))for(let o of i)a.add(o);return a}function QMe(t,e){if(t instanceof Hm&&Vv(e,t.tokenType))return t.target}function ZMe(t,e){let r;for(let n of t.elements)if(e.is(n.alt)===!0){if(r===void 0)r=n.alt;else if(r!==n.alt)return}return r}function Cie(t){return{configs:t,edges:{},isAcceptState:!1,prediction:-1}}function Eie(t,e,r,n){return n=Sie(t,n),e.edges[r.tokenTypeIdx]=n,n}function Sie(t,e){if(e===i2)return e;let r=e.configs.key,n=t.states[r];return n!==void 0?n:(e.configs.finalize(),t.states[r]=e,e)}function JMe(t){let e=new Km,r=t.transitions.length;for(let n=0;n0){let i=[...t.stack],o={state:i.pop(),alt:t.alt,stack:i};V6(o,e)}else e.add(t);return}r.epsilonOnlyTransitions||e.add(t);let n=r.transitions.length;for(let i=0;i1)return!0;return!1}function sIe(t){for(let e of Array.from(t.values()))if(Object.keys(e).length===1)return!0;return!1}var G6,wie,a2,_ie=_(()=>{"use strict";Zd();bie();kie();Y9();G9();NJ();ym();O5();uk();mk();Q9();s(GMe,"createDFACache");G6=class{static{s(this,"PredicateSet")}constructor(){this.predicates=[]}is(e){return e>=this.predicates.length||this.predicates[e]}set(e,r){this.predicates[e]=r}toString(){let e="",r=this.predicates.length;for(let n=0;nconsole.log(n)}initialize(e){this.atn=gie(e.rules),this.dfas=VMe(this.atn)}validateAmbiguousAlternationAlternatives(){return[]}validateEmptyOrAlternatives(){return[]}buildLookaheadForAlternation(e){let{prodOccurrence:r,rule:n,hasPredicates:i,dynamicTokensEnabled:a}=e,o=this.dfas,l=this.logging,u=Jd(n,"Alternation",r),f=this.atn.decisionMap[u].decision,d=Ge(x6({maxLookahead:1,occurrence:r,prodType:"Alternation",rule:n}),p=>Ge(p,m=>m[0]));if(Tie(d,!1)&&!a){let p=Or(d,(m,g,y)=>(be(g,v=>{v&&(m[v.tokenTypeIdx]=y,be(v.categoryMatches,x=>{m[x]=y}))}),m),{});return i?function(m){var g;let y=this.LA(1),v=p[y.tokenTypeIdx];if(m!==void 0&&v!==void 0){let x=(g=m[v])===null||g===void 0?void 0:g.GATE;if(x!==void 0&&x.call(this)===!1)return}return v}:function(){let m=this.LA(1);return p[m.tokenTypeIdx]}}else return i?function(p){let m=new G6,g=p===void 0?0:p.length;for(let v=0;vGe(p,m=>m[0]));if(Tie(d)&&d[0][0]&&!a){let p=d[0],m=Ir(p);if(m.length===1&&Vt(m[0].categoryMatches)){let y=m[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===y}}else{let g=Or(m,(y,v)=>(v!==void 0&&(y[v.tokenTypeIdx]=!0,be(v.categoryMatches,x=>{y[x]=!0})),y),{});return function(){let y=this.LA(1);return g[y.tokenTypeIdx]===!0}}}return function(){let p=KR.call(this,o,f,wie,l);return typeof p=="object"?!1:p===0}}};s(Tie,"isLL1Sequence");s(VMe,"initATNSimulator");s(KR,"adaptivePredict");s(UMe,"performLookahead");s(qMe,"computeLookaheadTarget");s(WMe,"reportLookaheadAmbiguity");s(HMe,"buildAmbiguityError");s(YMe,"getProductionDslName");s(XMe,"buildAdaptivePredictError");s(jMe,"getExistingTargetState");s(KMe,"computeReachSet");s(QMe,"getReachableTarget");s(ZMe,"getUniqueAlt");s(Cie,"newDFAState");s(Eie,"addDFAEdge");s(Sie,"addDFAState");s(JMe,"computeStartState");s(V6,"closure");s(eIe,"getEpsilonTarget");s(tIe,"hasConfigInRuleStopState");s(rIe,"allConfigsInRuleStopStates");s(nIe,"hasConflictTerminatingPrediction");s(iIe,"getConflictingAltSets");s(aIe,"hasConflictingAltSet");s(sIe,"hasStateAssociatedWithOneAlt")});var Aie=_(()=>{"use strict";_ie()});var Lie,QR,Die,U6,Pr,gr,q6,Rie,ZR,Mie,Iie,Nie,Oie,JR,Pie,Bie,Fie,W6,Qm,Zm,eM,Jm,zie,tM,rM,nM,iM,aM,$ie,Gie,sM,Vie,oM,s2,Uie,qie,Wie,Hie,Yie,Xie,jie,Kie,H6,Qie,Zie,Jie,eae,tae,rae,nae,iae,aae,sae,oae,Y6,lae,cae,uae,hae,fae,dae,pae,mae,gae,yae,vae,xae,bae,lM,cM,kae,wae,Tae,Eae,Cae,Sae,_ae,Aae,Lae,uM,Le,hM=_(()=>{"use strict";(function(t){function e(r){return typeof r=="string"}s(e,"is"),t.is=e})(Lie||(Lie={}));(function(t){function e(r){return typeof r=="string"}s(e,"is"),t.is=e})(QR||(QR={}));(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647;function e(r){return typeof r=="number"&&t.MIN_VALUE<=r&&r<=t.MAX_VALUE}s(e,"is"),t.is=e})(Die||(Die={}));(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647;function e(r){return typeof r=="number"&&t.MIN_VALUE<=r&&r<=t.MAX_VALUE}s(e,"is"),t.is=e})(U6||(U6={}));(function(t){function e(n,i){return n===Number.MAX_VALUE&&(n=U6.MAX_VALUE),i===Number.MAX_VALUE&&(i=U6.MAX_VALUE),{line:n,character:i}}s(e,"create"),t.create=e;function r(n){let i=n;return Le.objectLiteral(i)&&Le.uinteger(i.line)&&Le.uinteger(i.character)}s(r,"is"),t.is=r})(Pr||(Pr={}));(function(t){function e(n,i,a,o){if(Le.uinteger(n)&&Le.uinteger(i)&&Le.uinteger(a)&&Le.uinteger(o))return{start:Pr.create(n,i),end:Pr.create(a,o)};if(Pr.is(n)&&Pr.is(i))return{start:n,end:i};throw new Error(`Range#create called with invalid arguments[${n}, ${i}, ${a}, ${o}]`)}s(e,"create"),t.create=e;function r(n){let i=n;return Le.objectLiteral(i)&&Pr.is(i.start)&&Pr.is(i.end)}s(r,"is"),t.is=r})(gr||(gr={}));(function(t){function e(n,i){return{uri:n,range:i}}s(e,"create"),t.create=e;function r(n){let i=n;return Le.objectLiteral(i)&&gr.is(i.range)&&(Le.string(i.uri)||Le.undefined(i.uri))}s(r,"is"),t.is=r})(q6||(q6={}));(function(t){function e(n,i,a,o){return{targetUri:n,targetRange:i,targetSelectionRange:a,originSelectionRange:o}}s(e,"create"),t.create=e;function r(n){let i=n;return Le.objectLiteral(i)&&gr.is(i.targetRange)&&Le.string(i.targetUri)&&gr.is(i.targetSelectionRange)&&(gr.is(i.originSelectionRange)||Le.undefined(i.originSelectionRange))}s(r,"is"),t.is=r})(Rie||(Rie={}));(function(t){function e(n,i,a,o){return{red:n,green:i,blue:a,alpha:o}}s(e,"create"),t.create=e;function r(n){let i=n;return Le.objectLiteral(i)&&Le.numberRange(i.red,0,1)&&Le.numberRange(i.green,0,1)&&Le.numberRange(i.blue,0,1)&&Le.numberRange(i.alpha,0,1)}s(r,"is"),t.is=r})(ZR||(ZR={}));(function(t){function e(n,i){return{range:n,color:i}}s(e,"create"),t.create=e;function r(n){let i=n;return Le.objectLiteral(i)&&gr.is(i.range)&&ZR.is(i.color)}s(r,"is"),t.is=r})(Mie||(Mie={}));(function(t){function e(n,i,a){return{label:n,textEdit:i,additionalTextEdits:a}}s(e,"create"),t.create=e;function r(n){let i=n;return Le.objectLiteral(i)&&Le.string(i.label)&&(Le.undefined(i.textEdit)||Zm.is(i))&&(Le.undefined(i.additionalTextEdits)||Le.typedArray(i.additionalTextEdits,Zm.is))}s(r,"is"),t.is=r})(Iie||(Iie={}));(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(Nie||(Nie={}));(function(t){function e(n,i,a,o,l,u){let h={startLine:n,endLine:i};return Le.defined(a)&&(h.startCharacter=a),Le.defined(o)&&(h.endCharacter=o),Le.defined(l)&&(h.kind=l),Le.defined(u)&&(h.collapsedText=u),h}s(e,"create"),t.create=e;function r(n){let i=n;return Le.objectLiteral(i)&&Le.uinteger(i.startLine)&&Le.uinteger(i.startLine)&&(Le.undefined(i.startCharacter)||Le.uinteger(i.startCharacter))&&(Le.undefined(i.endCharacter)||Le.uinteger(i.endCharacter))&&(Le.undefined(i.kind)||Le.string(i.kind))}s(r,"is"),t.is=r})(Oie||(Oie={}));(function(t){function e(n,i){return{location:n,message:i}}s(e,"create"),t.create=e;function r(n){let i=n;return Le.defined(i)&&q6.is(i.location)&&Le.string(i.message)}s(r,"is"),t.is=r})(JR||(JR={}));(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(Pie||(Pie={}));(function(t){t.Unnecessary=1,t.Deprecated=2})(Bie||(Bie={}));(function(t){function e(r){let n=r;return Le.objectLiteral(n)&&Le.string(n.href)}s(e,"is"),t.is=e})(Fie||(Fie={}));(function(t){function e(n,i,a,o,l,u){let h={range:n,message:i};return Le.defined(a)&&(h.severity=a),Le.defined(o)&&(h.code=o),Le.defined(l)&&(h.source=l),Le.defined(u)&&(h.relatedInformation=u),h}s(e,"create"),t.create=e;function r(n){var i;let a=n;return Le.defined(a)&&gr.is(a.range)&&Le.string(a.message)&&(Le.number(a.severity)||Le.undefined(a.severity))&&(Le.integer(a.code)||Le.string(a.code)||Le.undefined(a.code))&&(Le.undefined(a.codeDescription)||Le.string((i=a.codeDescription)===null||i===void 0?void 0:i.href))&&(Le.string(a.source)||Le.undefined(a.source))&&(Le.undefined(a.relatedInformation)||Le.typedArray(a.relatedInformation,JR.is))}s(r,"is"),t.is=r})(W6||(W6={}));(function(t){function e(n,i,...a){let o={title:n,command:i};return Le.defined(a)&&a.length>0&&(o.arguments=a),o}s(e,"create"),t.create=e;function r(n){let i=n;return Le.defined(i)&&Le.string(i.title)&&Le.string(i.command)}s(r,"is"),t.is=r})(Qm||(Qm={}));(function(t){function e(a,o){return{range:a,newText:o}}s(e,"replace"),t.replace=e;function r(a,o){return{range:{start:a,end:a},newText:o}}s(r,"insert"),t.insert=r;function n(a){return{range:a,newText:""}}s(n,"del"),t.del=n;function i(a){let o=a;return Le.objectLiteral(o)&&Le.string(o.newText)&&gr.is(o.range)}s(i,"is"),t.is=i})(Zm||(Zm={}));(function(t){function e(n,i,a){let o={label:n};return i!==void 0&&(o.needsConfirmation=i),a!==void 0&&(o.description=a),o}s(e,"create"),t.create=e;function r(n){let i=n;return Le.objectLiteral(i)&&Le.string(i.label)&&(Le.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(Le.string(i.description)||i.description===void 0)}s(r,"is"),t.is=r})(eM||(eM={}));(function(t){function e(r){let n=r;return Le.string(n)}s(e,"is"),t.is=e})(Jm||(Jm={}));(function(t){function e(a,o,l){return{range:a,newText:o,annotationId:l}}s(e,"replace"),t.replace=e;function r(a,o,l){return{range:{start:a,end:a},newText:o,annotationId:l}}s(r,"insert"),t.insert=r;function n(a,o){return{range:a,newText:"",annotationId:o}}s(n,"del"),t.del=n;function i(a){let o=a;return Zm.is(o)&&(eM.is(o.annotationId)||Jm.is(o.annotationId))}s(i,"is"),t.is=i})(zie||(zie={}));(function(t){function e(n,i){return{textDocument:n,edits:i}}s(e,"create"),t.create=e;function r(n){let i=n;return Le.defined(i)&&sM.is(i.textDocument)&&Array.isArray(i.edits)}s(r,"is"),t.is=r})(tM||(tM={}));(function(t){function e(n,i,a){let o={kind:"create",uri:n};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(o.options=i),a!==void 0&&(o.annotationId=a),o}s(e,"create"),t.create=e;function r(n){let i=n;return i&&i.kind==="create"&&Le.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||Le.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||Le.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Jm.is(i.annotationId))}s(r,"is"),t.is=r})(rM||(rM={}));(function(t){function e(n,i,a,o){let l={kind:"rename",oldUri:n,newUri:i};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(l.options=a),o!==void 0&&(l.annotationId=o),l}s(e,"create"),t.create=e;function r(n){let i=n;return i&&i.kind==="rename"&&Le.string(i.oldUri)&&Le.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||Le.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||Le.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Jm.is(i.annotationId))}s(r,"is"),t.is=r})(nM||(nM={}));(function(t){function e(n,i,a){let o={kind:"delete",uri:n};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(o.options=i),a!==void 0&&(o.annotationId=a),o}s(e,"create"),t.create=e;function r(n){let i=n;return i&&i.kind==="delete"&&Le.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||Le.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||Le.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||Jm.is(i.annotationId))}s(r,"is"),t.is=r})(iM||(iM={}));(function(t){function e(r){let n=r;return n&&(n.changes!==void 0||n.documentChanges!==void 0)&&(n.documentChanges===void 0||n.documentChanges.every(i=>Le.string(i.kind)?rM.is(i)||nM.is(i)||iM.is(i):tM.is(i)))}s(e,"is"),t.is=e})(aM||(aM={}));(function(t){function e(n){return{uri:n}}s(e,"create"),t.create=e;function r(n){let i=n;return Le.defined(i)&&Le.string(i.uri)}s(r,"is"),t.is=r})($ie||($ie={}));(function(t){function e(n,i){return{uri:n,version:i}}s(e,"create"),t.create=e;function r(n){let i=n;return Le.defined(i)&&Le.string(i.uri)&&Le.integer(i.version)}s(r,"is"),t.is=r})(Gie||(Gie={}));(function(t){function e(n,i){return{uri:n,version:i}}s(e,"create"),t.create=e;function r(n){let i=n;return Le.defined(i)&&Le.string(i.uri)&&(i.version===null||Le.integer(i.version))}s(r,"is"),t.is=r})(sM||(sM={}));(function(t){function e(n,i,a,o){return{uri:n,languageId:i,version:a,text:o}}s(e,"create"),t.create=e;function r(n){let i=n;return Le.defined(i)&&Le.string(i.uri)&&Le.string(i.languageId)&&Le.integer(i.version)&&Le.string(i.text)}s(r,"is"),t.is=r})(Vie||(Vie={}));(function(t){t.PlainText="plaintext",t.Markdown="markdown";function e(r){let n=r;return n===t.PlainText||n===t.Markdown}s(e,"is"),t.is=e})(oM||(oM={}));(function(t){function e(r){let n=r;return Le.objectLiteral(r)&&oM.is(n.kind)&&Le.string(n.value)}s(e,"is"),t.is=e})(s2||(s2={}));(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(Uie||(Uie={}));(function(t){t.PlainText=1,t.Snippet=2})(qie||(qie={}));(function(t){t.Deprecated=1})(Wie||(Wie={}));(function(t){function e(n,i,a){return{newText:n,insert:i,replace:a}}s(e,"create"),t.create=e;function r(n){let i=n;return i&&Le.string(i.newText)&&gr.is(i.insert)&&gr.is(i.replace)}s(r,"is"),t.is=r})(Hie||(Hie={}));(function(t){t.asIs=1,t.adjustIndentation=2})(Yie||(Yie={}));(function(t){function e(r){let n=r;return n&&(Le.string(n.detail)||n.detail===void 0)&&(Le.string(n.description)||n.description===void 0)}s(e,"is"),t.is=e})(Xie||(Xie={}));(function(t){function e(r){return{label:r}}s(e,"create"),t.create=e})(jie||(jie={}));(function(t){function e(r,n){return{items:r||[],isIncomplete:!!n}}s(e,"create"),t.create=e})(Kie||(Kie={}));(function(t){function e(n){return n.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}s(e,"fromPlainText"),t.fromPlainText=e;function r(n){let i=n;return Le.string(i)||Le.objectLiteral(i)&&Le.string(i.language)&&Le.string(i.value)}s(r,"is"),t.is=r})(H6||(H6={}));(function(t){function e(r){let n=r;return!!n&&Le.objectLiteral(n)&&(s2.is(n.contents)||H6.is(n.contents)||Le.typedArray(n.contents,H6.is))&&(r.range===void 0||gr.is(r.range))}s(e,"is"),t.is=e})(Qie||(Qie={}));(function(t){function e(r,n){return n?{label:r,documentation:n}:{label:r}}s(e,"create"),t.create=e})(Zie||(Zie={}));(function(t){function e(r,n,...i){let a={label:r};return Le.defined(n)&&(a.documentation=n),Le.defined(i)?a.parameters=i:a.parameters=[],a}s(e,"create"),t.create=e})(Jie||(Jie={}));(function(t){t.Text=1,t.Read=2,t.Write=3})(eae||(eae={}));(function(t){function e(r,n){let i={range:r};return Le.number(n)&&(i.kind=n),i}s(e,"create"),t.create=e})(tae||(tae={}));(function(t){t.File=1,t.Module=2,t.Namespace=3,t.Package=4,t.Class=5,t.Method=6,t.Property=7,t.Field=8,t.Constructor=9,t.Enum=10,t.Interface=11,t.Function=12,t.Variable=13,t.Constant=14,t.String=15,t.Number=16,t.Boolean=17,t.Array=18,t.Object=19,t.Key=20,t.Null=21,t.EnumMember=22,t.Struct=23,t.Event=24,t.Operator=25,t.TypeParameter=26})(rae||(rae={}));(function(t){t.Deprecated=1})(nae||(nae={}));(function(t){function e(r,n,i,a,o){let l={name:r,kind:n,location:{uri:a,range:i}};return o&&(l.containerName=o),l}s(e,"create"),t.create=e})(iae||(iae={}));(function(t){function e(r,n,i,a){return a!==void 0?{name:r,kind:n,location:{uri:i,range:a}}:{name:r,kind:n,location:{uri:i}}}s(e,"create"),t.create=e})(aae||(aae={}));(function(t){function e(n,i,a,o,l,u){let h={name:n,detail:i,kind:a,range:o,selectionRange:l};return u!==void 0&&(h.children=u),h}s(e,"create"),t.create=e;function r(n){let i=n;return i&&Le.string(i.name)&&Le.number(i.kind)&&gr.is(i.range)&&gr.is(i.selectionRange)&&(i.detail===void 0||Le.string(i.detail))&&(i.deprecated===void 0||Le.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}s(r,"is"),t.is=r})(sae||(sae={}));(function(t){t.Empty="",t.QuickFix="quickfix",t.Refactor="refactor",t.RefactorExtract="refactor.extract",t.RefactorInline="refactor.inline",t.RefactorRewrite="refactor.rewrite",t.Source="source",t.SourceOrganizeImports="source.organizeImports",t.SourceFixAll="source.fixAll"})(oae||(oae={}));(function(t){t.Invoked=1,t.Automatic=2})(Y6||(Y6={}));(function(t){function e(n,i,a){let o={diagnostics:n};return i!=null&&(o.only=i),a!=null&&(o.triggerKind=a),o}s(e,"create"),t.create=e;function r(n){let i=n;return Le.defined(i)&&Le.typedArray(i.diagnostics,W6.is)&&(i.only===void 0||Le.typedArray(i.only,Le.string))&&(i.triggerKind===void 0||i.triggerKind===Y6.Invoked||i.triggerKind===Y6.Automatic)}s(r,"is"),t.is=r})(lae||(lae={}));(function(t){function e(n,i,a){let o={title:n},l=!0;return typeof i=="string"?(l=!1,o.kind=i):Qm.is(i)?o.command=i:o.edit=i,l&&a!==void 0&&(o.kind=a),o}s(e,"create"),t.create=e;function r(n){let i=n;return i&&Le.string(i.title)&&(i.diagnostics===void 0||Le.typedArray(i.diagnostics,W6.is))&&(i.kind===void 0||Le.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||Qm.is(i.command))&&(i.isPreferred===void 0||Le.boolean(i.isPreferred))&&(i.edit===void 0||aM.is(i.edit))}s(r,"is"),t.is=r})(cae||(cae={}));(function(t){function e(n,i){let a={range:n};return Le.defined(i)&&(a.data=i),a}s(e,"create"),t.create=e;function r(n){let i=n;return Le.defined(i)&&gr.is(i.range)&&(Le.undefined(i.command)||Qm.is(i.command))}s(r,"is"),t.is=r})(uae||(uae={}));(function(t){function e(n,i){return{tabSize:n,insertSpaces:i}}s(e,"create"),t.create=e;function r(n){let i=n;return Le.defined(i)&&Le.uinteger(i.tabSize)&&Le.boolean(i.insertSpaces)}s(r,"is"),t.is=r})(hae||(hae={}));(function(t){function e(n,i,a){return{range:n,target:i,data:a}}s(e,"create"),t.create=e;function r(n){let i=n;return Le.defined(i)&&gr.is(i.range)&&(Le.undefined(i.target)||Le.string(i.target))}s(r,"is"),t.is=r})(fae||(fae={}));(function(t){function e(n,i){return{range:n,parent:i}}s(e,"create"),t.create=e;function r(n){let i=n;return Le.objectLiteral(i)&&gr.is(i.range)&&(i.parent===void 0||t.is(i.parent))}s(r,"is"),t.is=r})(dae||(dae={}));(function(t){t.namespace="namespace",t.type="type",t.class="class",t.enum="enum",t.interface="interface",t.struct="struct",t.typeParameter="typeParameter",t.parameter="parameter",t.variable="variable",t.property="property",t.enumMember="enumMember",t.event="event",t.function="function",t.method="method",t.macro="macro",t.keyword="keyword",t.modifier="modifier",t.comment="comment",t.string="string",t.number="number",t.regexp="regexp",t.operator="operator",t.decorator="decorator"})(pae||(pae={}));(function(t){t.declaration="declaration",t.definition="definition",t.readonly="readonly",t.static="static",t.deprecated="deprecated",t.abstract="abstract",t.async="async",t.modification="modification",t.documentation="documentation",t.defaultLibrary="defaultLibrary"})(mae||(mae={}));(function(t){function e(r){let n=r;return Le.objectLiteral(n)&&(n.resultId===void 0||typeof n.resultId=="string")&&Array.isArray(n.data)&&(n.data.length===0||typeof n.data[0]=="number")}s(e,"is"),t.is=e})(gae||(gae={}));(function(t){function e(n,i){return{range:n,text:i}}s(e,"create"),t.create=e;function r(n){let i=n;return i!=null&&gr.is(i.range)&&Le.string(i.text)}s(r,"is"),t.is=r})(yae||(yae={}));(function(t){function e(n,i,a){return{range:n,variableName:i,caseSensitiveLookup:a}}s(e,"create"),t.create=e;function r(n){let i=n;return i!=null&&gr.is(i.range)&&Le.boolean(i.caseSensitiveLookup)&&(Le.string(i.variableName)||i.variableName===void 0)}s(r,"is"),t.is=r})(vae||(vae={}));(function(t){function e(n,i){return{range:n,expression:i}}s(e,"create"),t.create=e;function r(n){let i=n;return i!=null&&gr.is(i.range)&&(Le.string(i.expression)||i.expression===void 0)}s(r,"is"),t.is=r})(xae||(xae={}));(function(t){function e(n,i){return{frameId:n,stoppedLocation:i}}s(e,"create"),t.create=e;function r(n){let i=n;return Le.defined(i)&&gr.is(n.stoppedLocation)}s(r,"is"),t.is=r})(bae||(bae={}));(function(t){t.Type=1,t.Parameter=2;function e(r){return r===1||r===2}s(e,"is"),t.is=e})(lM||(lM={}));(function(t){function e(n){return{value:n}}s(e,"create"),t.create=e;function r(n){let i=n;return Le.objectLiteral(i)&&(i.tooltip===void 0||Le.string(i.tooltip)||s2.is(i.tooltip))&&(i.location===void 0||q6.is(i.location))&&(i.command===void 0||Qm.is(i.command))}s(r,"is"),t.is=r})(cM||(cM={}));(function(t){function e(n,i,a){let o={position:n,label:i};return a!==void 0&&(o.kind=a),o}s(e,"create"),t.create=e;function r(n){let i=n;return Le.objectLiteral(i)&&Pr.is(i.position)&&(Le.string(i.label)||Le.typedArray(i.label,cM.is))&&(i.kind===void 0||lM.is(i.kind))&&i.textEdits===void 0||Le.typedArray(i.textEdits,Zm.is)&&(i.tooltip===void 0||Le.string(i.tooltip)||s2.is(i.tooltip))&&(i.paddingLeft===void 0||Le.boolean(i.paddingLeft))&&(i.paddingRight===void 0||Le.boolean(i.paddingRight))}s(r,"is"),t.is=r})(kae||(kae={}));(function(t){function e(r){return{kind:"snippet",value:r}}s(e,"createSnippet"),t.createSnippet=e})(wae||(wae={}));(function(t){function e(r,n,i,a){return{insertText:r,filterText:n,range:i,command:a}}s(e,"create"),t.create=e})(Tae||(Tae={}));(function(t){function e(r){return{items:r}}s(e,"create"),t.create=e})(Eae||(Eae={}));(function(t){t.Invoked=0,t.Automatic=1})(Cae||(Cae={}));(function(t){function e(r,n){return{range:r,text:n}}s(e,"create"),t.create=e})(Sae||(Sae={}));(function(t){function e(r,n){return{triggerKind:r,selectedCompletionInfo:n}}s(e,"create"),t.create=e})(_ae||(_ae={}));(function(t){function e(r){let n=r;return Le.objectLiteral(n)&&QR.is(n.uri)&&Le.string(n.name)}s(e,"is"),t.is=e})(Aae||(Aae={}));(function(t){function e(a,o,l,u){return new uM(a,o,l,u)}s(e,"create"),t.create=e;function r(a){let o=a;return!!(Le.defined(o)&&Le.string(o.uri)&&(Le.undefined(o.languageId)||Le.string(o.languageId))&&Le.uinteger(o.lineCount)&&Le.func(o.getText)&&Le.func(o.positionAt)&&Le.func(o.offsetAt))}s(r,"is"),t.is=r;function n(a,o){let l=a.getText(),u=i(o,(f,d)=>{let p=f.range.start.line-d.range.start.line;return p===0?f.range.start.character-d.range.start.character:p}),h=l.length;for(let f=u.length-1;f>=0;f--){let d=u[f],p=a.offsetAt(d.range.start),m=a.offsetAt(d.range.end);if(m<=h)l=l.substring(0,p)+d.newText+l.substring(m,l.length);else throw new Error("Overlapping edit");h=p}return l}s(n,"applyEdits"),t.applyEdits=n;function i(a,o){if(a.length<=1)return a;let l=a.length/2|0,u=a.slice(0,l),h=a.slice(l);i(u,o),i(h,o);let f=0,d=0,p=0;for(;f0&&e.push(r.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let r=this.getLineOffsets(),n=0,i=r.length;if(i===0)return Pr.create(0,e);for(;ne?i=o:n=o+1}let a=n-1;return Pr.create(a,e-r[a])}offsetAt(e){let r=this.getLineOffsets();if(e.line>=r.length)return this._content.length;if(e.line<0)return 0;let n=r[e.line],i=e.line+1"u"}s(n,"undefined"),t.undefined=n;function i(m){return m===!0||m===!1}s(i,"boolean"),t.boolean=i;function a(m){return e.call(m)==="[object String]"}s(a,"string"),t.string=a;function o(m){return e.call(m)==="[object Number]"}s(o,"number"),t.number=o;function l(m,g,y){return e.call(m)==="[object Number]"&&g<=m&&m<=y}s(l,"numberRange"),t.numberRange=l;function u(m){return e.call(m)==="[object Number]"&&-2147483648<=m&&m<=2147483647}s(u,"integer"),t.integer=u;function h(m){return e.call(m)==="[object Number]"&&0<=m&&m<=2147483647}s(h,"uinteger"),t.uinteger=h;function f(m){return e.call(m)==="[object Function]"}s(f,"func"),t.func=f;function d(m){return m!==null&&typeof m=="object"}s(d,"objectLiteral"),t.objectLiteral=d;function p(m,g){return Array.isArray(m)&&m.every(g)}s(p,"typedArray"),t.typedArray=p})(Le||(Le={}))});var o2,l2,t0,r0,fM,eg,X6=_(()=>{"use strict";hM();Do();gl();o2=class{static{s(this,"CstNodeBuilder")}constructor(){this.nodeStack=[]}get current(){return this.nodeStack[this.nodeStack.length-1]}buildRootNode(e){return this.rootNode=new eg(e),this.rootNode.root=this.rootNode,this.nodeStack=[this.rootNode],this.rootNode}buildCompositeNode(e){let r=new r0;return r.grammarSource=e,r.root=this.rootNode,this.current.content.push(r),this.nodeStack.push(r),r}buildLeafNode(e,r){let n=new t0(e.startOffset,e.image.length,Tm(e),e.tokenType,!1);return n.grammarSource=r,n.root=this.rootNode,this.current.content.push(n),n}removeNode(e){let r=e.container;if(r){let n=r.content.indexOf(e);n>=0&&r.content.splice(n,1)}}construct(e){let r=this.current;typeof e.$type=="string"&&(this.current.astNode=e),e.$cstNode=r;let n=this.nodeStack.pop();n?.content.length===0&&this.removeNode(n)}addHiddenTokens(e){for(let r of e){let n=new t0(r.startOffset,r.image.length,Tm(r),r.tokenType,!0);n.root=this.rootNode,this.addHiddenToken(this.rootNode,n)}}addHiddenToken(e,r){let{offset:n,end:i}=r;for(let a=0;al&&i=0;e--){let r=this.content[e];if(!r.hidden)return r}return this.content[this.content.length-1]}},fM=class t extends Array{static{s(this,"CstNodeContainer")}constructor(e){super(),this.parent=e,Object.setPrototypeOf(this,t.prototype)}push(...e){return this.addParents(e),super.push(...e)}unshift(...e){return this.addParents(e),super.unshift(...e)}splice(e,r,...n){return this.addParents(n),super.splice(e,r,...n)}addParents(e){for(let r of e)r.container=this.parent}},eg=class extends r0{static{s(this,"RootCstNodeImpl")}get text(){return this._text.substring(this.offset,this.end)}get fullText(){return this._text}constructor(e){super(),this._text="",this._text=e??""}}});function dM(t){return t.$type===j6}var j6,Dae,Rae,c2,u2,K6,tg,h2,oIe,pM,f2=_(()=>{"use strict";Zd();Aie();mc();xl();Ha();X6();j6=Symbol("Datatype");s(dM,"isDataTypeNode");Dae="\u200B",Rae=s(t=>t.endsWith(Dae)?t:t+Dae,"withRuleSuffix"),c2=class{static{s(this,"AbstractLangiumParser")}constructor(e){this._unorderedGroups=new Map,this.lexer=e.parser.Lexer;let r=this.lexer.definition;this.wrapper=new pM(r,Object.assign(Object.assign({},e.parser.ParserConfig),{errorMessageProvider:e.parser.ParserErrorMessageProvider}))}alternatives(e,r){this.wrapper.wrapOr(e,r)}optional(e,r){this.wrapper.wrapOption(e,r)}many(e,r){this.wrapper.wrapMany(e,r)}atLeastOne(e,r){this.wrapper.wrapAtLeastOne(e,r)}isRecording(){return this.wrapper.IS_RECORDING}get unorderedGroups(){return this._unorderedGroups}getRuleStack(){return this.wrapper.RULE_STACK}finalize(){this.wrapper.wrapSelfAnalysis()}},u2=class extends c2{static{s(this,"LangiumParser")}get current(){return this.stack[this.stack.length-1]}constructor(e){super(e),this.nodeBuilder=new o2,this.stack=[],this.assignmentMap=new Map,this.linker=e.references.Linker,this.converter=e.parser.ValueConverter,this.astReflection=e.shared.AstReflection}rule(e,r){let n=e.fragment?void 0:Ov(e)?j6:qd(e),i=this.wrapper.DEFINE_RULE(Rae(e.name),this.startImplementation(n,r).bind(this));return e.entry&&(this.mainRule=i),i}parse(e){this.nodeBuilder.buildRootNode(e);let r=this.lexer.tokenize(e);this.wrapper.input=r.tokens;let n=this.mainRule.call(this.wrapper,{});return this.nodeBuilder.addHiddenTokens(r.hidden),this.unorderedGroups.clear(),{value:n,lexerErrors:r.errors,parserErrors:this.wrapper.errors}}startImplementation(e,r){return n=>{if(!this.isRecording()){let a={$type:e};this.stack.push(a),e===j6&&(a.value="")}let i;try{i=r(n)}catch{i=void 0}return!this.isRecording()&&i===void 0&&(i=this.construct()),i}}consume(e,r,n){let i=this.wrapper.wrapConsume(e,r);if(!this.isRecording()&&this.isValidToken(i)){let a=this.nodeBuilder.buildLeafNode(i,n),{assignment:o,isCrossRef:l}=this.getAssignment(n),u=this.current;if(o){let h=Mo(n)?i.image:this.converter.convert(i.image,a);this.assign(o.operator,o.feature,h,a,l)}else if(dM(u)){let h=i.image;Mo(n)||(h=this.converter.convert(h,a).toString()),u.value+=h}}}isValidToken(e){return!e.isInsertedInRecovery&&!isNaN(e.startOffset)&&typeof e.endOffset=="number"&&!isNaN(e.endOffset)}subrule(e,r,n,i){let a;this.isRecording()||(a=this.nodeBuilder.buildCompositeNode(n));let o=this.wrapper.wrapSubrule(e,r,i);!this.isRecording()&&a&&a.length>0&&this.performSubruleAssignment(o,n,a)}performSubruleAssignment(e,r,n){let{assignment:i,isCrossRef:a}=this.getAssignment(r);if(i)this.assign(i.operator,i.feature,e,n,a);else if(!i){let o=this.current;if(dM(o))o.value+=e.toString();else if(typeof e=="object"&&e){let l=e.$type,u=this.assignWithoutOverride(e,o);l&&(u.$type=l);let h=u;this.stack.pop(),this.stack.push(h)}}}action(e,r){if(!this.isRecording()){let n=this.current;if(!n.$cstNode&&r.feature&&r.operator){n=this.construct(!1);let a=n.$cstNode.feature;this.nodeBuilder.buildCompositeNode(a)}let i={$type:e};this.stack.pop(),this.stack.push(i),r.feature&&r.operator&&this.assign(r.operator,r.feature,n,n.$cstNode,!1)}}construct(e=!0){if(this.isRecording())return;let r=this.current;return Xk(r),this.nodeBuilder.construct(r),e&&this.stack.pop(),dM(r)?this.converter.convert(r.value,r.$cstNode):(VD(this.astReflection,r),r)}getAssignment(e){if(!this.assignmentMap.has(e)){let r=zd(e,yl);this.assignmentMap.set(e,{assignment:r,isCrossRef:r?Fd(r.terminal):!1})}return this.assignmentMap.get(e)}assign(e,r,n,i,a){let o=this.current,l;switch(a&&typeof n=="string"?l=this.linker.buildReference(o,r,i,n):l=n,e){case"=":{o[r]=l;break}case"?=":{o[r]=!0;break}case"+=":Array.isArray(o[r])||(o[r]=[]),o[r].push(l)}}assignWithoutOverride(e,r){for(let[n,i]of Object.entries(r)){let a=e[n];a===void 0?e[n]=i:Array.isArray(a)&&Array.isArray(i)&&(i.push(...a),e[n]=i)}return e}get definitionErrors(){return this.wrapper.definitionErrors}},K6=class{static{s(this,"AbstractParserErrorMessageProvider")}buildMismatchTokenMessage(e){return Ru.buildMismatchTokenMessage(e)}buildNotAllInputParsedMessage(e){return Ru.buildNotAllInputParsedMessage(e)}buildNoViableAltMessage(e){return Ru.buildNoViableAltMessage(e)}buildEarlyExitMessage(e){return Ru.buildEarlyExitMessage(e)}},tg=class extends K6{static{s(this,"LangiumParserErrorMessageProvider")}buildMismatchTokenMessage({expected:e,actual:r}){return`Expecting ${e.LABEL?"`"+e.LABEL+"`":e.name.endsWith(":KW")?`keyword '${e.name.substring(0,e.name.length-3)}'`:`token of type '${e.name}'`} but found \`${r.image}\`.`}buildNotAllInputParsedMessage({firstRedundant:e}){return`Expecting end of file but found \`${e.image}\`.`}},h2=class extends c2{static{s(this,"LangiumCompletionParser")}constructor(){super(...arguments),this.tokens=[],this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}action(){}construct(){}parse(e){this.resetState();let r=this.lexer.tokenize(e);return this.tokens=r.tokens,this.wrapper.input=[...this.tokens],this.mainRule.call(this.wrapper,{}),this.unorderedGroups.clear(),{tokens:this.tokens,elementStack:[...this.lastElementStack],tokenIndex:this.nextTokenIndex}}rule(e,r){let n=this.wrapper.DEFINE_RULE(Rae(e.name),this.startImplementation(r).bind(this));return e.entry&&(this.mainRule=n),n}resetState(){this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}startImplementation(e){return r=>{let n=this.keepStackSize();try{e(r)}finally{this.resetStackSize(n)}}}removeUnexpectedElements(){this.elementStack.splice(this.stackSize)}keepStackSize(){let e=this.elementStack.length;return this.stackSize=e,e}resetStackSize(e){this.removeUnexpectedElements(),this.stackSize=e}consume(e,r,n){this.wrapper.wrapConsume(e,r),this.isRecording()||(this.lastElementStack=[...this.elementStack,n],this.nextTokenIndex=this.currIdx+1)}subrule(e,r,n,i){this.before(n),this.wrapper.wrapSubrule(e,r,i),this.after(n)}before(e){this.isRecording()||this.elementStack.push(e)}after(e){if(!this.isRecording()){let r=this.elementStack.lastIndexOf(e);r>=0&&this.elementStack.splice(r)}}get currIdx(){return this.wrapper.currIdx}},oIe={recoveryEnabled:!0,nodeLocationTracking:"full",skipValidations:!0,errorMessageProvider:new tg},pM=class extends t2{static{s(this,"ChevrotainWrapper")}constructor(e,r){let n=r&&"maxLookahead"in r;super(e,Object.assign(Object.assign(Object.assign({},oIe),{lookaheadStrategy:n?new Mu({maxLookahead:r.maxLookahead}):new a2}),r))}get IS_RECORDING(){return this.RECORDING_PHASE}DEFINE_RULE(e,r){return this.RULE(e,r)}wrapSelfAnalysis(){this.performSelfAnalysis()}wrapConsume(e,r){return this.consume(e,r)}wrapSubrule(e,r,n){return this.subrule(e,r,{ARGS:[n]})}wrapOr(e,r){this.or(e,r)}wrapOption(e,r){this.option(e,r)}wrapMany(e,r){this.many(e,r)}wrapAtLeastOne(e,r){this.atLeastOne(e,r)}}});function Z6(t,e,r){return lIe({parser:e,tokens:r,rules:new Map,ruleNames:new Map},t),e}function lIe(t,e){let r=Iv(e,!1),n=Wr(e.rules).filter(Sa).filter(i=>r.has(i));for(let i of n){let a=Object.assign(Object.assign({},t),{consume:1,optional:1,subrule:1,many:1,or:1});a.rules.set(i.name,t.parser.rule(i,n0(a,i.definition)))}}function n0(t,e,r=!1){let n;if(Mo(e))n=mIe(t,e);else if(Cu(e))n=cIe(t,e);else if(yl(e))n=n0(t,e.terminal);else if(Fd(e))n=Mae(t,e);else if(vl(e))n=uIe(t,e);else if(Wk(e))n=fIe(t,e);else if(Yk(e))n=dIe(t,e);else if(Kh(e))n=pIe(t,e);else if(wD(e)){let i=t.consume++;n=s(()=>t.parser.consume(i,io,e),"method")}else throw new Bd(e.$cstNode,`Unexpected element type: ${e.$type}`);return Iae(t,r?void 0:Q6(e),n,e.cardinality)}function cIe(t,e){let r=qd(e);return()=>t.parser.action(r,e)}function uIe(t,e){let r=e.rule.ref;if(Sa(r)){let n=t.subrule++,i=e.arguments.length>0?hIe(r,e.arguments):()=>({});return a=>t.parser.subrule(n,Nae(t,r),e,i(a))}else if(Ro(r)){let n=t.consume++,i=mM(t,r.name);return()=>t.parser.consume(n,i,e)}else if(r)jh(r);else throw new Bd(e.$cstNode,`Undefined rule type: ${e.$type}`)}function hIe(t,e){let r=e.map(n=>Iu(n.value));return n=>{let i={};for(let a=0;ae(n)||r(n)}else if(XL(t)){let e=Iu(t.left),r=Iu(t.right);return n=>e(n)&&r(n)}else if(tD(t)){let e=Iu(t.value);return r=>!e(r)}else if(aD(t)){let e=t.parameter.ref.name;return r=>r!==void 0&&r[e]===!0}else if(HL(t)){let e=!!t.true;return()=>e}jh(t)}function fIe(t,e){if(e.elements.length===1)return n0(t,e.elements[0]);{let r=[];for(let i of e.elements){let a={ALT:n0(t,i,!0)},o=Q6(i);o&&(a.GATE=Iu(o)),r.push(a)}let n=t.or++;return i=>t.parser.alternatives(n,r.map(a=>{let o={ALT:s(()=>a.ALT(i),"ALT")},l=a.GATE;return l&&(o.GATE=()=>l(i)),o}))}}function dIe(t,e){if(e.elements.length===1)return n0(t,e.elements[0]);let r=[];for(let l of e.elements){let u={ALT:n0(t,l,!0)},h=Q6(l);h&&(u.GATE=Iu(h)),r.push(u)}let n=t.or++,i=s((l,u)=>{let h=u.getRuleStack().join("-");return`uGroup_${l}_${h}`},"idFunc"),a=s(l=>t.parser.alternatives(n,r.map((u,h)=>{let f={ALT:s(()=>!0,"ALT")},d=t.parser;f.ALT=()=>{if(u.ALT(l),!d.isRecording()){let m=i(n,d);d.unorderedGroups.get(m)||d.unorderedGroups.set(m,[]);let g=d.unorderedGroups.get(m);typeof g?.[h]>"u"&&(g[h]=!0)}};let p=u.GATE;return p?f.GATE=()=>p(l):f.GATE=()=>{let m=d.unorderedGroups.get(i(n,d));return!m?.[h]},f})),"alternatives"),o=Iae(t,Q6(e),a,"*");return l=>{o(l),t.parser.isRecording()||t.parser.unorderedGroups.delete(i(n,t.parser))}}function pIe(t,e){let r=e.elements.map(n=>n0(t,n));return n=>r.forEach(i=>i(n))}function Q6(t){if(Kh(t))return t.guardCondition}function Mae(t,e,r=e.terminal){if(r)if(vl(r)&&Sa(r.rule.ref)){let n=t.subrule++;return i=>t.parser.subrule(n,Nae(t,r.rule.ref),e,i)}else if(vl(r)&&Ro(r.rule.ref)){let n=t.consume++,i=mM(t,r.rule.ref.name);return()=>t.parser.consume(n,i,e)}else if(Mo(r)){let n=t.consume++,i=mM(t,r.value);return()=>t.parser.consume(n,i,e)}else throw new Error("Could not build cross reference parser");else{if(!e.type.ref)throw new Error("Could not resolve reference to type: "+e.type.$refText);let n=e6(e.type.ref),i=n?.terminal;if(!i)throw new Error("Could not find name assignment for type: "+qd(e.type.ref));return Mae(t,e,i)}}function mIe(t,e){let r=t.consume++,n=t.tokens[e.value];if(!n)throw new Error("Could not find token for keyword: "+e.value);return()=>t.parser.consume(r,n,e)}function Iae(t,e,r,n){let i=e&&Iu(e);if(!n)if(i){let a=t.or++;return o=>t.parser.alternatives(a,[{ALT:s(()=>r(o),"ALT"),GATE:s(()=>i(o),"GATE")},{ALT:$6(),GATE:s(()=>!i(o),"GATE")}])}else return r;if(n==="*"){let a=t.many++;return o=>t.parser.many(a,{DEF:s(()=>r(o),"DEF"),GATE:i?()=>i(o):void 0})}else if(n==="+"){let a=t.many++;if(i){let o=t.or++;return l=>t.parser.alternatives(o,[{ALT:s(()=>t.parser.atLeastOne(a,{DEF:s(()=>r(l),"DEF")}),"ALT"),GATE:s(()=>i(l),"GATE")},{ALT:$6(),GATE:s(()=>!i(l),"GATE")}])}else return o=>t.parser.atLeastOne(a,{DEF:s(()=>r(o),"DEF")})}else if(n==="?"){let a=t.optional++;return o=>t.parser.optional(a,{DEF:s(()=>r(o),"DEF"),GATE:i?()=>i(o):void 0})}else jh(n)}function Nae(t,e){let r=gIe(t,e),n=t.rules.get(r);if(!n)throw new Error(`Rule "${r}" not found."`);return n}function gIe(t,e){if(Sa(e))return e.name;if(t.ruleNames.has(e))return t.ruleNames.get(e);{let r=e,n=r.$container,i=e.$type;for(;!Sa(n);)(Kh(n)||Wk(n)||Yk(n))&&(i=n.elements.indexOf(r).toString()+":"+i),r=n,n=n.$container;return i=n.name+":"+i,t.ruleNames.set(e,i),i}}function mM(t,e){let r=t.tokens[e];if(!r)throw new Error(`Token "${e}" not found."`);return r}var gM=_(()=>{"use strict";Zd();mc();Fk();Es();xl();s(Z6,"createParser");s(lIe,"buildRules");s(n0,"buildElement");s(cIe,"buildAction");s(uIe,"buildRuleCall");s(hIe,"buildRuleCallPredicate");s(Iu,"buildPredicate");s(fIe,"buildAlternatives");s(dIe,"buildUnorderedGroup");s(pIe,"buildGroup");s(Q6,"getGuardCondition");s(Mae,"buildCrossReference");s(mIe,"buildKeyword");s(Iae,"wrap");s(Nae,"getRule");s(gIe,"getRuleName");s(mM,"getToken")});function yM(t){let e=t.Grammar,r=t.parser.Lexer,n=new h2(t);return Z6(e,n,r.definition),n.finalize(),n}var vM=_(()=>{"use strict";f2();gM();s(yM,"createCompletionParser")});function xM(t){let e=Oae(t);return e.finalize(),e}function Oae(t){let e=t.Grammar,r=t.parser.Lexer,n=new u2(t);return Z6(e,n,r.definition)}var bM=_(()=>{"use strict";f2();gM();s(xM,"createLangiumParser");s(Oae,"prepareLangiumParser")});var i0,kM=_(()=>{"use strict";Zd();mc();Ha();xl();_m();Es();i0=class{static{s(this,"DefaultTokenBuilder")}buildTokens(e,r){let n=Wr(Iv(e,!1)),i=this.buildTerminalTokens(n),a=this.buildKeywordTokens(n,i,r);return i.forEach(o=>{let l=o.PATTERN;typeof l=="object"&&l&&"test"in l&&Zk(l)?a.unshift(o):a.push(o)}),a}buildTerminalTokens(e){return e.filter(Ro).filter(r=>!r.fragment).map(r=>this.buildTerminalToken(r)).toArray()}buildTerminalToken(e){let r=Am(e),n=this.requiresCustomPattern(r)?this.regexPatternFunction(r):r,i={name:e.name,PATTERN:n,LINE_BREAKS:!0};return e.hidden&&(i.GROUP=Zk(r)?jn.SKIPPED:"hidden"),i}requiresCustomPattern(e){return e.flags.includes("u")?!0:!!(e.source.includes("?<=")||e.source.includes("?(r.lastIndex=i,r.exec(n))}buildKeywordTokens(e,r,n){return e.filter(Sa).flatMap(i=>gc(i).filter(Mo)).distinct(i=>i.value).toArray().sort((i,a)=>a.value.length-i.value.length).map(i=>this.buildKeywordToken(i,r,!!n?.caseInsensitive))}buildKeywordToken(e,r,n){return{name:e.value,PATTERN:this.buildKeywordPattern(e,n),LONGER_ALT:this.findLongerAlt(e,r)}}buildKeywordPattern(e,r){return r?new RegExp(jD(e.value)):e.value}findLongerAlt(e,r){return r.reduce((n,i)=>{let a=i?.PATTERN;return a?.source&&KD("^"+a.source+"$",e.value)&&n.push(i),n},[])}}});var a0,xc,wM=_(()=>{"use strict";mc();xl();a0=class{static{s(this,"DefaultValueConverter")}convert(e,r){let n=r.grammarSource;if(Fd(n)&&(n=JD(n)),vl(n)){let i=n.rule.ref;if(!i)throw new Error("This cst node was not parsed by a rule.");return this.runConverter(i,e,r)}return e}runConverter(e,r,n){var i;switch(e.name.toUpperCase()){case"INT":return xc.convertInt(r);case"STRING":return xc.convertString(r);case"ID":return xc.convertID(r)}switch((i=oR(e))===null||i===void 0?void 0:i.toLowerCase()){case"number":return xc.convertNumber(r);case"boolean":return xc.convertBoolean(r);case"bigint":return xc.convertBigint(r);case"date":return xc.convertDate(r);default:return r}}};(function(t){function e(h){let f="";for(let d=1;d{"use strict";Object.defineProperty(CM,"__esModule",{value:!0});var TM;function EM(){if(TM===void 0)throw new Error("No runtime abstraction layer installed");return TM}s(EM,"RAL");(function(t){function e(r){if(r===void 0)throw new Error("No runtime abstraction layer provided");TM=r}s(e,"install"),t.install=e})(EM||(EM={}));CM.default=EM});var Fae=is(_a=>{"use strict";Object.defineProperty(_a,"__esModule",{value:!0});_a.stringArray=_a.array=_a.func=_a.error=_a.number=_a.string=_a.boolean=void 0;function yIe(t){return t===!0||t===!1}s(yIe,"boolean");_a.boolean=yIe;function Pae(t){return typeof t=="string"||t instanceof String}s(Pae,"string");_a.string=Pae;function vIe(t){return typeof t=="number"||t instanceof Number}s(vIe,"number");_a.number=vIe;function xIe(t){return t instanceof Error}s(xIe,"error");_a.error=xIe;function bIe(t){return typeof t=="function"}s(bIe,"func");_a.func=bIe;function Bae(t){return Array.isArray(t)}s(Bae,"array");_a.array=Bae;function kIe(t){return Bae(t)&&t.every(e=>Pae(e))}s(kIe,"stringArray");_a.stringArray=kIe});var AM=is(rg=>{"use strict";Object.defineProperty(rg,"__esModule",{value:!0});rg.Emitter=rg.Event=void 0;var wIe=SM(),zae;(function(t){let e={dispose(){}};t.None=function(){return e}})(zae||(rg.Event=zae={}));var _M=class{static{s(this,"CallbackList")}add(e,r=null,n){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(r),Array.isArray(n)&&n.push({dispose:s(()=>this.remove(e,r),"dispose")})}remove(e,r=null){if(!this._callbacks)return;let n=!1;for(let i=0,a=this._callbacks.length;i{this._callbacks||(this._callbacks=new _M),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,r);let i={dispose:s(()=>{this._callbacks&&(this._callbacks.remove(e,r),i.dispose=t._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))},"dispose")};return Array.isArray(n)&&n.push(i),i}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};rg.Emitter=J6;J6._noop=function(){}});var $ae=is(ng=>{"use strict";Object.defineProperty(ng,"__esModule",{value:!0});ng.CancellationTokenSource=ng.CancellationToken=void 0;var TIe=SM(),EIe=Fae(),LM=AM(),ew;(function(t){t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:LM.Event.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:LM.Event.None});function e(r){let n=r;return n&&(n===t.None||n===t.Cancelled||EIe.boolean(n.isCancellationRequested)&&!!n.onCancellationRequested)}s(e,"is"),t.is=e})(ew||(ng.CancellationToken=ew={}));var CIe=Object.freeze(function(t,e){let r=(0,TIe.default)().timer.setTimeout(t.bind(e),0);return{dispose(){r.dispose()}}}),tw=class{static{s(this,"MutableToken")}constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?CIe:(this._emitter||(this._emitter=new LM.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},DM=class{static{s(this,"CancellationTokenSource")}get token(){return this._token||(this._token=new tw),this._token}cancel(){this._token?this._token.cancel():this._token=ew.Cancelled}dispose(){this._token?this._token instanceof tw&&this._token.dispose():this._token=ew.None}};ng.CancellationTokenSource=DM});var cr={};var No=_(()=>{"use strict";lr(cr,ka($ae(),1))});function MM(){return new Promise(t=>{typeof setImmediate>"u"?setTimeout(t,0):setImmediate(t)})}function Vae(){return RM=Date.now(),new cr.CancellationTokenSource}function Uae(t){Gae=t}function ef(t){return t===bc}async function Di(t){if(t===cr.CancellationToken.None)return;let e=Date.now();if(e-RM>=Gae&&(RM=e,await MM()),t.isCancellationRequested)throw bc}var RM,Gae,bc,Qa,Oo=_(()=>{"use strict";No();s(MM,"delayNextTick");RM=0,Gae=10;s(Vae,"startCancelableOperation");s(Uae,"setInterruptionPeriod");bc=Symbol("OperationCancelled");s(ef,"isOperationCancelled");s(Di,"interruptAndCheck");Qa=class{static{s(this,"Deferred")}constructor(){this.promise=new Promise((e,r)=>{this.resolve=n=>(e(n),this),this.reject=n=>(r(n),this)})}}});function IM(t,e){if(t.length<=1)return t;let r=t.length/2|0,n=t.slice(0,r),i=t.slice(r);IM(n,e),IM(i,e);let a=0,o=0,l=0;for(;ar.line||e.line===r.line&&e.character>r.character?{start:r,end:e}:t}function SIe(t){let e=Hae(t.range);return e!==t.range?{newText:t.newText,range:e}:t}var rw,ig,Yae=_(()=>{"use strict";rw=class t{static{s(this,"FullTextDocument")}constructor(e,r,n,i){this._uri=e,this._languageId=r,this._version=n,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let r=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(r,n)}return this._content}update(e,r){for(let n of e)if(t.isIncremental(n)){let i=Hae(n.range),a=this.offsetAt(i.start),o=this.offsetAt(i.end);this._content=this._content.substring(0,a)+n.text+this._content.substring(o,this._content.length);let l=Math.max(i.start.line,0),u=Math.max(i.end.line,0),h=this._lineOffsets,f=qae(n.text,!1,a);if(u-l===f.length)for(let p=0,m=f.length;pe?i=o:n=o+1}let a=n-1;return e=this.ensureBeforeEOL(e,r[a]),{line:a,character:e-r[a]}}offsetAt(e){let r=this.getLineOffsets();if(e.line>=r.length)return this._content.length;if(e.line<0)return 0;let n=r[e.line];if(e.character<=0)return n;let i=e.line+1r&&Wae(this._content.charCodeAt(e-1));)e--;return e}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){let r=e;return r!=null&&typeof r.text=="string"&&r.range!==void 0&&(r.rangeLength===void 0||typeof r.rangeLength=="number")}static isFull(e){let r=e;return r!=null&&typeof r.text=="string"&&r.range===void 0&&r.rangeLength===void 0}};(function(t){function e(i,a,o,l){return new rw(i,a,o,l)}s(e,"create"),t.create=e;function r(i,a,o){if(i instanceof rw)return i.update(a,o),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}s(r,"update"),t.update=r;function n(i,a){let o=i.getText(),l=IM(a.map(SIe),(f,d)=>{let p=f.range.start.line-d.range.start.line;return p===0?f.range.start.character-d.range.start.character:p}),u=0,h=[];for(let f of l){let d=i.offsetAt(f.range.start);if(du&&h.push(o.substring(u,d)),f.newText.length&&h.push(f.newText),u=i.offsetAt(f.range.end)}return h.push(o.substr(u)),h.join("")}s(n,"applyEdits"),t.applyEdits=n})(ig||(ig={}));s(IM,"mergeSort");s(qae,"computeLineOffsets");s(Wae,"isEOL");s(Hae,"getWellformedRange");s(SIe,"getWellformedEdit")});var Xae,_s,ag,NM=_(()=>{"use strict";(()=>{"use strict";var t={470:i=>{function a(u){if(typeof u!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(u))}s(a,"e");function o(u,h){for(var f,d="",p=0,m=-1,g=0,y=0;y<=u.length;++y){if(y2){var v=d.lastIndexOf("/");if(v!==d.length-1){v===-1?(d="",p=0):p=(d=d.slice(0,v)).length-1-d.lastIndexOf("/"),m=y,g=0;continue}}else if(d.length===2||d.length===1){d="",p=0,m=y,g=0;continue}}h&&(d.length>0?d+="/..":d="..",p=2)}else d.length>0?d+="/"+u.slice(m+1,y):d=u.slice(m+1,y),p=y-m-1;m=y,g=0}else f===46&&g!==-1?++g:g=-1}return d}s(o,"r");var l={resolve:s(function(){for(var u,h="",f=!1,d=arguments.length-1;d>=-1&&!f;d--){var p;d>=0?p=arguments[d]:(u===void 0&&(u=process.cwd()),p=u),a(p),p.length!==0&&(h=p+"/"+h,f=p.charCodeAt(0)===47)}return h=o(h,!f),f?h.length>0?"/"+h:"/":h.length>0?h:"."},"resolve"),normalize:s(function(u){if(a(u),u.length===0)return".";var h=u.charCodeAt(0)===47,f=u.charCodeAt(u.length-1)===47;return(u=o(u,!h)).length!==0||h||(u="."),u.length>0&&f&&(u+="/"),h?"/"+u:u},"normalize"),isAbsolute:s(function(u){return a(u),u.length>0&&u.charCodeAt(0)===47},"isAbsolute"),join:s(function(){if(arguments.length===0)return".";for(var u,h=0;h0&&(u===void 0?u=f:u+="/"+f)}return u===void 0?".":l.normalize(u)},"join"),relative:s(function(u,h){if(a(u),a(h),u===h||(u=l.resolve(u))===(h=l.resolve(h)))return"";for(var f=1;fy){if(h.charCodeAt(m+x)===47)return h.slice(m+x+1);if(x===0)return h.slice(m+x)}else p>y&&(u.charCodeAt(f+x)===47?v=x:x===0&&(v=0));break}var b=u.charCodeAt(f+x);if(b!==h.charCodeAt(m+x))break;b===47&&(v=x)}var k="";for(x=f+v+1;x<=d;++x)x!==d&&u.charCodeAt(x)!==47||(k.length===0?k+="..":k+="/..");return k.length>0?k+h.slice(m+v):(m+=v,h.charCodeAt(m)===47&&++m,h.slice(m))},"relative"),_makeLong:s(function(u){return u},"_makeLong"),dirname:s(function(u){if(a(u),u.length===0)return".";for(var h=u.charCodeAt(0),f=h===47,d=-1,p=!0,m=u.length-1;m>=1;--m)if((h=u.charCodeAt(m))===47){if(!p){d=m;break}}else p=!1;return d===-1?f?"/":".":f&&d===1?"//":u.slice(0,d)},"dirname"),basename:s(function(u,h){if(h!==void 0&&typeof h!="string")throw new TypeError('"ext" argument must be a string');a(u);var f,d=0,p=-1,m=!0;if(h!==void 0&&h.length>0&&h.length<=u.length){if(h.length===u.length&&h===u)return"";var g=h.length-1,y=-1;for(f=u.length-1;f>=0;--f){var v=u.charCodeAt(f);if(v===47){if(!m){d=f+1;break}}else y===-1&&(m=!1,y=f+1),g>=0&&(v===h.charCodeAt(g)?--g==-1&&(p=f):(g=-1,p=y))}return d===p?p=y:p===-1&&(p=u.length),u.slice(d,p)}for(f=u.length-1;f>=0;--f)if(u.charCodeAt(f)===47){if(!m){d=f+1;break}}else p===-1&&(m=!1,p=f+1);return p===-1?"":u.slice(d,p)},"basename"),extname:s(function(u){a(u);for(var h=-1,f=0,d=-1,p=!0,m=0,g=u.length-1;g>=0;--g){var y=u.charCodeAt(g);if(y!==47)d===-1&&(p=!1,d=g+1),y===46?h===-1?h=g:m!==1&&(m=1):h!==-1&&(m=-1);else if(!p){f=g+1;break}}return h===-1||d===-1||m===0||m===1&&h===d-1&&h===f+1?"":u.slice(h,d)},"extname"),format:s(function(u){if(u===null||typeof u!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof u);return function(h,f){var d=f.dir||f.root,p=f.base||(f.name||"")+(f.ext||"");return d?d===f.root?d+p:d+"/"+p:p}(0,u)},"format"),parse:s(function(u){a(u);var h={root:"",dir:"",base:"",ext:"",name:""};if(u.length===0)return h;var f,d=u.charCodeAt(0),p=d===47;p?(h.root="/",f=1):f=0;for(var m=-1,g=0,y=-1,v=!0,x=u.length-1,b=0;x>=f;--x)if((d=u.charCodeAt(x))!==47)y===-1&&(v=!1,y=x+1),d===46?m===-1?m=x:b!==1&&(b=1):m!==-1&&(b=-1);else if(!v){g=x+1;break}return m===-1||y===-1||b===0||b===1&&m===y-1&&m===g+1?y!==-1&&(h.base=h.name=g===0&&p?u.slice(1,y):u.slice(g,y)):(g===0&&p?(h.name=u.slice(1,m),h.base=u.slice(1,y)):(h.name=u.slice(g,m),h.base=u.slice(g,y)),h.ext=u.slice(m,y)),g>0?h.dir=u.slice(0,g-1):p&&(h.dir="/"),h},"parse"),sep:"/",delimiter:":",win32:null,posix:null};l.posix=l,i.exports=l}},e={};function r(i){var a=e[i];if(a!==void 0)return a.exports;var o=e[i]={exports:{}};return t[i](o,o.exports,r),o.exports}s(r,"r"),r.d=(i,a)=>{for(var o in a)r.o(a,o)&&!r.o(i,o)&&Object.defineProperty(i,o,{enumerable:!0,get:a[o]})},r.o=(i,a)=>Object.prototype.hasOwnProperty.call(i,a),r.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var n={};(()=>{let i;r.r(n),r.d(n,{URI:s(()=>p,"URI"),Utils:s(()=>R,"Utils")}),typeof process=="object"?i=process.platform==="win32":typeof navigator=="object"&&(i=navigator.userAgent.indexOf("Windows")>=0);let a=/^\w[\w\d+.-]*$/,o=/^\//,l=/^\/\//;function u(D,L){if(!D.scheme&&L)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${D.authority}", path: "${D.path}", query: "${D.query}", fragment: "${D.fragment}"}`);if(D.scheme&&!a.test(D.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(D.path){if(D.authority){if(!o.test(D.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(l.test(D.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}s(u,"s");let h="",f="/",d=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class p{static{s(this,"f")}static isUri(L){return L instanceof p||!!L&&typeof L.authority=="string"&&typeof L.fragment=="string"&&typeof L.path=="string"&&typeof L.query=="string"&&typeof L.scheme=="string"&&typeof L.fsPath=="string"&&typeof L.with=="function"&&typeof L.toString=="function"}scheme;authority;path;query;fragment;constructor(L,P,M,F,I,O=!1){typeof L=="object"?(this.scheme=L.scheme||h,this.authority=L.authority||h,this.path=L.path||h,this.query=L.query||h,this.fragment=L.fragment||h):(this.scheme=function(z,N){return z||N?z:"file"}(L,O),this.authority=P||h,this.path=function(z,N){switch(z){case"https":case"http":case"file":N?N[0]!==f&&(N=f+N):N=f}return N}(this.scheme,M||h),this.query=F||h,this.fragment=I||h,u(this,O))}get fsPath(){return b(this,!1)}with(L){if(!L)return this;let{scheme:P,authority:M,path:F,query:I,fragment:O}=L;return P===void 0?P=this.scheme:P===null&&(P=h),M===void 0?M=this.authority:M===null&&(M=h),F===void 0?F=this.path:F===null&&(F=h),I===void 0?I=this.query:I===null&&(I=h),O===void 0?O=this.fragment:O===null&&(O=h),P===this.scheme&&M===this.authority&&F===this.path&&I===this.query&&O===this.fragment?this:new g(P,M,F,I,O)}static parse(L,P=!1){let M=d.exec(L);return M?new g(M[2]||h,T(M[4]||h),T(M[5]||h),T(M[7]||h),T(M[9]||h),P):new g(h,h,h,h,h)}static file(L){let P=h;if(i&&(L=L.replace(/\\/g,f)),L[0]===f&&L[1]===f){let M=L.indexOf(f,2);M===-1?(P=L.substring(2),L=f):(P=L.substring(2,M),L=L.substring(M)||f)}return new g("file",P,L,h,h)}static from(L){let P=new g(L.scheme,L.authority,L.path,L.query,L.fragment);return u(P,!0),P}toString(L=!1){return k(this,L)}toJSON(){return this}static revive(L){if(L){if(L instanceof p)return L;{let P=new g(L);return P._formatted=L.external,P._fsPath=L._sep===m?L.fsPath:null,P}}return L}}let m=i?1:void 0;class g extends p{static{s(this,"l")}_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=b(this,!1)),this._fsPath}toString(L=!1){return L?k(this,!0):(this._formatted||(this._formatted=k(this,!1)),this._formatted)}toJSON(){let L={$mid:1};return this._fsPath&&(L.fsPath=this._fsPath,L._sep=m),this._formatted&&(L.external=this._formatted),this.path&&(L.path=this.path),this.scheme&&(L.scheme=this.scheme),this.authority&&(L.authority=this.authority),this.query&&(L.query=this.query),this.fragment&&(L.fragment=this.fragment),L}}let y={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function v(D,L,P){let M,F=-1;for(let I=0;I=97&&O<=122||O>=65&&O<=90||O>=48&&O<=57||O===45||O===46||O===95||O===126||L&&O===47||P&&O===91||P&&O===93||P&&O===58)F!==-1&&(M+=encodeURIComponent(D.substring(F,I)),F=-1),M!==void 0&&(M+=D.charAt(I));else{M===void 0&&(M=D.substr(0,I));let z=y[O];z!==void 0?(F!==-1&&(M+=encodeURIComponent(D.substring(F,I)),F=-1),M+=z):F===-1&&(F=I)}}return F!==-1&&(M+=encodeURIComponent(D.substring(F))),M!==void 0?M:D}s(v,"d");function x(D){let L;for(let P=0;P1&&D.scheme==="file"?`//${D.authority}${D.path}`:D.path.charCodeAt(0)===47&&(D.path.charCodeAt(1)>=65&&D.path.charCodeAt(1)<=90||D.path.charCodeAt(1)>=97&&D.path.charCodeAt(1)<=122)&&D.path.charCodeAt(2)===58?L?D.path.substr(1):D.path[1].toLowerCase()+D.path.substr(2):D.path,i&&(P=P.replace(/\//g,"\\")),P}s(b,"m");function k(D,L){let P=L?x:v,M="",{scheme:F,authority:I,path:O,query:z,fragment:N}=D;if(F&&(M+=F,M+=":"),(I||F==="file")&&(M+=f,M+=f),I){let U=I.indexOf("@");if(U!==-1){let $=I.substr(0,U);I=I.substr(U+1),U=$.lastIndexOf(":"),U===-1?M+=P($,!1,!1):(M+=P($.substr(0,U),!1,!1),M+=":",M+=P($.substr(U+1),!1,!0)),M+="@"}I=I.toLowerCase(),U=I.lastIndexOf(":"),U===-1?M+=P(I,!1,!0):(M+=P(I.substr(0,U),!1,!0),M+=I.substr(U))}if(O){if(O.length>=3&&O.charCodeAt(0)===47&&O.charCodeAt(2)===58){let U=O.charCodeAt(1);U>=65&&U<=90&&(O=`/${String.fromCharCode(U+32)}:${O.substr(3)}`)}else if(O.length>=2&&O.charCodeAt(1)===58){let U=O.charCodeAt(0);U>=65&&U<=90&&(O=`${String.fromCharCode(U+32)}:${O.substr(2)}`)}M+=P(O,!0,!1)}return z&&(M+="?",M+=P(z,!1,!1)),N&&(M+="#",M+=L?N:v(N,!1,!1)),M}s(k,"y");function A(D){try{return decodeURIComponent(D)}catch{return D.length>3?D.substr(0,3)+A(D.substr(3)):D}}s(A,"v");let w=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function T(D){return D.match(w)?D.replace(w,L=>A(L)):D}s(T,"C");var C=r(470);let E=C.posix||C,S="/";var R;(function(D){D.joinPath=function(L,...P){return L.with({path:E.join(L.path,...P)})},D.resolvePath=function(L,...P){let M=L.path,F=!1;M[0]!==S&&(M=S+M,F=!0);let I=E.resolve(M,...P);return F&&I[0]===S&&!L.authority&&(I=I.substring(1)),L.with({path:I})},D.dirname=function(L){if(L.path.length===0||L.path===S)return L;let P=E.dirname(L.path);return P.length===1&&P.charCodeAt(0)===46&&(P=""),L.with({path:P})},D.basename=function(L){return E.basename(L.path)},D.extname=function(L){return E.extname(L.path)}})(R||(R={}))})(),Xae=n})();({URI:_s,Utils:ag}=Xae)});var Za,kc=_(()=>{"use strict";NM();(function(t){t.basename=ag.basename,t.dirname=ag.dirname,t.extname=ag.extname,t.joinPath=ag.joinPath,t.resolvePath=ag.resolvePath;function e(n,i){return n?.toString()===i?.toString()}s(e,"equals"),t.equals=e;function r(n,i){let a=typeof n=="string"?n:n.path,o=typeof i=="string"?i:i.path,l=a.split("/").filter(p=>p.length>0),u=o.split("/").filter(p=>p.length>0),h=0;for(;h{"use strict";Yae();sg();No();Es();kc();(function(t){t[t.Changed=0]="Changed",t[t.Parsed=1]="Parsed",t[t.IndexedContent=2]="IndexedContent",t[t.ComputedScopes=3]="ComputedScopes",t[t.Linked=4]="Linked",t[t.IndexedReferences=5]="IndexedReferences",t[t.Validated=6]="Validated"})(un||(un={}));d2=class{static{s(this,"DefaultLangiumDocumentFactory")}constructor(e){this.serviceRegistry=e.ServiceRegistry,this.textDocuments=e.workspace.TextDocuments,this.fileSystemProvider=e.workspace.FileSystemProvider}async fromUri(e,r=cr.CancellationToken.None){let n=await this.fileSystemProvider.readFile(e);return this.createAsync(e,n,r)}fromTextDocument(e,r,n){return r=r??_s.parse(e.uri),n?this.createAsync(r,e,n):this.create(r,e)}fromString(e,r,n){return n?this.createAsync(r,e,n):this.create(r,e)}fromModel(e,r){return this.create(r,{$model:e})}create(e,r){if(typeof r=="string"){let n=this.parse(e,r);return this.createLangiumDocument(n,e,void 0,r)}else if("$model"in r){let n={value:r.$model,parserErrors:[],lexerErrors:[]};return this.createLangiumDocument(n,e)}else{let n=this.parse(e,r.getText());return this.createLangiumDocument(n,e,r)}}async createAsync(e,r,n){if(typeof r=="string"){let i=await this.parseAsync(e,r,n);return this.createLangiumDocument(i,e,void 0,r)}else{let i=await this.parseAsync(e,r.getText(),n);return this.createLangiumDocument(i,e,r)}}createLangiumDocument(e,r,n,i){let a;if(n)a={parseResult:e,uri:r,state:un.Parsed,references:[],textDocument:n};else{let o=this.createTextDocumentGetter(r,i);a={parseResult:e,uri:r,state:un.Parsed,references:[],get textDocument(){return o()}}}return e.value.$document=a,a}async update(e,r){var n,i;let a=(n=e.parseResult.value.$cstNode)===null||n===void 0?void 0:n.root.fullText,o=(i=this.textDocuments)===null||i===void 0?void 0:i.get(e.uri.toString()),l=o?o.getText():await this.fileSystemProvider.readFile(e.uri);if(o)Object.defineProperty(e,"textDocument",{value:o});else{let u=this.createTextDocumentGetter(e.uri,l);Object.defineProperty(e,"textDocument",{get:u})}return a!==l&&(e.parseResult=await this.parseAsync(e.uri,l,r),e.parseResult.value.$document=e),e.state=un.Parsed,e}parse(e,r){return this.serviceRegistry.getServices(e).parser.LangiumParser.parse(r)}parseAsync(e,r,n){return this.serviceRegistry.getServices(e).parser.AsyncParser.parse(r,n)}createTextDocumentGetter(e,r){let n=this.serviceRegistry,i;return()=>i??(i=ig.create(e.toString(),n.getServices(e).LanguageMetaData.languageId,0,r??""))}},p2=class{static{s(this,"DefaultLangiumDocuments")}constructor(e){this.documentMap=new Map,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory}get all(){return Wr(this.documentMap.values())}addDocument(e){let r=e.uri.toString();if(this.documentMap.has(r))throw new Error(`A document with the URI '${r}' is already present.`);this.documentMap.set(r,e)}getDocument(e){let r=e.toString();return this.documentMap.get(r)}async getOrCreateDocument(e,r){let n=this.getDocument(e);return n||(n=await this.langiumDocumentFactory.fromUri(e,r),this.addDocument(n),n)}createDocument(e,r,n){if(n)return this.langiumDocumentFactory.fromString(r,e,n).then(i=>(this.addDocument(i),i));{let i=this.langiumDocumentFactory.fromString(r,e);return this.addDocument(i),i}}hasDocument(e){return this.documentMap.has(e.toString())}invalidateDocument(e){let r=e.toString(),n=this.documentMap.get(r);return n&&(n.state=un.Changed,n.precomputedScopes=void 0,n.references=[],n.diagnostics=void 0),n}deleteDocument(e){let r=e.toString(),n=this.documentMap.get(r);return n&&(n.state=un.Changed,this.documentMap.delete(r)),n}}});var m2,OM=_(()=>{"use strict";No();Do();Ha();Oo();sg();m2=class{static{s(this,"DefaultLinker")}constructor(e){this.reflection=e.shared.AstReflection,this.langiumDocuments=()=>e.shared.workspace.LangiumDocuments,this.scopeProvider=e.references.ScopeProvider,this.astNodeLocator=e.workspace.AstNodeLocator}async link(e,r=cr.CancellationToken.None){for(let n of Io(e.parseResult.value))await Di(r),Cm(n).forEach(i=>this.doLink(i,e))}doLink(e,r){let n=e.reference;if(n._ref===void 0)try{let i=this.getCandidate(e);if(Nd(i))n._ref=i;else if(n._nodeDescription=i,this.langiumDocuments().hasDocument(i.documentUri)){let a=this.loadAstNode(i);n._ref=a??this.createLinkingError(e,i)}}catch(i){n._ref=Object.assign(Object.assign({},e),{message:`An error occurred while resolving reference to '${n.$refText}': ${i}`})}r.references.push(n)}unlink(e){for(let r of e.references)delete r._ref,delete r._nodeDescription;e.references=[]}getCandidate(e){let n=this.scopeProvider.getScope(e).getElement(e.reference.$refText);return n??this.createLinkingError(e)}buildReference(e,r,n,i){let a=this,o={$refNode:n,$refText:i,get ref(){var l;if($n(this._ref))return this._ref;if(NL(this._nodeDescription)){let u=a.loadAstNode(this._nodeDescription);this._ref=u??a.createLinkingError({reference:o,container:e,property:r},this._nodeDescription)}else if(this._ref===void 0){let u=a.getLinkedNode({reference:o,container:e,property:r});if(u.error&&Ai(e).state{"use strict";xl();s(jae,"isNamed");g2=class{static{s(this,"DefaultNameProvider")}getName(e){if(jae(e))return e.name}getNameNode(e){return Nv(e.$cstNode,"name")}}});var y2,BM=_(()=>{"use strict";xl();Do();Ha();gl();Es();kc();y2=class{static{s(this,"DefaultReferences")}constructor(e){this.nameProvider=e.references.NameProvider,this.index=e.shared.workspace.IndexManager,this.nodeLocator=e.workspace.AstNodeLocator}findDeclaration(e){if(e){let r=aR(e),n=e.astNode;if(r&&n){let i=n[r.feature];if(ua(i))return i.ref;if(Array.isArray(i)){for(let a of i)if(ua(a)&&a.$refNode&&a.$refNode.offset<=e.offset&&a.$refNode.end>=e.end)return a.ref}}if(n){let i=this.nameProvider.getNameNode(n);if(i&&(i===e||PL(e,i)))return n}}}findDeclarationNode(e){let r=this.findDeclaration(e);if(r?.$cstNode){let n=this.nameProvider.getNameNode(r);return n??r.$cstNode}}findReferences(e,r){let n=[];if(r.includeDeclaration){let a=this.getReferenceToSelf(e);a&&n.push(a)}let i=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e));return r.documentUri&&(i=i.filter(a=>Za.equals(a.sourceUri,r.documentUri))),n.push(...i),Wr(n)}getReferenceToSelf(e){let r=this.nameProvider.getNameNode(e);if(r){let n=Ai(e),i=this.nodeLocator.getAstNodePath(e);return{sourceUri:n.uri,sourcePath:i,targetUri:n.uri,targetPath:i,segment:Pd(r),local:!0}}}}});var wc,s0,og=_(()=>{"use strict";Es();wc=class{static{s(this,"MultiMap")}constructor(e){if(this.map=new Map,e)for(let[r,n]of e)this.add(r,n)}get size(){return wm.sum(Wr(this.map.values()).map(e=>e.length))}clear(){this.map.clear()}delete(e,r){if(r===void 0)return this.map.delete(e);{let n=this.map.get(e);if(n){let i=n.indexOf(r);if(i>=0)return n.length===1?this.map.delete(e):n.splice(i,1),!0}return!1}}get(e){var r;return(r=this.map.get(e))!==null&&r!==void 0?r:[]}has(e,r){if(r===void 0)return this.map.has(e);{let n=this.map.get(e);return n?n.indexOf(r)>=0:!1}}add(e,r){return this.map.has(e)?this.map.get(e).push(r):this.map.set(e,[r]),this}addAll(e,r){return this.map.has(e)?this.map.get(e).push(...r):this.map.set(e,Array.from(r)),this}forEach(e){this.map.forEach((r,n)=>r.forEach(i=>e(i,n,this)))}[Symbol.iterator](){return this.entries().iterator()}entries(){return Wr(this.map.entries()).flatMap(([e,r])=>r.map(n=>[e,n]))}keys(){return Wr(this.map.keys())}values(){return Wr(this.map.values()).flat()}entriesGroupedByKey(){return Wr(this.map.entries())}},s0=class{static{s(this,"BiMap")}get size(){return this.map.size}constructor(e){if(this.map=new Map,this.inverse=new Map,e)for(let[r,n]of e)this.set(r,n)}clear(){this.map.clear(),this.inverse.clear()}set(e,r){return this.map.set(e,r),this.inverse.set(r,e),this}get(e){return this.map.get(e)}getKey(e){return this.inverse.get(e)}delete(e){let r=this.map.get(e);return r!==void 0?(this.map.delete(e),this.inverse.delete(r),!0):!1}}});var v2,FM=_(()=>{"use strict";No();Ha();og();Oo();v2=class{static{s(this,"DefaultScopeComputation")}constructor(e){this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider}async computeExports(e,r=cr.CancellationToken.None){return this.computeExportsForNode(e.parseResult.value,e,void 0,r)}async computeExportsForNode(e,r,n=Av,i=cr.CancellationToken.None){let a=[];this.exportNode(e,a,r);for(let o of n(e))await Di(i),this.exportNode(o,a,r);return a}exportNode(e,r,n){let i=this.nameProvider.getName(e);i&&r.push(this.descriptions.createDescription(e,i,n))}async computeLocalScopes(e,r=cr.CancellationToken.None){let n=e.parseResult.value,i=new wc;for(let a of gc(n))await Di(r),this.processNode(a,e,i);return i}processNode(e,r,n){let i=e.$container;if(i){let a=this.nameProvider.getName(e);a&&n.add(i,this.descriptions.createDescription(e,a,r))}}}});var lg,x2,_Ie,zM=_(()=>{"use strict";Es();lg=class{static{s(this,"StreamScope")}constructor(e,r,n){var i;this.elements=e,this.outerScope=r,this.caseInsensitive=(i=n?.caseInsensitive)!==null&&i!==void 0?i:!1}getAllElements(){return this.outerScope?this.elements.concat(this.outerScope.getAllElements()):this.elements}getElement(e){let r=this.caseInsensitive?this.elements.find(n=>n.name.toLowerCase()===e.toLowerCase()):this.elements.find(n=>n.name===e);if(r)return r;if(this.outerScope)return this.outerScope.getElement(e)}},x2=class{static{s(this,"MapScope")}constructor(e,r,n){var i;this.elements=new Map,this.caseInsensitive=(i=n?.caseInsensitive)!==null&&i!==void 0?i:!1;for(let a of e){let o=this.caseInsensitive?a.name.toLowerCase():a.name;this.elements.set(o,a)}this.outerScope=r}getElement(e){let r=this.caseInsensitive?e.toLowerCase():e,n=this.elements.get(r);if(n)return n;if(this.outerScope)return this.outerScope.getElement(e)}getAllElements(){let e=Wr(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}},_Ie={getElement(){},getAllElements(){return wv}}});var cg,b2,o0,nw,ug,iw=_(()=>{"use strict";cg=class{static{s(this,"DisposableCache")}constructor(){this.toDispose=[],this.isDisposed=!1}onDispose(e){this.toDispose.push(e)}dispose(){this.throwIfDisposed(),this.clear(),this.isDisposed=!0,this.toDispose.forEach(e=>e.dispose())}throwIfDisposed(){if(this.isDisposed)throw new Error("This cache has already been disposed")}},b2=class extends cg{static{s(this,"SimpleCache")}constructor(){super(...arguments),this.cache=new Map}has(e){return this.throwIfDisposed(),this.cache.has(e)}set(e,r){this.throwIfDisposed(),this.cache.set(e,r)}get(e,r){if(this.throwIfDisposed(),this.cache.has(e))return this.cache.get(e);if(r){let n=r();return this.cache.set(e,n),n}else return}delete(e){return this.throwIfDisposed(),this.cache.delete(e)}clear(){this.throwIfDisposed(),this.cache.clear()}},o0=class extends cg{static{s(this,"ContextCache")}constructor(e){super(),this.cache=new Map,this.converter=e??(r=>r)}has(e,r){return this.throwIfDisposed(),this.cacheForContext(e).has(r)}set(e,r,n){this.throwIfDisposed(),this.cacheForContext(e).set(r,n)}get(e,r,n){this.throwIfDisposed();let i=this.cacheForContext(e);if(i.has(r))return i.get(r);if(n){let a=n();return i.set(r,a),a}else return}delete(e,r){return this.throwIfDisposed(),this.cacheForContext(e).delete(r)}clear(e){if(this.throwIfDisposed(),e){let r=this.converter(e);this.cache.delete(r)}else this.cache.clear()}cacheForContext(e){let r=this.converter(e),n=this.cache.get(r);return n||(n=new Map,this.cache.set(r,n)),n}},nw=class extends o0{static{s(this,"DocumentCache")}constructor(e){super(r=>r.toString()),this.onDispose(e.workspace.DocumentBuilder.onUpdate((r,n)=>{let i=r.concat(n);for(let a of i)this.clear(a)}))}},ug=class extends b2{static{s(this,"WorkspaceCache")}constructor(e){super(),this.onDispose(e.workspace.DocumentBuilder.onUpdate(()=>{this.clear()}))}}});var k2,$M=_(()=>{"use strict";zM();Ha();Es();iw();k2=class{static{s(this,"DefaultScopeProvider")}constructor(e){this.reflection=e.shared.AstReflection,this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider,this.indexManager=e.shared.workspace.IndexManager,this.globalScopeCache=new ug(e.shared)}getScope(e){let r=[],n=this.reflection.getReferenceType(e),i=Ai(e.container).precomputedScopes;if(i){let o=e.container;do{let l=i.get(o);l.length>0&&r.push(Wr(l).filter(u=>this.reflection.isSubtype(u.type,n))),o=o.$container}while(o)}let a=this.getGlobalScope(n,e);for(let o=r.length-1;o>=0;o--)a=this.createScope(r[o],a);return a}createScope(e,r,n){return new lg(Wr(e),r,n)}createScopeForNodes(e,r,n){let i=Wr(e).map(a=>{let o=this.nameProvider.getName(a);if(o)return this.descriptions.createDescription(a,o)}).nonNullable();return new lg(i,r,n)}getGlobalScope(e,r){return this.globalScopeCache.get(e,()=>new x2(this.indexManager.allElements(e)))}}});function GM(t){return typeof t.$comment=="string"}function Kae(t){return typeof t=="object"&&!!t&&("$ref"in t||"$error"in t)}var w2,aw=_(()=>{"use strict";NM();Do();Ha();xl();s(GM,"isAstNodeWithComment");s(Kae,"isIntermediateReference");w2=class{static{s(this,"DefaultJsonSerializer")}constructor(e){this.ignoreProperties=new Set(["$container","$containerProperty","$containerIndex","$document","$cstNode"]),this.langiumDocuments=e.shared.workspace.LangiumDocuments,this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider,this.commentProvider=e.documentation.CommentProvider}serialize(e,r={}){let n=r?.replacer,i=s((o,l)=>this.replacer(o,l,r),"defaultReplacer"),a=n?(o,l)=>n(o,l,i):i;try{return this.currentDocument=Ai(e),JSON.stringify(e,a,r?.space)}finally{this.currentDocument=void 0}}deserialize(e,r={}){let n=JSON.parse(e);return this.linkNode(n,n,r),n}replacer(e,r,{refText:n,sourceText:i,textRegions:a,comments:o,uriConverter:l}){var u,h,f,d;if(!this.ignoreProperties.has(e))if(ua(r)){let p=r.ref,m=n?r.$refText:void 0;if(p){let g=Ai(p),y="";this.currentDocument&&this.currentDocument!==g&&(l?y=l(g.uri,r):y=g.uri.toString());let v=this.astNodeLocator.getAstNodePath(p);return{$ref:`${y}#${v}`,$refText:m}}else return{$error:(h=(u=r.error)===null||u===void 0?void 0:u.message)!==null&&h!==void 0?h:"Could not resolve reference",$refText:m}}else if($n(r)){let p;if(a&&(p=this.addAstNodeRegionWithAssignmentsTo(Object.assign({},r)),(!e||r.$document)&&p?.$textRegion&&(p.$textRegion.documentURI=(f=this.currentDocument)===null||f===void 0?void 0:f.uri.toString())),i&&!e&&(p??(p=Object.assign({},r)),p.$sourceText=(d=r.$cstNode)===null||d===void 0?void 0:d.text),o){p??(p=Object.assign({},r));let m=this.commentProvider.getComment(r);m&&(p.$comment=m.replace(/\r/g,""))}return p??r}else return r}addAstNodeRegionWithAssignmentsTo(e){let r=s(n=>({offset:n.offset,end:n.end,length:n.length,range:n.range}),"createDocumentSegment");if(e.$cstNode){let n=e.$textRegion=r(e.$cstNode),i=n.assignments={};return Object.keys(e).filter(a=>!a.startsWith("$")).forEach(a=>{let o=tR(e.$cstNode,a).map(r);o.length!==0&&(i[a]=o)}),e}}linkNode(e,r,n,i,a,o){for(let[u,h]of Object.entries(e))if(Array.isArray(h))for(let f=0;f{"use strict";kc();T2=class{static{s(this,"DefaultServiceRegistry")}register(e){if(!this.singleton&&!this.map){this.singleton=e;return}if(!this.map&&(this.map={},this.singleton)){for(let r of this.singleton.LanguageMetaData.fileExtensions)this.map[r]=this.singleton;this.singleton=void 0}for(let r of e.LanguageMetaData.fileExtensions)this.map[r]!==void 0&&this.map[r]!==e&&console.warn(`The file extension ${r} is used by multiple languages. It is now assigned to '${e.LanguageMetaData.languageId}'.`),this.map[r]=e}getServices(e){if(this.singleton!==void 0)return this.singleton;if(this.map===void 0)throw new Error("The service registry is empty. Use `register` to register the services of a language.");let r=Za.extname(e),n=this.map[r];if(!n)throw new Error(`The service registry contains no services for the extension '${r}'.`);return n}get all(){return this.singleton!==void 0?[this.singleton]:this.map!==void 0?Object.values(this.map):[]}}});function sw(t){return{code:t}}var hg,E2,C2=_(()=>{"use strict";og();Oo();Es();s(sw,"diagnosticData");(function(t){t.all=["fast","slow","built-in"]})(hg||(hg={}));E2=class{static{s(this,"ValidationRegistry")}constructor(e){this.entries=new wc,this.reflection=e.shared.AstReflection}register(e,r=this,n="fast"){if(n==="built-in")throw new Error("The 'built-in' category is reserved for lexer, parser, and linker errors.");for(let[i,a]of Object.entries(e)){let o=a;if(Array.isArray(o))for(let l of o){let u={check:this.wrapValidationException(l,r),category:n};this.addEntry(i,u)}else if(typeof o=="function"){let l={check:this.wrapValidationException(o,r),category:n};this.addEntry(i,l)}}}wrapValidationException(e,r){return async(n,i,a)=>{try{await e.call(r,n,i,a)}catch(o){if(ef(o))throw o;console.error("An error occurred during validation:",o);let l=o instanceof Error?o.message:String(o);o instanceof Error&&o.stack&&console.error(o.stack),i("error","An error occurred during validation: "+l,{node:n})}}}addEntry(e,r){if(e==="AstNode"){this.entries.add("AstNode",r);return}for(let n of this.reflection.getAllSubTypes(e))this.entries.add(n,r)}getChecks(e,r){let n=Wr(this.entries.get(e)).concat(this.entries.get("AstNode"));return r&&(n=n.filter(i=>r.includes(i.category))),n.map(i=>i.check)}}});function Qae(t){if(t.range)return t.range;let e;return typeof t.property=="string"?e=Nv(t.node.$cstNode,t.property,t.index):typeof t.keyword=="string"&&(e=nR(t.node.$cstNode,t.keyword,t.index)),e??(e=t.node.$cstNode),e?e.range:{start:{line:0,character:0},end:{line:0,character:0}}}function ow(t){switch(t){case"error":return 1;case"warning":return 2;case"info":return 3;case"hint":return 4;default:throw new Error("Invalid diagnostic severity: "+t)}}var S2,Nu,UM=_(()=>{"use strict";No();xl();Ha();gl();Oo();C2();S2=class{static{s(this,"DefaultDocumentValidator")}constructor(e){this.validationRegistry=e.validation.ValidationRegistry,this.metadata=e.LanguageMetaData}async validateDocument(e,r={},n=cr.CancellationToken.None){let i=e.parseResult,a=[];if(await Di(n),(!r.categories||r.categories.includes("built-in"))&&(this.processLexingErrors(i,a,r),r.stopAfterLexingErrors&&a.some(o=>{var l;return((l=o.data)===null||l===void 0?void 0:l.code)===Nu.LexingError})||(this.processParsingErrors(i,a,r),r.stopAfterParsingErrors&&a.some(o=>{var l;return((l=o.data)===null||l===void 0?void 0:l.code)===Nu.ParsingError}))||(this.processLinkingErrors(e,a,r),r.stopAfterLinkingErrors&&a.some(o=>{var l;return((l=o.data)===null||l===void 0?void 0:l.code)===Nu.LinkingError}))))return a;try{a.push(...await this.validateAst(i.value,r,n))}catch(o){if(ef(o))throw o;console.error("An error occurred during validation:",o)}return await Di(n),a}processLexingErrors(e,r,n){for(let i of e.lexerErrors){let a={severity:ow("error"),range:{start:{line:i.line-1,character:i.column-1},end:{line:i.line-1,character:i.column+i.length-1}},message:i.message,data:sw(Nu.LexingError),source:this.getSource()};r.push(a)}}processParsingErrors(e,r,n){for(let i of e.parserErrors){let a;if(isNaN(i.token.startOffset)){if("previousToken"in i){let o=i.previousToken;if(isNaN(o.startOffset)){let l={line:0,character:0};a={start:l,end:l}}else{let l={line:o.endLine-1,character:o.endColumn};a={start:l,end:l}}}}else a=Tm(i.token);if(a){let o={severity:ow("error"),range:a,message:i.message,data:sw(Nu.ParsingError),source:this.getSource()};r.push(o)}}}processLinkingErrors(e,r,n){for(let i of e.references){let a=i.error;if(a){let o={node:a.container,property:a.property,index:a.index,data:{code:Nu.LinkingError,containerType:a.container.$type,property:a.property,refText:a.reference.$refText}};r.push(this.toDiagnostic("error",a.message,o))}}}async validateAst(e,r,n=cr.CancellationToken.None){let i=[],a=s((o,l,u)=>{i.push(this.toDiagnostic(o,l,u))},"acceptor");return await Promise.all(Io(e).map(async o=>{await Di(n);let l=this.validationRegistry.getChecks(o.$type,r.categories);for(let u of l)await u(o,a,n)})),i}toDiagnostic(e,r,n){return{message:r,range:Qae(n),severity:ow(e),code:n.code,codeDescription:n.codeDescription,tags:n.tags,relatedInformation:n.relatedInformation,data:n.data,source:this.getSource()}}getSource(){return this.metadata.languageId}};s(Qae,"getDiagnosticRange");s(ow,"toDiagnosticSeverity");(function(t){t.LexingError="lexing-error",t.ParsingError="parsing-error",t.LinkingError="linking-error"})(Nu||(Nu={}))});var _2,A2,qM=_(()=>{"use strict";No();Do();Ha();gl();Oo();kc();_2=class{static{s(this,"DefaultAstNodeDescriptionProvider")}constructor(e){this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider}createDescription(e,r,n=Ai(e)){r??(r=this.nameProvider.getName(e));let i=this.astNodeLocator.getAstNodePath(e);if(!r)throw new Error(`Node at path ${i} has no name.`);let a,o=s(()=>{var l;return a??(a=Pd((l=this.nameProvider.getNameNode(e))!==null&&l!==void 0?l:e.$cstNode))},"nameSegmentGetter");return{node:e,name:r,get nameSegment(){return o()},selectionSegment:Pd(e.$cstNode),type:e.$type,documentUri:n.uri,path:i}}},A2=class{static{s(this,"DefaultReferenceDescriptionProvider")}constructor(e){this.nodeLocator=e.workspace.AstNodeLocator}async createDescriptions(e,r=cr.CancellationToken.None){let n=[],i=e.parseResult.value;for(let a of Io(i))await Di(r),Cm(a).filter(o=>!Nd(o)).forEach(o=>{let l=this.createDescription(o);l&&n.push(l)});return n}createDescription(e){let r=e.reference.$nodeDescription,n=e.reference.$refNode;if(!r||!n)return;let i=Ai(e.container).uri;return{sourceUri:i,sourcePath:this.nodeLocator.getAstNodePath(e.container),targetUri:r.documentUri,targetPath:r.path,segment:Pd(n),local:Za.equals(r.documentUri,i)}}}});var L2,WM=_(()=>{"use strict";L2=class{static{s(this,"DefaultAstNodeLocator")}constructor(){this.segmentSeparator="/",this.indexSeparator="@"}getAstNodePath(e){if(e.$container){let r=this.getAstNodePath(e.$container),n=this.getPathSegment(e);return r+this.segmentSeparator+n}return""}getPathSegment({$containerProperty:e,$containerIndex:r}){if(!e)throw new Error("Missing '$containerProperty' in AST node.");return r!==void 0?e+this.indexSeparator+r:e}getAstNode(e,r){return r.split(this.segmentSeparator).reduce((i,a)=>{if(!i||a.length===0)return i;let o=a.indexOf(this.indexSeparator);if(o>0){let l=a.substring(0,o),u=parseInt(a.substring(o+1)),h=i[l];return h?.[u]}return i[a]},e)}}});var D2,HM=_(()=>{"use strict";Oo();D2=class{static{s(this,"DefaultConfigurationProvider")}constructor(e){this._ready=new Qa,this.settings={},this.workspaceConfig=!1,this.serviceRegistry=e.ServiceRegistry}get ready(){return this._ready.promise}initialize(e){var r,n;this.workspaceConfig=(n=(r=e.capabilities.workspace)===null||r===void 0?void 0:r.configuration)!==null&&n!==void 0?n:!1}async initialized(e){if(this.workspaceConfig){if(e.register){let r=this.serviceRegistry.all;e.register({section:r.map(n=>this.toSectionName(n.LanguageMetaData.languageId))})}if(e.fetchConfiguration){let r=this.serviceRegistry.all.map(i=>({section:this.toSectionName(i.LanguageMetaData.languageId)})),n=await e.fetchConfiguration(r);r.forEach((i,a)=>{this.updateSectionConfiguration(i.section,n[a])})}}this._ready.resolve()}updateConfiguration(e){e.settings&&Object.keys(e.settings).forEach(r=>{this.updateSectionConfiguration(r,e.settings[r])})}updateSectionConfiguration(e,r){this.settings[e]=r}async getConfiguration(e,r){await this.ready;let n=this.toSectionName(e);if(this.settings[n])return this.settings[n][r]}toSectionName(e){return`${e}`}}});var l0,YM=_(()=>{"use strict";(function(t){function e(r){return{dispose:s(async()=>await r(),"dispose")}}s(e,"create"),t.create=e})(l0||(l0={}))});var R2,XM=_(()=>{"use strict";No();YM();og();Oo();Es();C2();sg();R2=class{static{s(this,"DefaultDocumentBuilder")}constructor(e){this.updateBuildOptions={validation:{categories:["built-in","fast"]}},this.updateListeners=[],this.buildPhaseListeners=new wc,this.buildState=new Map,this.documentBuildWaiters=new Map,this.currentState=un.Changed,this.langiumDocuments=e.workspace.LangiumDocuments,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.indexManager=e.workspace.IndexManager,this.serviceRegistry=e.ServiceRegistry}async build(e,r={},n=cr.CancellationToken.None){var i,a;for(let o of e){let l=o.uri.toString();if(o.state===un.Validated){if(typeof r.validation=="boolean"&&r.validation)o.state=un.IndexedReferences,o.diagnostics=void 0,this.buildState.delete(l);else if(typeof r.validation=="object"){let u=this.buildState.get(l),h=(i=u?.result)===null||i===void 0?void 0:i.validationChecks;if(h){let d=((a=r.validation.categories)!==null&&a!==void 0?a:hg.all).filter(p=>!h.includes(p));d.length>0&&(this.buildState.set(l,{completed:!1,options:{validation:Object.assign(Object.assign({},r.validation),{categories:d})},result:u.result}),o.state=un.IndexedReferences)}}}else this.buildState.delete(l)}this.currentState=un.Changed,await this.emitUpdate(e.map(o=>o.uri),[]),await this.buildDocuments(e,r,n)}async update(e,r,n=cr.CancellationToken.None){this.currentState=un.Changed;for(let o of r)this.langiumDocuments.deleteDocument(o),this.buildState.delete(o.toString()),this.indexManager.remove(o);for(let o of e){if(!this.langiumDocuments.invalidateDocument(o)){let u=this.langiumDocumentFactory.fromModel({$type:"INVALID"},o);u.state=un.Changed,this.langiumDocuments.addDocument(u)}this.buildState.delete(o.toString())}let i=Wr(e).concat(r).map(o=>o.toString()).toSet();this.langiumDocuments.all.filter(o=>!i.has(o.uri.toString())&&this.shouldRelink(o,i)).forEach(o=>{this.serviceRegistry.getServices(o.uri).references.Linker.unlink(o),o.state=Math.min(o.state,un.ComputedScopes),o.diagnostics=void 0}),await this.emitUpdate(e,r),await Di(n);let a=this.langiumDocuments.all.filter(o=>{var l;return o.staten(e,r)))}shouldRelink(e,r){return e.references.some(n=>n.error!==void 0)?!0:this.indexManager.isAffected(e,r)}onUpdate(e){return this.updateListeners.push(e),l0.create(()=>{let r=this.updateListeners.indexOf(e);r>=0&&this.updateListeners.splice(r,1)})}async buildDocuments(e,r,n){this.prepareBuild(e,r),await this.runCancelable(e,un.Parsed,n,a=>this.langiumDocumentFactory.update(a,n)),await this.runCancelable(e,un.IndexedContent,n,a=>this.indexManager.updateContent(a,n)),await this.runCancelable(e,un.ComputedScopes,n,async a=>{let o=this.serviceRegistry.getServices(a.uri).references.ScopeComputation;a.precomputedScopes=await o.computeLocalScopes(a,n)}),await this.runCancelable(e,un.Linked,n,a=>this.serviceRegistry.getServices(a.uri).references.Linker.link(a,n)),await this.runCancelable(e,un.IndexedReferences,n,a=>this.indexManager.updateReferences(a,n));let i=e.filter(a=>this.shouldValidate(a));await this.runCancelable(i,un.Validated,n,a=>this.validate(a,n));for(let a of e){let o=this.buildState.get(a.uri.toString());o&&(o.completed=!0)}}prepareBuild(e,r){for(let n of e){let i=n.uri.toString(),a=this.buildState.get(i);(!a||a.completed)&&this.buildState.set(i,{completed:!1,options:r,result:a?.result})}}async runCancelable(e,r,n,i){let a=e.filter(o=>o.state{this.buildPhaseListeners.delete(e,r)})}waitUntil(e,r,n){let i;if(r&&"path"in r?i=r:n=r,n??(n=cr.CancellationToken.None),i){let a=this.langiumDocuments.getDocument(i);if(a&&a.state>e)return Promise.resolve(i)}return this.currentState>=e?Promise.resolve(void 0):n.isCancellationRequested?Promise.reject(bc):new Promise((a,o)=>{let l=this.onBuildPhase(e,()=>{if(l.dispose(),u.dispose(),i){let h=this.langiumDocuments.getDocument(i);a(h?.uri)}else a(void 0)}),u=n.onCancellationRequested(()=>{l.dispose(),u.dispose(),o(bc)})})}async notifyBuildPhase(e,r,n){if(e.length===0)return;let i=this.buildPhaseListeners.get(r);for(let a of i)await Di(n),await a(e,n)}shouldValidate(e){return!!this.getBuildOptions(e).validation}async validate(e,r){var n,i;let a=this.serviceRegistry.getServices(e.uri).validation.DocumentValidator,o=this.getBuildOptions(e).validation,l=typeof o=="object"?o:void 0,u=await a.validateDocument(e,l,r);e.diagnostics?e.diagnostics.push(...u):e.diagnostics=u;let h=this.buildState.get(e.uri.toString());if(h){(n=h.result)!==null&&n!==void 0||(h.result={});let f=(i=l?.categories)!==null&&i!==void 0?i:hg.all;h.result.validationChecks?h.result.validationChecks.push(...f):h.result.validationChecks=[...f]}}getBuildOptions(e){var r,n;return(n=(r=this.buildState.get(e.uri.toString()))===null||r===void 0?void 0:r.options)!==null&&n!==void 0?n:{}}}});var M2,jM=_(()=>{"use strict";Ha();iw();No();Es();kc();M2=class{static{s(this,"DefaultIndexManager")}constructor(e){this.symbolIndex=new Map,this.symbolByTypeIndex=new o0,this.referenceIndex=new Map,this.documents=e.workspace.LangiumDocuments,this.serviceRegistry=e.ServiceRegistry,this.astReflection=e.AstReflection}findAllReferences(e,r){let n=Ai(e).uri,i=[];return this.referenceIndex.forEach(a=>{a.forEach(o=>{Za.equals(o.targetUri,n)&&o.targetPath===r&&i.push(o)})}),Wr(i)}allElements(e,r){let n=Wr(this.symbolIndex.keys());return r&&(n=n.filter(i=>!r||r.has(i))),n.map(i=>this.getFileDescriptions(i,e)).flat()}getFileDescriptions(e,r){var n;return r?this.symbolByTypeIndex.get(e,r,()=>{var a;return((a=this.symbolIndex.get(e))!==null&&a!==void 0?a:[]).filter(l=>this.astReflection.isSubtype(l.type,r))}):(n=this.symbolIndex.get(e))!==null&&n!==void 0?n:[]}remove(e){let r=e.toString();this.symbolIndex.delete(r),this.symbolByTypeIndex.clear(r),this.referenceIndex.delete(r)}async updateContent(e,r=cr.CancellationToken.None){let i=await this.serviceRegistry.getServices(e.uri).references.ScopeComputation.computeExports(e,r),a=e.uri.toString();this.symbolIndex.set(a,i),this.symbolByTypeIndex.clear(a)}async updateReferences(e,r=cr.CancellationToken.None){let i=await this.serviceRegistry.getServices(e.uri).workspace.ReferenceDescriptionProvider.createDescriptions(e,r);this.referenceIndex.set(e.uri.toString(),i)}isAffected(e,r){let n=this.referenceIndex.get(e.uri.toString());return n?n.some(i=>!i.local&&r.has(i.targetUri.toString())):!1}}});var I2,KM=_(()=>{"use strict";No();Oo();kc();I2=class{static{s(this,"DefaultWorkspaceManager")}constructor(e){this.initialBuildOptions={},this._ready=new Qa,this.serviceRegistry=e.ServiceRegistry,this.langiumDocuments=e.workspace.LangiumDocuments,this.documentBuilder=e.workspace.DocumentBuilder,this.fileSystemProvider=e.workspace.FileSystemProvider,this.mutex=e.workspace.WorkspaceLock}get ready(){return this._ready.promise}initialize(e){var r;this.folders=(r=e.workspaceFolders)!==null&&r!==void 0?r:void 0}initialized(e){return this.mutex.write(r=>{var n;return this.initializeWorkspace((n=this.folders)!==null&&n!==void 0?n:[],r)})}async initializeWorkspace(e,r=cr.CancellationToken.None){let n=await this.performStartup(e);await Di(r),await this.documentBuilder.build(n,this.initialBuildOptions,r)}async performStartup(e){let r=this.serviceRegistry.all.flatMap(a=>a.LanguageMetaData.fileExtensions),n=[],i=s(a=>{n.push(a),this.langiumDocuments.hasDocument(a.uri)||this.langiumDocuments.addDocument(a)},"collector");return await this.loadAdditionalDocuments(e,i),await Promise.all(e.map(a=>[a,this.getRootFolder(a)]).map(async a=>this.traverseFolder(...a,r,i))),this._ready.resolve(),n}loadAdditionalDocuments(e,r){return Promise.resolve()}getRootFolder(e){return _s.parse(e.uri)}async traverseFolder(e,r,n,i){let a=await this.fileSystemProvider.readDirectory(r);await Promise.all(a.map(async o=>{if(this.includeEntry(e,o,n)){if(o.isDirectory)await this.traverseFolder(e,o.uri,n,i);else if(o.isFile){let l=await this.langiumDocuments.getOrCreateDocument(o.uri);i(l)}}}))}includeEntry(e,r,n){let i=Za.basename(r.uri);if(i.startsWith("."))return!1;if(r.isDirectory)return i!=="node_modules"&&i!=="out";if(r.isFile){let a=Za.extname(r.uri);return n.includes(a)}return!1}}});function Zae(t){return Array.isArray(t)&&(t.length===0||"name"in t[0])}function ZM(t){return t&&"modes"in t&&"defaultMode"in t}function QM(t){return!Zae(t)&&!ZM(t)}var N2,JM=_(()=>{"use strict";Zd();N2=class{static{s(this,"DefaultLexer")}constructor(e){let r=e.parser.TokenBuilder.buildTokens(e.Grammar,{caseInsensitive:e.LanguageMetaData.caseInsensitive});this.tokenTypes=this.toTokenTypeDictionary(r);let n=QM(r)?Object.values(r):r;this.chevrotainLexer=new jn(n,{positionTracking:"full"})}get definition(){return this.tokenTypes}tokenize(e){var r;let n=this.chevrotainLexer.tokenize(e);return{tokens:n.tokens,errors:n.errors,hidden:(r=n.groups.hidden)!==null&&r!==void 0?r:[]}}toTokenTypeDictionary(e){if(QM(e))return e;let r=ZM(e)?Object.values(e.modes).flat():e,n={};return r.forEach(i=>n[i.name]=i),n}};s(Zae,"isTokenTypeArray");s(ZM,"isIMultiModeLexerDefinition");s(QM,"isTokenTypeDictionary")});function rI(t,e,r){let n,i;typeof t=="string"?(i=e,n=r):(i=t.range.start,n=e),i||(i=Pr.create(0,0));let a=tse(t),o=iI(n),l=LIe({lines:a,position:i,options:o});return NIe({index:0,tokens:l,position:i})}function nI(t,e){let r=iI(e),n=tse(t);if(n.length===0)return!1;let i=n[0],a=n[n.length-1],o=r.start,l=r.end;return!!o?.exec(i)&&!!l?.exec(a)}function tse(t){let e="";return typeof t=="string"?e=t:e=t.text,e.split(YD)}function LIe(t){var e,r,n;let i=[],a=t.position.line,o=t.position.character;for(let l=0;l=f.length){if(i.length>0){let m=Pr.create(a,o);i.push({type:"break",content:"",range:gr.create(m,m)})}}else{Jae.lastIndex=d;let m=Jae.exec(f);if(m){let g=m[0],y=m[1],v=Pr.create(a,o+d),x=Pr.create(a,o+d+g.length);i.push({type:"tag",content:y,range:gr.create(v,x)}),d+=g.length,d=tI(f,d)}if(d0&&i[i.length-1].type==="break"?i.slice(0,-1):i}function DIe(t,e,r,n){let i=[];if(t.length===0){let a=Pr.create(r,n),o=Pr.create(r,n+e.length);i.push({type:"text",content:e,range:gr.create(a,o)})}else{let a=0;for(let l of t){let u=l.index,h=e.substring(a,u);h.length>0&&i.push({type:"text",content:e.substring(a,u),range:gr.create(Pr.create(r,a+n),Pr.create(r,u+n))});let f=h.length+1,d=l[1];if(i.push({type:"inline-tag",content:d,range:gr.create(Pr.create(r,a+f+n),Pr.create(r,a+f+d.length+n))}),f+=d.length,l.length===4){f+=l[2].length;let p=l[3];i.push({type:"text",content:p,range:gr.create(Pr.create(r,a+f+n),Pr.create(r,a+f+p.length+n))})}else i.push({type:"text",content:"",range:gr.create(Pr.create(r,a+f+n),Pr.create(r,a+f+n))});a=u+l[0].length}let o=e.substring(a);o.length>0&&i.push({type:"text",content:o,range:gr.create(Pr.create(r,a+n),Pr.create(r,a+n+o.length))})}return i}function tI(t,e){let r=t.substring(e).match(RIe);return r?e+r.index:t.length}function IIe(t){let e=t.match(MIe);if(e&&typeof e.index=="number")return e.index}function NIe(t){var e,r,n,i;let a=Pr.create(t.position.line,t.position.character);if(t.tokens.length===0)return new lw([],gr.create(a,a));let o=[];for(;t.index0){let u=tI(e,a);o=e.substring(u),e=e.substring(0,a)}return(t==="linkcode"||t==="link"&&r.link==="code")&&(o=`\`${o}\``),(i=(n=r.renderLink)===null||n===void 0?void 0:n.call(r,e,o))!==null&&i!==void 0?i:zIe(e,o)}}function zIe(t,e){try{return _s.parse(t,!0),`[${e}](${t})`}catch{return t}}function ese(t){return t.endsWith(`
`)?`
`:`
`}var Jae,AIe,RIe,MIe,lw,O2,P2,cw,aI=_(()=>{"use strict";hM();_m();kc();s(rI,"parseJSDoc");s(nI,"isJSDoc");s(tse,"getLines");Jae=/\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy,AIe=/\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu;s(LIe,"tokenize");s(DIe,"buildInlineTokens");RIe=/\S/,MIe=/\s*$/;s(tI,"skipWhitespace");s(IIe,"lastCharacter");s(NIe,"parseJSDocComment");s(OIe,"parseJSDocElement");s(PIe,"appendEmptyLine");s(rse,"parseJSDocText");s(BIe,"parseJSDocInline");s(nse,"parseJSDocTag");s(ise,"parseJSDocLine");s(iI,"normalizeOptions");s(eI,"normalizeOption");lw=class{static{s(this,"JSDocCommentImpl")}constructor(e,r){this.elements=e,this.range=r}getTag(e){return this.getAllTags().find(r=>r.name===e)}getTags(e){return this.getAllTags().filter(r=>r.name===e)}getAllTags(){return this.elements.filter(e=>"name"in e)}toString(){let e="";for(let r of this.elements)if(e.length===0)e=r.toString();else{let n=r.toString();e+=ese(e)+n}return e.trim()}toMarkdown(e){let r="";for(let n of this.elements)if(r.length===0)r=n.toMarkdown(e);else{let i=n.toMarkdown(e);r+=ese(r)+i}return r.trim()}},O2=class{static{s(this,"JSDocTagImpl")}constructor(e,r,n,i){this.name=e,this.content=r,this.inline=n,this.range=i}toString(){let e=`@${this.name}`,r=this.content.toString();return this.content.inlines.length===1?e=`${e} ${r}`:this.content.inlines.length>1&&(e=`${e}
${r}`),this.inline?`{${e}}`:e}toMarkdown(e){var r,n;return(n=(r=e?.renderTag)===null||r===void 0?void 0:r.call(e,this))!==null&&n!==void 0?n:this.toMarkdownDefault(e)}toMarkdownDefault(e){let r=this.content.toMarkdown(e);if(this.inline){let a=FIe(this.name,r,e??{});if(typeof a=="string")return a}let n="";e?.tag==="italic"||e?.tag===void 0?n="*":e?.tag==="bold"?n="**":e?.tag==="bold-italic"&&(n="***");let i=`${n}@${this.name}${n}`;return this.content.inlines.length===1?i=`${i} \u2014 ${r}`:this.content.inlines.length>1&&(i=`${i}
${r}`),this.inline?`{${i}}`:i}};s(FIe,"renderInlineTag");s(zIe,"renderLinkDefault");P2=class{static{s(this,"JSDocTextImpl")}constructor(e,r){this.inlines=e,this.range=r}toString(){let e="";for(let r=0;rn.range.start.line&&(e+=`
`)}return e}toMarkdown(e){let r="";for(let n=0;ni.range.start.line&&(r+=`
`)}return r}},cw=class{static{s(this,"JSDocLineImpl")}constructor(e,r){this.text=e,this.range=r}toString(){return this.text}toMarkdown(){return this.text}};s(ese,"fillNewlines")});var B2,sI=_(()=>{"use strict";Ha();aI();B2=class{static{s(this,"JSDocDocumentationProvider")}constructor(e){this.indexManager=e.shared.workspace.IndexManager,this.commentProvider=e.documentation.CommentProvider}getDocumentation(e){let r=this.commentProvider.getComment(e);if(r&&nI(r))return rI(r).toMarkdown({renderLink:s((i,a)=>this.documentationLinkRenderer(e,i,a),"renderLink"),renderTag:s(i=>this.documentationTagRenderer(e,i),"renderTag")})}documentationLinkRenderer(e,r,n){var i;let a=(i=this.findNameInPrecomputedScopes(e,r))!==null&&i!==void 0?i:this.findNameInGlobalScope(e,r);if(a&&a.nameSegment){let o=a.nameSegment.range.start.line+1,l=a.nameSegment.range.start.character+1,u=a.documentUri.with({fragment:`L${o},${l}`});return`[${n}](${u.toString()})`}else return}documentationTagRenderer(e,r){}findNameInPrecomputedScopes(e,r){let i=Ai(e).precomputedScopes;if(!i)return;let a=e;do{let l=i.get(a).find(u=>u.name===r);if(l)return l;a=a.$container}while(a)}findNameInGlobalScope(e,r){return this.indexManager.allElements().find(i=>i.name===r)}}});var F2,oI=_(()=>{"use strict";aw();gl();F2=class{static{s(this,"DefaultCommentProvider")}constructor(e){this.grammarConfig=()=>e.parser.GrammarConfig}getComment(e){var r;return GM(e)?e.$comment:(r=FL(e.$cstNode,this.grammarConfig().multilineCommentRules))===null||r===void 0?void 0:r.text}}});var Kn={};var lI=_(()=>{"use strict";lr(Kn,ka(AM(),1))});var z2,cI,uI,hI=_(()=>{"use strict";Oo();lI();z2=class{static{s(this,"DefaultAsyncParser")}constructor(e){this.syncParser=e.parser.LangiumParser}parse(e){return Promise.resolve(this.syncParser.parse(e))}},cI=class{static{s(this,"AbstractThreadedAsyncParser")}constructor(e){this.threadCount=8,this.terminationDelay=200,this.workerPool=[],this.queue=[],this.hydrator=e.serializer.Hydrator}initializeWorkers(){for(;this.workerPool.length{if(this.queue.length>0){let r=this.queue.shift();r&&(e.lock(),r.resolve(e))}}),this.workerPool.push(e)}}async parse(e,r){let n=await this.acquireParserWorker(r),i=new Qa,a,o=r.onCancellationRequested(()=>{a=setTimeout(()=>{this.terminateWorker(n)},this.terminationDelay)});return n.parse(e).then(l=>{let u=this.hydrator.hydrate(l);i.resolve(u)}).catch(l=>{i.reject(l)}).finally(()=>{o.dispose(),clearTimeout(a)}),i.promise}terminateWorker(e){e.terminate();let r=this.workerPool.indexOf(e);r>=0&&this.workerPool.splice(r,1)}async acquireParserWorker(e){this.initializeWorkers();for(let n of this.workerPool)if(n.ready)return n.lock(),n;let r=new Qa;return e.onCancellationRequested(()=>{let n=this.queue.indexOf(r);n>=0&&this.queue.splice(n,1),r.reject(bc)}),this.queue.push(r),r.promise}},uI=class{static{s(this,"ParserWorker")}get ready(){return this._ready}get onReady(){return this.onReadyEmitter.event}constructor(e,r,n,i){this.onReadyEmitter=new Kn.Emitter,this.deferred=new Qa,this._ready=!0,this._parsing=!1,this.sendMessage=e,this._terminate=i,r(a=>{let o=a;this.deferred.resolve(o),this.unlock()}),n(a=>{this.deferred.reject(a),this.unlock()})}terminate(){this.deferred.reject(bc),this._terminate()}lock(){this._ready=!1}unlock(){this._parsing=!1,this._ready=!0,this.onReadyEmitter.fire()}parse(e){if(this._parsing)throw new Error("Parser worker is busy");return this._parsing=!0,this.deferred=new Qa,this.sendMessage(e),this.deferred.promise}}});var $2,fI=_(()=>{"use strict";No();Oo();$2=class{static{s(this,"DefaultWorkspaceLock")}constructor(){this.previousTokenSource=new cr.CancellationTokenSource,this.writeQueue=[],this.readQueue=[],this.done=!0}write(e){this.cancelWrite();let r=new cr.CancellationTokenSource;return this.previousTokenSource=r,this.enqueue(this.writeQueue,e,r.token)}read(e){return this.enqueue(this.readQueue,e)}enqueue(e,r,n){let i=new Qa,a={action:r,deferred:i,cancellationToken:n??cr.CancellationToken.None};return e.push(a),this.performNextOperation(),i.promise}async performNextOperation(){if(!this.done)return;let e=[];if(this.writeQueue.length>0)e.push(this.writeQueue.shift());else if(this.readQueue.length>0)e.push(...this.readQueue.splice(0,this.readQueue.length));else return;this.done=!1,await Promise.all(e.map(async({action:r,deferred:n,cancellationToken:i})=>{try{let a=await Promise.resolve().then(()=>r(i));n.resolve(a)}catch(a){ef(a)?n.resolve(void 0):n.reject(a)}})),this.done=!0,this.performNextOperation()}cancelWrite(){this.previousTokenSource.cancel()}}});var G2,dI=_(()=>{"use strict";X6();mc();Do();Ha();og();gl();G2=class{static{s(this,"DefaultHydrator")}constructor(e){this.grammarElementIdMap=new s0,this.tokenTypeIdMap=new s0,this.grammar=e.Grammar,this.lexer=e.parser.Lexer,this.linker=e.references.Linker}dehydrate(e){return{lexerErrors:e.lexerErrors.map(r=>Object.assign({},r)),parserErrors:e.parserErrors.map(r=>Object.assign({},r)),value:this.dehydrateAstNode(e.value,this.createDehyrationContext(e.value))}}createDehyrationContext(e){let r=new Map,n=new Map;for(let i of Io(e))r.set(i,{});if(e.$cstNode)for(let i of Od(e.$cstNode))n.set(i,{});return{astNodes:r,cstNodes:n}}dehydrateAstNode(e,r){let n=r.astNodes.get(e);n.$type=e.$type,n.$containerIndex=e.$containerIndex,n.$containerProperty=e.$containerProperty,e.$cstNode!==void 0&&(n.$cstNode=this.dehydrateCstNode(e.$cstNode,r));for(let[i,a]of Object.entries(e))if(!i.startsWith("$"))if(Array.isArray(a)){let o=[];n[i]=o;for(let l of a)$n(l)?o.push(this.dehydrateAstNode(l,r)):ua(l)?o.push(this.dehydrateReference(l,r)):o.push(l)}else $n(a)?n[i]=this.dehydrateAstNode(a,r):ua(a)?n[i]=this.dehydrateReference(a,r):a!==void 0&&(n[i]=a);return n}dehydrateReference(e,r){let n={};return n.$refText=e.$refText,e.$refNode&&(n.$refNode=r.cstNodes.get(e.$refNode)),n}dehydrateCstNode(e,r){let n=r.cstNodes.get(e);return kv(e)?n.fullText=e.fullText:n.grammarSource=this.getGrammarElementId(e.grammarSource),n.hidden=e.hidden,n.astNode=r.astNodes.get(e.astNode),to(e)?n.content=e.content.map(i=>this.dehydrateCstNode(i,r)):Xh(e)&&(n.tokenType=e.tokenType.name,n.offset=e.offset,n.length=e.length,n.startLine=e.range.start.line,n.startColumn=e.range.start.character,n.endLine=e.range.end.line,n.endColumn=e.range.end.character),n}hydrate(e){let r=e.value,n=this.createHydrationContext(r);return"$cstNode"in r&&this.hydrateCstNode(r.$cstNode,n),{lexerErrors:e.lexerErrors,parserErrors:e.parserErrors,value:this.hydrateAstNode(r,n)}}createHydrationContext(e){let r=new Map,n=new Map;for(let a of Io(e))r.set(a,{});let i;if(e.$cstNode)for(let a of Od(e.$cstNode)){let o;"fullText"in a?(o=new eg(a.fullText),i=o):"content"in a?o=new r0:"tokenType"in a&&(o=this.hydrateCstLeafNode(a)),o&&(n.set(a,o),o.root=i)}return{astNodes:r,cstNodes:n}}hydrateAstNode(e,r){let n=r.astNodes.get(e);n.$type=e.$type,n.$containerIndex=e.$containerIndex,n.$containerProperty=e.$containerProperty,e.$cstNode&&(n.$cstNode=r.cstNodes.get(e.$cstNode));for(let[i,a]of Object.entries(e))if(!i.startsWith("$"))if(Array.isArray(a)){let o=[];n[i]=o;for(let l of a)$n(l)?o.push(this.setParent(this.hydrateAstNode(l,r),n)):ua(l)?o.push(this.hydrateReference(l,n,i,r)):o.push(l)}else $n(a)?n[i]=this.setParent(this.hydrateAstNode(a,r),n):ua(a)?n[i]=this.hydrateReference(a,n,i,r):a!==void 0&&(n[i]=a);return n}setParent(e,r){return e.$container=r,e}hydrateReference(e,r,n,i){return this.linker.buildReference(r,n,i.cstNodes.get(e.$refNode),e.$refText)}hydrateCstNode(e,r,n=0){let i=r.cstNodes.get(e);if(typeof e.grammarSource=="number"&&(i.grammarSource=this.getGrammarElement(e.grammarSource)),i.astNode=r.astNodes.get(e.astNode),to(i))for(let a of e.content){let o=this.hydrateCstNode(a,r,n++);i.content.push(o)}return i}hydrateCstLeafNode(e){let r=this.getTokenType(e.tokenType),n=e.offset,i=e.length,a=e.startLine,o=e.startColumn,l=e.endLine,u=e.endColumn,h=e.hidden;return new t0(n,i,{start:{line:a,character:o},end:{line:l,character:u}},r,h)}getTokenType(e){return this.lexer.definition[e]}getGrammarElementId(e){return this.grammarElementIdMap.size===0&&this.createGrammarElementIdMap(),this.grammarElementIdMap.get(e)}getGrammarElement(e){this.grammarElementIdMap.size===0&&this.createGrammarElementIdMap();let r=this.grammarElementIdMap.getKey(e);if(r)return r;throw new Error("Invalid grammar element id: "+e)}createGrammarElementIdMap(){let e=0;for(let r of Io(this.grammar))Cv(r)&&this.grammarElementIdMap.set(r,e++)}}});function kl(t){return{documentation:{CommentProvider:s(e=>new F2(e),"CommentProvider"),DocumentationProvider:s(e=>new B2(e),"DocumentationProvider")},parser:{AsyncParser:s(e=>new z2(e),"AsyncParser"),GrammarConfig:s(e=>cR(e),"GrammarConfig"),LangiumParser:s(e=>xM(e),"LangiumParser"),CompletionParser:s(e=>yM(e),"CompletionParser"),ValueConverter:s(()=>new a0,"ValueConverter"),TokenBuilder:s(()=>new i0,"TokenBuilder"),Lexer:s(e=>new N2(e),"Lexer"),ParserErrorMessageProvider:s(()=>new tg,"ParserErrorMessageProvider")},workspace:{AstNodeLocator:s(()=>new L2,"AstNodeLocator"),AstNodeDescriptionProvider:s(e=>new _2(e),"AstNodeDescriptionProvider"),ReferenceDescriptionProvider:s(e=>new A2(e),"ReferenceDescriptionProvider")},references:{Linker:s(e=>new m2(e),"Linker"),NameProvider:s(()=>new g2,"NameProvider"),ScopeProvider:s(e=>new k2(e),"ScopeProvider"),ScopeComputation:s(e=>new v2(e),"ScopeComputation"),References:s(e=>new y2(e),"References")},serializer:{Hydrator:s(e=>new G2(e),"Hydrator"),JsonSerializer:s(e=>new w2(e),"JsonSerializer")},validation:{DocumentValidator:s(e=>new S2(e),"DocumentValidator"),ValidationRegistry:s(e=>new E2(e),"ValidationRegistry")},shared:s(()=>t.shared,"shared")}}function wl(t){return{ServiceRegistry:s(()=>new T2,"ServiceRegistry"),workspace:{LangiumDocuments:s(e=>new p2(e),"LangiumDocuments"),LangiumDocumentFactory:s(e=>new d2(e),"LangiumDocumentFactory"),DocumentBuilder:s(e=>new R2(e),"DocumentBuilder"),IndexManager:s(e=>new M2(e),"IndexManager"),WorkspaceManager:s(e=>new I2(e),"WorkspaceManager"),FileSystemProvider:s(e=>t.fileSystemProvider(e),"FileSystemProvider"),WorkspaceLock:s(()=>new $2,"WorkspaceLock"),ConfigurationProvider:s(e=>new D2(e),"ConfigurationProvider")}}}var pI=_(()=>{"use strict";uR();vM();bM();kM();wM();OM();PM();BM();FM();$M();aw();VM();UM();C2();qM();WM();HM();XM();sg();jM();KM();JM();sI();oI();f2();hI();fI();dI();s(kl,"createDefaultCoreModule");s(wl,"createDefaultSharedCoreModule")});function Aa(t,e,r,n,i,a,o,l,u){let h=[t,e,r,n,i,a,o,l,u].reduce(uw,{});return lse(h)}function ose(t){if(t&&t[gI])for(let e of Object.values(t))ose(e);return t}function lse(t,e){let r=new Proxy({},{deleteProperty:s(()=>!1,"deleteProperty"),get:s((n,i)=>sse(n,i,t,e||r),"get"),getOwnPropertyDescriptor:s((n,i)=>(sse(n,i,t,e||r),Object.getOwnPropertyDescriptor(n,i)),"getOwnPropertyDescriptor"),has:s((n,i)=>i in t,"has"),ownKeys:s(()=>[...Reflect.ownKeys(t),gI],"ownKeys")});return r[gI]=!0,r}function sse(t,e,r,n){if(e in t){if(t[e]instanceof Error)throw new Error("Construction failure. Please make sure that your dependencies are constructable.",{cause:t[e]});if(t[e]===ase)throw new Error('Cycle detected. Please make "'+String(e)+'" lazy. See https://langium.org/docs/configuration-services/#resolving-cyclic-dependencies');return t[e]}else if(e in r){let i=r[e];t[e]=ase;try{t[e]=typeof i=="function"?i(n):lse(i,n)}catch(a){throw t[e]=a instanceof Error?a:void 0,a}return t[e]}else return}function uw(t,e){if(e){for(let[r,n]of Object.entries(e))if(n!==void 0){let i=t[r];i!==null&&n!==null&&typeof i=="object"&&typeof n=="object"?t[r]=uw(i,n):t[r]=n}}return t}var mI,gI,ase,yI=_(()=>{"use strict";(function(t){t.merge=(e,r)=>uw(uw({},e),r)})(mI||(mI={}));s(Aa,"inject");gI=Symbol("isProxy");s(ose,"eagerLoad");s(lse,"_inject");ase=Symbol();s(sse,"_resolve");s(uw,"_merge")});var cse=_(()=>{"use strict"});var use=_(()=>{"use strict";oI();sI();aI()});var hse=_(()=>{"use strict"});var fse=_(()=>{"use strict";uR();hse()});var dse=_(()=>{"use strict"});var pse=_(()=>{"use strict";hI();vM();X6();bM();f2();JM();dse();kM();wM()});var mse=_(()=>{"use strict";OM();PM();BM();zM();FM();$M()});var gse=_(()=>{"use strict";dI();aw()});var hw,Tl,vI=_(()=>{"use strict";hw=class{static{s(this,"EmptyFileSystemProvider")}readFile(){throw new Error("No file system is available.")}async readDirectory(){return[]}},Tl={fileSystemProvider:s(()=>new hw,"fileSystemProvider")}});function VIe(){let t=Aa(wl(Tl),GIe),e=Aa(kl({shared:t}),$Ie);return t.ServiceRegistry.register(e),e}function c0(t){var e;let r=VIe(),n=r.serializer.JsonSerializer.deserialize(t);return r.shared.workspace.LangiumDocumentFactory.fromModel(n,_s.parse(`memory://${(e=n.name)!==null&&e!==void 0?e:"grammar"}.langium`)),n}var $Ie,GIe,yse=_(()=>{"use strict";pI();yI();mc();vI();kc();$Ie={Grammar:s(()=>{},"Grammar"),LanguageMetaData:s(()=>({caseInsensitive:!1,fileExtensions:[".langium"],languageId:"langium"}),"LanguageMetaData")},GIe={AstReflection:s(()=>new Em,"AstReflection")};s(VIe,"createMinimalGrammarServices");s(c0,"loadGrammarFromJson")});var wr={};ur(wr,{AstUtils:()=>jk,BiMap:()=>s0,Cancellation:()=>cr,ContextCache:()=>o0,CstUtils:()=>Bk,DONE_RESULT:()=>Wa,Deferred:()=>Qa,Disposable:()=>l0,DisposableCache:()=>cg,DocumentCache:()=>nw,EMPTY_STREAM:()=>wv,ErrorWithLocation:()=>Bd,GrammarUtils:()=>t6,MultiMap:()=>wc,OperationCancelled:()=>bc,Reduction:()=>wm,RegExpUtils:()=>Jk,SimpleCache:()=>b2,StreamImpl:()=>ro,TreeStreamImpl:()=>pc,URI:()=>_s,UriUtils:()=>Za,WorkspaceCache:()=>ug,assertUnreachable:()=>jh,delayNextTick:()=>MM,interruptAndCheck:()=>Di,isOperationCancelled:()=>ef,loadGrammarFromJson:()=>c0,setInterruptionPeriod:()=>Uae,startCancelableOperation:()=>Vae,stream:()=>Wr});var vse=_(()=>{"use strict";iw();lI();lr(wr,Kn);og();YM();Fk();yse();Oo();Es();kc();Ha();No();gl();xl();_m()});var xse=_(()=>{"use strict";UM();C2()});var bse=_(()=>{"use strict";qM();WM();HM();XM();sg();vI();jM();fI();KM()});var ha={};ur(ha,{AbstractAstReflection:()=>Id,AbstractCstNode:()=>l2,AbstractLangiumParser:()=>c2,AbstractParserErrorMessageProvider:()=>K6,AbstractThreadedAsyncParser:()=>cI,AstUtils:()=>jk,BiMap:()=>s0,Cancellation:()=>cr,CompositeCstNodeImpl:()=>r0,ContextCache:()=>o0,CstNodeBuilder:()=>o2,CstUtils:()=>Bk,DONE_RESULT:()=>Wa,DatatypeSymbol:()=>j6,DefaultAstNodeDescriptionProvider:()=>_2,DefaultAstNodeLocator:()=>L2,DefaultAsyncParser:()=>z2,DefaultCommentProvider:()=>F2,DefaultConfigurationProvider:()=>D2,DefaultDocumentBuilder:()=>R2,DefaultDocumentValidator:()=>S2,DefaultHydrator:()=>G2,DefaultIndexManager:()=>M2,DefaultJsonSerializer:()=>w2,DefaultLangiumDocumentFactory:()=>d2,DefaultLangiumDocuments:()=>p2,DefaultLexer:()=>N2,DefaultLinker:()=>m2,DefaultNameProvider:()=>g2,DefaultReferenceDescriptionProvider:()=>A2,DefaultReferences:()=>y2,DefaultScopeComputation:()=>v2,DefaultScopeProvider:()=>k2,DefaultServiceRegistry:()=>T2,DefaultTokenBuilder:()=>i0,DefaultValueConverter:()=>a0,DefaultWorkspaceLock:()=>$2,DefaultWorkspaceManager:()=>I2,Deferred:()=>Qa,Disposable:()=>l0,DisposableCache:()=>cg,DocumentCache:()=>nw,DocumentState:()=>un,DocumentValidator:()=>Nu,EMPTY_SCOPE:()=>_Ie,EMPTY_STREAM:()=>wv,EmptyFileSystem:()=>Tl,EmptyFileSystemProvider:()=>hw,ErrorWithLocation:()=>Bd,GrammarAST:()=>_v,GrammarUtils:()=>t6,JSDocDocumentationProvider:()=>B2,LangiumCompletionParser:()=>h2,LangiumParser:()=>u2,LangiumParserErrorMessageProvider:()=>tg,LeafCstNodeImpl:()=>t0,MapScope:()=>x2,Module:()=>mI,MultiMap:()=>wc,OperationCancelled:()=>bc,ParserWorker:()=>uI,Reduction:()=>wm,RegExpUtils:()=>Jk,RootCstNodeImpl:()=>eg,SimpleCache:()=>b2,StreamImpl:()=>ro,StreamScope:()=>lg,TextDocument:()=>ig,TreeStreamImpl:()=>pc,URI:()=>_s,UriUtils:()=>Za,ValidationCategory:()=>hg,ValidationRegistry:()=>E2,ValueConverter:()=>xc,WorkspaceCache:()=>ug,assertUnreachable:()=>jh,createCompletionParser:()=>yM,createDefaultCoreModule:()=>kl,createDefaultSharedCoreModule:()=>wl,createGrammarConfig:()=>cR,createLangiumParser:()=>xM,delayNextTick:()=>MM,diagnosticData:()=>sw,eagerLoad:()=>ose,getDiagnosticRange:()=>Qae,inject:()=>Aa,interruptAndCheck:()=>Di,isAstNode:()=>$n,isAstNodeDescription:()=>NL,isAstNodeWithComment:()=>GM,isCompositeCstNode:()=>to,isIMultiModeLexerDefinition:()=>ZM,isJSDoc:()=>nI,isLeafCstNode:()=>Xh,isLinkingError:()=>Nd,isNamed:()=>jae,isOperationCancelled:()=>ef,isReference:()=>ua,isRootCstNode:()=>kv,isTokenTypeArray:()=>Zae,isTokenTypeDictionary:()=>QM,loadGrammarFromJson:()=>c0,parseJSDoc:()=>rI,prepareLangiumParser:()=>Oae,setInterruptionPeriod:()=>Uae,startCancelableOperation:()=>Vae,stream:()=>Wr,toDiagnosticSeverity:()=>ow});var Ou=_(()=>{"use strict";pI();yI();VM();cse();Do();use();fse();pse();mse();gse();vse();lr(ha,wr);xse();bse();mc()});function Sse(t){return Tc.isInstance(t,xI)}function _se(t){return Tc.isInstance(t,bI)}function Ase(t){return Tc.isInstance(t,HIe)}function Lse(t){return Tc.isInstance(t,kI)}function Rse(t){return Tc.isInstance(t,Dse)}function Mse(t){return Tc.isInstance(t,wI)}function Nse(t){return Tc.isInstance(t,Ise)}function Pse(t){return Tc.isInstance(t,Ose)}function Fse(t){return Tc.isInstance(t,Bse)}function $se(t){return Tc.isInstance(t,zse)}var UIe,_t,Cse,xI,qIe,WIe,bI,HIe,kI,Dse,wI,Ise,Ose,Bse,zse,YIe,Gse,Tc,kse,XIe,wse,jIe,Tse,KIe,Ese,QIe,ZIe,JIe,eNe,tNe,Pu,TI,EI,CI,SI,rNe,nNe,iNe,aNe,fw,u0,Ec,sNe,Cc=_(()=>{"use strict";Ou();Ou();Ou();Ou();UIe=Object.defineProperty,_t=s((t,e)=>UIe(t,"name",{value:e,configurable:!0}),"__name"),Cse="Statement",xI="Branch";s(Sse,"isBranch");_t(Sse,"isBranch");qIe="Checkout",WIe="CherryPicking",bI="Commit";s(_se,"isCommit");_t(_se,"isCommit");HIe="Common";s(Ase,"isCommon");_t(Ase,"isCommon");kI="GitGraph";s(Lse,"isGitGraph");_t(Lse,"isGitGraph");Dse="Info";s(Rse,"isInfo");_t(Rse,"isInfo");wI="Merge";s(Mse,"isMerge");_t(Mse,"isMerge");Ise="Packet";s(Nse,"isPacket");_t(Nse,"isPacket");Ose="PacketBlock";s(Pse,"isPacketBlock");_t(Pse,"isPacketBlock");Bse="Pie";s(Fse,"isPie");_t(Fse,"isPie");zse="PieSection";s($se,"isPieSection");_t($se,"isPieSection");YIe="Direction",Gse=class extends Id{static{s(this,"MermaidAstReflection")}static{_t(this,"MermaidAstReflection")}getAllTypes(){return["Branch","Checkout","CherryPicking","Commit","Common","Direction","GitGraph","Info","Merge","Packet","PacketBlock","Pie","PieSection","Statement"]}computeIsSubtype(t,e){switch(t){case xI:case qIe:case WIe:case bI:case wI:return this.isSubtype(Cse,e);case YIe:return this.isSubtype(kI,e);default:return!1}}getReferenceType(t){let e=`${t.container.$type}:${t.property}`;switch(e){default:throw new Error(`${e} is not a valid reference id.`)}}getTypeMetaData(t){switch(t){case"Branch":return{name:"Branch",properties:[{name:"name"},{name:"order"}]};case"Checkout":return{name:"Checkout",properties:[{name:"branch"}]};case"CherryPicking":return{name:"CherryPicking",properties:[{name:"id"},{name:"parent"},{name:"tags",defaultValue:[]}]};case"Commit":return{name:"Commit",properties:[{name:"id"},{name:"message"},{name:"tags",defaultValue:[]},{name:"type"}]};case"Common":return{name:"Common",properties:[{name:"accDescr"},{name:"accTitle"},{name:"title"}]};case"GitGraph":return{name:"GitGraph",properties:[{name:"accDescr"},{name:"accTitle"},{name:"statements",defaultValue:[]},{name:"title"}]};case"Info":return{name:"Info",properties:[{name:"accDescr"},{name:"accTitle"},{name:"title"}]};case"Merge":return{name:"Merge",properties:[{name:"branch"},{name:"id"},{name:"tags",defaultValue:[]},{name:"type"}]};case"Packet":return{name:"Packet",properties:[{name:"accDescr"},{name:"accTitle"},{name:"blocks",defaultValue:[]},{name:"title"}]};case"PacketBlock":return{name:"PacketBlock",properties:[{name:"end"},{name:"label"},{name:"start"}]};case"Pie":return{name:"Pie",properties:[{name:"accDescr"},{name:"accTitle"},{name:"sections",defaultValue:[]},{name:"showData",defaultValue:!1},{name:"title"}]};case"PieSection":return{name:"PieSection",properties:[{name:"label"},{name:"value"}]};case"Direction":return{name:"Direction",properties:[{name:"accDescr"},{name:"accTitle"},{name:"dir"},{name:"statements",defaultValue:[]},{name:"title"}]};default:return{name:t,properties:[]}}}},Tc=new Gse,XIe=_t(()=>kse??(kse=c0('{"$type":"Grammar","isDeclared":true,"name":"Info","imports":[],"rules":[{"$type":"ParserRule","name":"Info","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"info"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"showInfo"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"*"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}')),"InfoGrammar"),jIe=_t(()=>wse??(wse=c0(`{"$type":"Grammar","isDeclared":true,"name":"Packet","imports":[],"rules":[{"$type":"ParserRule","name":"Packet","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"packet-beta"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"+"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"PacketBlock","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"start","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"end","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"?"},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}`)),"PacketGrammar"),KIe=_t(()=>Tse??(Tse=c0('{"$type":"Grammar","isDeclared":true,"name":"Pie","imports":[],"rules":[{"$type":"ParserRule","name":"Pie","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"pie"},{"$type":"Assignment","feature":"showData","operator":"?=","terminal":{"$type":"Keyword","value":"showData"},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"+"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"PieSection","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"PIE_SECTION_LABEL","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]+\\"/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"PIE_SECTION_VALUE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/(0|[1-9][0-9]*)(\\\\.[0-9]+)?/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}')),"PieGrammar"),QIe=_t(()=>Ese??(Ese=c0(`{"$type":"Grammar","isDeclared":true,"name":"GitGraph","interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"rules":[{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false},{"$type":"ParserRule","name":"GitGraph","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Keyword","value":":"}]},{"$type":"Keyword","value":"gitGraph:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},{"$type":"Keyword","value":":"}]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]},{"$type":"Assignment","feature":"statements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Direction","definition":{"$type":"Assignment","feature":"dir","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"LR"},{"$type":"Keyword","value":"TB"},{"$type":"Keyword","value":"BT"}]}},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Commit","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"commit"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"msg:","cardinality":"?"},{"$type":"Assignment","feature":"message","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Branch","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"branch"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"order:"},{"$type":"Assignment","feature":"order","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Merge","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"merge"},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]}},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Checkout","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"checkout"},{"$type":"Keyword","value":"switch"}]},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"CherryPicking","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"cherry-pick"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"parent:"},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+(?=\\\\s)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\w([-\\\\./\\\\w]*[-\\\\w])?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/"},"fragment":false,"hidden":false}],"definesHiddenTokens":false,"hiddenTokens":[],"imports":[],"types":[],"usedGrammars":[]}`)),"GitGraphGrammar"),ZIe={languageId:"info",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1},JIe={languageId:"packet",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1},eNe={languageId:"pie",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1},tNe={languageId:"gitGraph",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1},Pu={AstReflection:_t(()=>new Gse,"AstReflection")},TI={Grammar:_t(()=>XIe(),"Grammar"),LanguageMetaData:_t(()=>ZIe,"LanguageMetaData"),parser:{}},EI={Grammar:_t(()=>jIe(),"Grammar"),LanguageMetaData:_t(()=>JIe,"LanguageMetaData"),parser:{}},CI={Grammar:_t(()=>KIe(),"Grammar"),LanguageMetaData:_t(()=>eNe,"LanguageMetaData"),parser:{}},SI={Grammar:_t(()=>QIe(),"Grammar"),LanguageMetaData:_t(()=>tNe,"LanguageMetaData"),parser:{}},rNe=/accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/,nNe=/accTitle[\t ]*:([^\n\r]*)/,iNe=/title([\t ][^\n\r]*|)/,aNe={ACC_DESCR:rNe,ACC_TITLE:nNe,TITLE:iNe},fw=class extends a0{static{s(this,"AbstractMermaidValueConverter")}static{_t(this,"AbstractMermaidValueConverter")}runConverter(t,e,r){let n=this.runCommonConverter(t,e,r);return n===void 0&&(n=this.runCustomConverter(t,e,r)),n===void 0?super.runConverter(t,e,r):n}runCommonConverter(t,e,r){let n=aNe[t.name];if(n===void 0)return;let i=n.exec(e);if(i!==null){if(i[1]!==void 0)return i[1].trim().replace(/[\t ]{2,}/gm," ");if(i[2]!==void 0)return i[2].replace(/^\s*/gm,"").replace(/\s+$/gm,"").replace(/[\t ]{2,}/gm," ").replace(/[\n\r]{2,}/gm,`
`)}}},u0=class extends fw{static{s(this,"CommonValueConverter")}static{_t(this,"CommonValueConverter")}runCustomConverter(t,e,r){}},Ec=class extends i0{static{s(this,"AbstractMermaidTokenBuilder")}static{_t(this,"AbstractMermaidTokenBuilder")}constructor(t){super(),this.keywords=new Set(t)}buildKeywordTokens(t,e,r){let n=super.buildKeywordTokens(t,e,r);return n.forEach(i=>{this.keywords.has(i.name)&&i.PATTERN!==void 0&&(i.PATTERN=new RegExp(i.PATTERN.toString()+"(?:(?=%%)|(?!\\S))"))}),n}},sNe=class extends Ec{static{s(this,"CommonTokenBuilder")}static{_t(this,"CommonTokenBuilder")}}});function pw(t=Tl){let e=Aa(wl(t),Pu),r=Aa(kl({shared:e}),SI,dw);return e.ServiceRegistry.register(r),{shared:e,GitGraph:r}}var oNe,dw,_I=_(()=>{"use strict";Cc();Ou();oNe=class extends Ec{static{s(this,"GitGraphTokenBuilder")}static{_t(this,"GitGraphTokenBuilder")}constructor(){super(["gitGraph"])}},dw={parser:{TokenBuilder:_t(()=>new oNe,"TokenBuilder"),ValueConverter:_t(()=>new u0,"ValueConverter")}};s(pw,"createGitGraphServices");_t(pw,"createGitGraphServices")});function gw(t=Tl){let e=Aa(wl(t),Pu),r=Aa(kl({shared:e}),TI,mw);return e.ServiceRegistry.register(r),{shared:e,Info:r}}var lNe,mw,AI=_(()=>{"use strict";Cc();Ou();lNe=class extends Ec{static{s(this,"InfoTokenBuilder")}static{_t(this,"InfoTokenBuilder")}constructor(){super(["info","showInfo"])}},mw={parser:{TokenBuilder:_t(()=>new lNe,"TokenBuilder"),ValueConverter:_t(()=>new u0,"ValueConverter")}};s(gw,"createInfoServices");_t(gw,"createInfoServices")});function vw(t=Tl){let e=Aa(wl(t),Pu),r=Aa(kl({shared:e}),EI,yw);return e.ServiceRegistry.register(r),{shared:e,Packet:r}}var cNe,yw,LI=_(()=>{"use strict";Cc();Ou();cNe=class extends Ec{static{s(this,"PacketTokenBuilder")}static{_t(this,"PacketTokenBuilder")}constructor(){super(["packet-beta"])}},yw={parser:{TokenBuilder:_t(()=>new cNe,"TokenBuilder"),ValueConverter:_t(()=>new u0,"ValueConverter")}};s(vw,"createPacketServices");_t(vw,"createPacketServices")});function bw(t=Tl){let e=Aa(wl(t),Pu),r=Aa(kl({shared:e}),CI,xw);return e.ServiceRegistry.register(r),{shared:e,Pie:r}}var uNe,hNe,xw,DI=_(()=>{"use strict";Cc();Ou();uNe=class extends Ec{static{s(this,"PieTokenBuilder")}static{_t(this,"PieTokenBuilder")}constructor(){super(["pie","showData"])}},hNe=class extends fw{static{s(this,"PieValueConverter")}static{_t(this,"PieValueConverter")}runCustomConverter(t,e,r){if(t.name==="PIE_SECTION_LABEL")return e.replace(/"/g,"").trim()}},xw={parser:{TokenBuilder:_t(()=>new uNe,"TokenBuilder"),ValueConverter:_t(()=>new hNe,"ValueConverter")}};s(bw,"createPieServices");_t(bw,"createPieServices")});var Vse={};ur(Vse,{InfoModule:()=>mw,createInfoServices:()=>gw});var Use=_(()=>{"use strict";AI();Cc()});var qse={};ur(qse,{PacketModule:()=>yw,createPacketServices:()=>vw});var Wse=_(()=>{"use strict";LI();Cc()});var Hse={};ur(Hse,{PieModule:()=>xw,createPieServices:()=>bw});var Yse=_(()=>{"use strict";DI();Cc()});var Xse={};ur(Xse,{GitGraphModule:()=>dw,createGitGraphServices:()=>pw});var jse=_(()=>{"use strict";_I();Cc()});async function Bu(t,e){let r=fNe[t];if(!r)throw new Error(`Unknown diagram type: ${t}`);fg[t]||await r();let i=fg[t].parse(e);if(i.lexerErrors.length>0||i.parserErrors.length>0)throw new dNe(i);return i.value}var fg,fNe,dNe,V2=_(()=>{"use strict";_I();AI();LI();DI();Cc();fg={},fNe={info:_t(async()=>{let{createInfoServices:t}=await Promise.resolve().then(()=>(Use(),Vse)),e=t().Info.parser.LangiumParser;fg.info=e},"info"),packet:_t(async()=>{let{createPacketServices:t}=await Promise.resolve().then(()=>(Wse(),qse)),e=t().Packet.parser.LangiumParser;fg.packet=e},"packet"),pie:_t(async()=>{let{createPieServices:t}=await Promise.resolve().then(()=>(Yse(),Hse)),e=t().Pie.parser.LangiumParser;fg.pie=e},"pie"),gitGraph:_t(async()=>{let{createGitGraphServices:t}=await Promise.resolve().then(()=>(jse(),Xse)),e=t().GitGraph.parser.LangiumParser;fg.gitGraph=e},"gitGraph")};s(Bu,"parse");_t(Bu,"parse");dNe=class extends Error{static{s(this,"MermaidParseError")}constructor(t){let e=t.lexerErrors.map(n=>n.message).join(`
`),r=t.parserErrors.map(n=>n.message).join(`
`);super(`Parsing failed: ${e} ${r}`),this.result=t}static{_t(this,"MermaidParseError")}}});function dg(t,e){t.accDescr&&e.setAccDescription?.(t.accDescr),t.accTitle&&e.setAccTitle?.(t.accTitle),t.title&&e.setDiagramTitle?.(t.title)}var kw=_(()=>{"use strict";s(dg,"populateCommonDb")});var Br,ww=_(()=>{"use strict";Br={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4}});var pg,RI=_(()=>{"use strict";pg=class{constructor(e){this.init=e;this.records=this.init()}static{s(this,"ImperativeState")}reset(){this.records=this.init()}}});function MI(){return cA({length:7})}function mNe(t,e){let r=Object.create(null);return t.reduce((n,i)=>{let a=e(i);return r[a]||(r[a]=!0,n.push(i)),n},[])}function Kse(t,e,r){let n=t.indexOf(e);n===-1?t.push(r):t.splice(n,1,r)}function Zse(t){let e=t.reduce((i,a)=>i.seq>a.seq?i:a,t[0]),r="";t.forEach(function(i){i===e?r+=" *":r+=" |"});let n=[r,e.id,e.seq];for(let i in nt.records.branches)nt.records.branches.get(i)===e.id&&n.push(i);if(V.debug(n.join(" ")),e.parents&&e.parents.length==2&&e.parents[0]&&e.parents[1]){let i=nt.records.commits.get(e.parents[0]);Kse(t,e,i),e.parents[1]&&t.push(nt.records.commits.get(e.parents[1]))}else{if(e.parents.length==0)return;if(e.parents[0]){let i=nt.records.commits.get(e.parents[0]);Kse(t,e,i)}}t=mNe(t,i=>i.id),Zse(t)}var pNe,h0,nt,gNe,yNe,vNe,xNe,bNe,kNe,wNe,Qse,TNe,ENe,CNe,SNe,_Ne,Jse,ANe,LNe,DNe,Tw,II=_(()=>{"use strict";it();pr();zs();Qt();Ci();ww();RI();Pl();pNe=dr.gitGraph,h0=s(()=>ms({...pNe,..._r().gitGraph}),"getConfig"),nt=new pg(()=>{let t=h0(),e=t.mainBranchName,r=t.mainBranchOrder;return{mainBranchName:e,commits:new Map,head:null,branchConfig:new Map([[e,{name:e,order:r}]]),branches:new Map([[e,null]]),currBranch:e,direction:"LR",seq:0,options:{}}});s(MI,"getID");s(mNe,"uniqBy");gNe=s(function(t){nt.records.direction=t},"setDirection"),yNe=s(function(t){V.debug("options str",t),t=t?.trim(),t=t||"{}";try{nt.records.options=JSON.parse(t)}catch(e){V.error("error while parsing gitGraph options",e.message)}},"setOptions"),vNe=s(function(){return nt.records.options},"getOptions"),xNe=s(function(t){let e=t.msg,r=t.id,n=t.type,i=t.tags;V.info("commit",e,r,n,i),V.debug("Entering commit:",e,r,n,i);let a=h0();r=$e.sanitizeText(r,a),e=$e.sanitizeText(e,a),i=i?.map(l=>$e.sanitizeText(l,a));let o={id:r||nt.records.seq+"-"+MI(),message:e,seq:nt.records.seq++,type:n??Br.NORMAL,tags:i??[],parents:nt.records.head==null?[]:[nt.records.head.id],branch:nt.records.currBranch};nt.records.head=o,V.info("main branch",a.mainBranchName),nt.records.commits.set(o.id,o),nt.records.branches.set(nt.records.currBranch,o.id),V.debug("in pushCommit "+o.id)},"commit"),bNe=s(function(t){let e=t.name,r=t.order;if(e=$e.sanitizeText(e,h0()),nt.records.branches.has(e))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${e}")`);nt.records.branches.set(e,nt.records.head!=null?nt.records.head.id:null),nt.records.branchConfig.set(e,{name:e,order:r}),Qse(e),V.debug("in createBranch")},"branch"),kNe=s(t=>{let e=t.branch,r=t.id,n=t.type,i=t.tags,a=h0();e=$e.sanitizeText(e,a),r&&(r=$e.sanitizeText(r,a));let o=nt.records.branches.get(nt.records.currBranch),l=nt.records.branches.get(e),u=o?nt.records.commits.get(o):void 0,h=l?nt.records.commits.get(l):void 0;if(u&&h&&u.branch===e)throw new Error(`Cannot merge branch '${e}' into itself.`);if(nt.records.currBranch===e){let p=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw p.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},p}if(u===void 0||!u){let p=new Error(`Incorrect usage of "merge". Current branch (${nt.records.currBranch})has no commits`);throw p.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["commit"]},p}if(!nt.records.branches.has(e)){let p=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") does not exist");throw p.hash={text:`merge ${e}`,token:`merge ${e}`,expected:[`branch ${e}`]},p}if(h===void 0||!h){let p=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") has no commits");throw p.hash={text:`merge ${e}`,token:`merge ${e}`,expected:['"commit"']},p}if(u===h){let p=new Error('Incorrect usage of "merge". Both branches have same head');throw p.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},p}if(r&&nt.records.commits.has(r)){let p=new Error('Incorrect usage of "merge". Commit with id:'+r+" already exists, use different custom Id");throw p.hash={text:`merge ${e} ${r} ${n} ${i?.join(" ")}`,token:`merge ${e} ${r} ${n} ${i?.join(" ")}`,expected:[`merge ${e} ${r}_UNIQUE ${n} ${i?.join(" ")}`]},p}let f=l||"",d={id:r||`${nt.records.seq}-${MI()}`,message:`merged branch ${e} into ${nt.records.currBranch}`,seq:nt.records.seq++,parents:nt.records.head==null?[]:[nt.records.head.id,f],branch:nt.records.currBranch,type:Br.MERGE,customType:n,customId:!!r,tags:i??[]};nt.records.head=d,nt.records.commits.set(d.id,d),nt.records.branches.set(nt.records.currBranch,d.id),V.debug(nt.records.branches),V.debug("in mergeBranch")},"merge"),wNe=s(function(t){let e=t.id,r=t.targetId,n=t.tags,i=t.parent;V.debug("Entering cherryPick:",e,r,n);let a=h0();if(e=$e.sanitizeText(e,a),r=$e.sanitizeText(r,a),n=n?.map(u=>$e.sanitizeText(u,a)),i=$e.sanitizeText(i,a),!e||!nt.records.commits.has(e)){let u=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw u.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]},u}let o=nt.records.commits.get(e);if(o===void 0||!o)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(i&&!(Array.isArray(o.parents)&&o.parents.includes(i)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let l=o.branch;if(o.type===Br.MERGE&&!i)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!r||!nt.records.commits.has(r)){if(l===nt.records.currBranch){let d=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw d.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]},d}let u=nt.records.branches.get(nt.records.currBranch);if(u===void 0||!u){let d=new Error(`Incorrect usage of "cherry-pick". Current branch (${nt.records.currBranch})has no commits`);throw d.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]},d}let h=nt.records.commits.get(u);if(h===void 0||!h){let d=new Error(`Incorrect usage of "cherry-pick". Current branch (${nt.records.currBranch})has no commits`);throw d.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]},d}let f={id:nt.records.seq+"-"+MI(),message:`cherry-picked ${o?.message} into ${nt.records.currBranch}`,seq:nt.records.seq++,parents:nt.records.head==null?[]:[nt.records.head.id,o.id],branch:nt.records.currBranch,type:Br.CHERRY_PICK,tags:n?n.filter(Boolean):[`cherry-pick:${o.id}${o.type===Br.MERGE?`|parent:${i}`:""}`]};nt.records.head=f,nt.records.commits.set(f.id,f),nt.records.branches.set(nt.records.currBranch,f.id),V.debug(nt.records.branches),V.debug("in cherryPick")}},"cherryPick"),Qse=s(function(t){if(t=$e.sanitizeText(t,h0()),nt.records.branches.has(t)){nt.records.currBranch=t;let e=nt.records.branches.get(nt.records.currBranch);e===void 0||!e?nt.records.head=null:nt.records.head=nt.records.commits.get(e)??null}else{let e=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw e.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},e}},"checkout");s(Kse,"upsert");s(Zse,"prettyPrintCommitHistory");TNe=s(function(){V.debug(nt.records.commits);let t=Jse()[0];Zse([t])},"prettyPrint"),ENe=s(function(){nt.reset(),br()},"clear"),CNe=s(function(){return[...nt.records.branchConfig.values()].map((e,r)=>e.order!==null&&e.order!==void 0?e:{...e,order:parseFloat(`0.${r}`)}).sort((e,r)=>(e.order??0)-(r.order??0)).map(({name:e})=>({name:e}))},"getBranchesAsObjArray"),SNe=s(function(){return nt.records.branches},"getBranches"),_Ne=s(function(){return nt.records.commits},"getCommits"),Jse=s(function(){let t=[...nt.records.commits.values()];return t.forEach(function(e){V.debug(e.id)}),t.sort((e,r)=>e.seq-r.seq),t},"getCommitsArray"),ANe=s(function(){return nt.records.currBranch},"getCurrentBranch"),LNe=s(function(){return nt.records.direction},"getDirection"),DNe=s(function(){return nt.records.head},"getHead"),Tw={commitType:Br,getConfig:h0,setDirection:gNe,setOptions:yNe,getOptions:vNe,commit:xNe,branch:bNe,merge:kNe,cherryPick:wNe,checkout:Qse,prettyPrint:TNe,clear:ENe,getBranchesAsObjArray:CNe,getBranches:SNe,getCommits:_Ne,getCommitsArray:Jse,getCurrentBranch:ANe,getDirection:LNe,getHead:DNe,setAccTitle:Ar,getAccTitle:Gr,getAccDescription:Ur,setAccDescription:Vr,setDiagramTitle:an,getDiagramTitle:Qr}});var RNe,MNe,INe,NNe,ONe,PNe,BNe,eoe,toe=_(()=>{"use strict";V2();it();kw();II();ww();RNe=s((t,e)=>{dg(t,e),t.dir&&e.setDirection(t.dir);for(let r of t.statements)MNe(r,e)},"populate"),MNe=s((t,e)=>{let n={Commit:s(i=>e.commit(INe(i)),"Commit"),Branch:s(i=>e.branch(NNe(i)),"Branch"),Merge:s(i=>e.merge(ONe(i)),"Merge"),Checkout:s(i=>e.checkout(PNe(i)),"Checkout"),CherryPicking:s(i=>e.cherryPick(BNe(i)),"CherryPicking")}[t.$type];n?n(t):V.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),INe=s(t=>({id:t.id,msg:t.message??"",type:t.type!==void 0?Br[t.type]:Br.NORMAL,tags:t.tags??void 0}),"parseCommit"),NNe=s(t=>({name:t.name,order:t.order??0}),"parseBranch"),ONe=s(t=>({branch:t.branch,id:t.id??"",type:t.type!==void 0?Br[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),PNe=s(t=>t.branch,"parseCheckout"),BNe=s(t=>({id:t.id,targetId:"",tags:t.tags?.length===0?void 0:t.tags,parent:t.parent}),"parseCherryPicking"),eoe={parse:s(async t=>{let e=await Bu("gitGraph",t);V.debug(e),RNe(e,Tw)},"parse")}});var FNe,Po,rf,nf,Sc,Fu,f0,As,Ls,Ew,U2,Cw,tf,yr,zNe,noe,ioe,$Ne,GNe,VNe,UNe,qNe,WNe,HNe,YNe,XNe,jNe,KNe,QNe,roe,ZNe,q2,JNe,eOe,tOe,rOe,nOe,aoe,soe=_(()=>{"use strict";Xt();gt();it();pr();ww();FNe=le(),Po=FNe?.gitGraph,rf=10,nf=40,Sc=4,Fu=2,f0=8,As=new Map,Ls=new Map,Ew=30,U2=new Map,Cw=[],tf=0,yr="LR",zNe=s(()=>{As.clear(),Ls.clear(),U2.clear(),tf=0,Cw=[],yr="LR"},"clear"),noe=s(t=>{let e=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof t=="string"?t.split(/\\n|\n|
/gi):t).forEach(n=>{let i=document.createElementNS("http://www.w3.org/2000/svg","tspan");i.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),i.setAttribute("dy","1em"),i.setAttribute("x","0"),i.setAttribute("class","row"),i.textContent=n.trim(),e.appendChild(i)}),e},"drawText"),ioe=s(t=>{let e,r,n;return yr==="BT"?(r=s((i,a)=>i<=a,"comparisonFunc"),n=1/0):(r=s((i,a)=>i>=a,"comparisonFunc"),n=0),t.forEach(i=>{let a=yr==="TB"||yr=="BT"?Ls.get(i)?.y:Ls.get(i)?.x;a!==void 0&&r(a,n)&&(e=i,n=a)}),e},"findClosestParent"),$Ne=s(t=>{let e="",r=1/0;return t.forEach(n=>{let i=Ls.get(n).y;i<=r&&(e=n,r=i)}),e||void 0},"findClosestParentBT"),GNe=s((t,e,r)=>{let n=r,i=r,a=[];t.forEach(o=>{let l=e.get(o);if(!l)throw new Error(`Commit not found for key ${o}`);l.parents.length?(n=UNe(l),i=Math.max(n,i)):a.push(l),qNe(l,n)}),n=i,a.forEach(o=>{WNe(o,n,r)}),t.forEach(o=>{let l=e.get(o);if(l?.parents.length){let u=$Ne(l.parents);n=Ls.get(u).y-nf,n<=i&&(i=n);let h=As.get(l.branch).pos,f=n-rf;Ls.set(l.id,{x:h,y:f})}})},"setParallelBTPos"),VNe=s(t=>{let e=ioe(t.parents.filter(n=>n!==null));if(!e)throw new Error(`Closest parent not found for commit ${t.id}`);let r=Ls.get(e)?.y;if(r===void 0)throw new Error(`Closest parent position not found for commit ${t.id}`);return r},"findClosestParentPos"),UNe=s(t=>VNe(t)+nf,"calculateCommitPosition"),qNe=s((t,e)=>{let r=As.get(t.branch);if(!r)throw new Error(`Branch not found for commit ${t.id}`);let n=r.pos,i=e+rf;return Ls.set(t.id,{x:n,y:i}),{x:n,y:i}},"setCommitPosition"),WNe=s((t,e,r)=>{let n=As.get(t.branch);if(!n)throw new Error(`Branch not found for commit ${t.id}`);let i=e+r,a=n.pos;Ls.set(t.id,{x:a,y:i})},"setRootPosition"),HNe=s((t,e,r,n,i,a)=>{if(a===Br.HIGHLIGHT)t.append("rect").attr("x",r.x-10).attr("y",r.y-10).attr("width",20).attr("height",20).attr("class",`commit ${e.id} commit-highlight${i%f0} ${n}-outer`),t.append("rect").attr("x",r.x-6).attr("y",r.y-6).attr("width",12).attr("height",12).attr("class",`commit ${e.id} commit${i%f0} ${n}-inner`);else if(a===Br.CHERRY_PICK)t.append("circle").attr("cx",r.x).attr("cy",r.y).attr("r",10).attr("class",`commit ${e.id} ${n}`),t.append("circle").attr("cx",r.x-3).attr("cy",r.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${e.id} ${n}`),t.append("circle").attr("cx",r.x+3).attr("cy",r.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${e.id} ${n}`),t.append("line").attr("x1",r.x+3).attr("y1",r.y+1).attr("x2",r.x).attr("y2",r.y-5).attr("stroke","#fff").attr("class",`commit ${e.id} ${n}`),t.append("line").attr("x1",r.x-3).attr("y1",r.y+1).attr("x2",r.x).attr("y2",r.y-5).attr("stroke","#fff").attr("class",`commit ${e.id} ${n}`);else{let o=t.append("circle");if(o.attr("cx",r.x),o.attr("cy",r.y),o.attr("r",e.type===Br.MERGE?9:10),o.attr("class",`commit ${e.id} commit${i%f0}`),a===Br.MERGE){let l=t.append("circle");l.attr("cx",r.x),l.attr("cy",r.y),l.attr("r",6),l.attr("class",`commit ${n} ${e.id} commit${i%f0}`)}a===Br.REVERSE&&t.append("path").attr("d",`M ${r.x-5},${r.y-5}L${r.x+5},${r.y+5}M${r.x-5},${r.y+5}L${r.x+5},${r.y-5}`).attr("class",`commit ${n} ${e.id} commit${i%f0}`)}},"drawCommitBullet"),YNe=s((t,e,r,n)=>{if(e.type!==Br.CHERRY_PICK&&(e.customId&&e.type===Br.MERGE||e.type!==Br.MERGE)&&Po?.showCommitLabel){let i=t.append("g"),a=i.insert("rect").attr("class","commit-label-bkg"),o=i.append("text").attr("x",n).attr("y",r.y+25).attr("class","commit-label").text(e.id),l=o.node()?.getBBox();if(l&&(a.attr("x",r.posWithOffset-l.width/2-Fu).attr("y",r.y+13.5).attr("width",l.width+2*Fu).attr("height",l.height+2*Fu),yr==="TB"||yr==="BT"?(a.attr("x",r.x-(l.width+4*Sc+5)).attr("y",r.y-12),o.attr("x",r.x-(l.width+4*Sc)).attr("y",r.y+l.height-12)):o.attr("x",r.posWithOffset-l.width/2),Po.rotateCommitLabel))if(yr==="TB"||yr==="BT")o.attr("transform","rotate(-45, "+r.x+", "+r.y+")"),a.attr("transform","rotate(-45, "+r.x+", "+r.y+")");else{let u=-7.5-(l.width+10)/25*9.5,h=10+l.width/25*8.5;i.attr("transform","translate("+u+", "+h+") rotate(-45, "+n+", "+r.y+")")}}},"drawCommitLabel"),XNe=s((t,e,r,n)=>{if(e.tags.length>0){let i=0,a=0,o=0,l=[];for(let u of e.tags.reverse()){let h=t.insert("polygon"),f=t.append("circle"),d=t.append("text").attr("y",r.y-16-i).attr("class","tag-label").text(u),p=d.node()?.getBBox();if(!p)throw new Error("Tag bbox not found");a=Math.max(a,p.width),o=Math.max(o,p.height),d.attr("x",r.posWithOffset-p.width/2),l.push({tag:d,hole:f,rect:h,yOffset:i}),i+=20}for(let{tag:u,hole:h,rect:f,yOffset:d}of l){let p=o/2,m=r.y-19.2-d;if(f.attr("class","tag-label-bkg").attr("points",`
${n-a/2-Sc/2},${m+Fu}
${n-a/2-Sc/2},${m-Fu}
${r.posWithOffset-a/2-Sc},${m-p-Fu}
${r.posWithOffset+a/2+Sc},${m-p-Fu}
${r.posWithOffset+a/2+Sc},${m+p+Fu}
${r.posWithOffset-a/2-Sc},${m+p+Fu}`),h.attr("cy",m).attr("cx",n-a/2+Sc/2).attr("r",1.5).attr("class","tag-hole"),yr==="TB"||yr==="BT"){let g=n+d;f.attr("class","tag-label-bkg").attr("points",`
${r.x},${g+2}
${r.x},${g-2}
${r.x+rf},${g-p-2}
${r.x+rf+a+4},${g-p-2}
${r.x+rf+a+4},${g+p+2}
${r.x+rf},${g+p+2}`).attr("transform","translate(12,12) rotate(45, "+r.x+","+n+")"),h.attr("cx",r.x+Sc/2).attr("cy",g).attr("transform","translate(12,12) rotate(45, "+r.x+","+n+")"),u.attr("x",r.x+5).attr("y",g+3).attr("transform","translate(14,14) rotate(45, "+r.x+","+n+")")}}}},"drawCommitTags"),jNe=s(t=>{switch(t.customType??t.type){case Br.NORMAL:return"commit-normal";case Br.REVERSE:return"commit-reverse";case Br.HIGHLIGHT:return"commit-highlight";case Br.MERGE:return"commit-merge";case Br.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),KNe=s((t,e,r,n)=>{let i={x:0,y:0};if(t.parents.length>0){let a=ioe(t.parents);if(a){let o=n.get(a)??i;return e==="TB"?o.y+nf:e==="BT"?(n.get(t.id)??i).y-nf:o.x+nf}}else return e==="TB"?Ew:e==="BT"?(n.get(t.id)??i).y-nf:0;return 0},"calculatePosition"),QNe=s((t,e,r)=>{let n=yr==="BT"&&r?e:e+rf,i=yr==="TB"||yr==="BT"?n:As.get(t.branch)?.pos,a=yr==="TB"||yr==="BT"?As.get(t.branch)?.pos:n;if(a===void 0||i===void 0)throw new Error(`Position were undefined for commit ${t.id}`);return{x:a,y:i,posWithOffset:n}},"getCommitPosition"),roe=s((t,e,r)=>{if(!Po)throw new Error("GitGraph config not found");let n=t.append("g").attr("class","commit-bullets"),i=t.append("g").attr("class","commit-labels"),a=yr==="TB"||yr==="BT"?Ew:0,o=[...e.keys()],l=Po?.parallelCommits??!1,u=s((f,d)=>{let p=e.get(f)?.seq,m=e.get(d)?.seq;return p!==void 0&&m!==void 0?p-m:0},"sortKeys"),h=o.sort(u);yr==="BT"&&(l&&GNe(h,e,a),h=h.reverse()),h.forEach(f=>{let d=e.get(f);if(!d)throw new Error(`Commit not found for key ${f}`);l&&(a=KNe(d,yr,a,Ls));let p=QNe(d,a,l);if(r){let m=jNe(d),g=d.customType??d.type,y=As.get(d.branch)?.index??0;HNe(n,d,p,m,y,g),YNe(i,d,p,a),XNe(i,d,p,a)}yr==="TB"||yr==="BT"?Ls.set(d.id,{x:p.x,y:p.posWithOffset}):Ls.set(d.id,{x:p.posWithOffset,y:p.y}),a=yr==="BT"&&l?a+nf:a+nf+rf,a>tf&&(tf=a)})},"drawCommits"),ZNe=s((t,e,r,n,i)=>{let o=(yr==="TB"||yr==="BT"?r.xh.branch===o,"isOnBranchToGetCurve"),u=s(h=>h.seq>t.seq&&h.sequ(h)&&l(h))},"shouldRerouteArrow"),q2=s((t,e,r=0)=>{let n=t+Math.abs(t-e)/2;if(r>5)return n;if(Cw.every(o=>Math.abs(o-n)>=10))return Cw.push(n),n;let a=Math.abs(t-e);return q2(t,e-a/5,r+1)},"findLane"),JNe=s((t,e,r,n)=>{let i=Ls.get(e.id),a=Ls.get(r.id);if(i===void 0||a===void 0)throw new Error(`Commit positions not found for commits ${e.id} and ${r.id}`);let o=ZNe(e,r,i,a,n),l="",u="",h=0,f=0,d=As.get(r.branch)?.index;r.type===Br.MERGE&&e.id!==r.parents[0]&&(d=As.get(e.branch)?.index);let p;if(o){l="A 10 10, 0, 0, 0,",u="A 10 10, 0, 0, 1,",h=10,f=10;let m=i.ya.x&&(l="A 20 20, 0, 0, 0,",u="A 20 20, 0, 0, 1,",h=20,f=20,r.type===Br.MERGE&&e.id!==r.parents[0]?p=`M ${i.x} ${i.y} L ${i.x} ${a.y-h} ${u} ${i.x-f} ${a.y} L ${a.x} ${a.y}`:p=`M ${i.x} ${i.y} L ${a.x+h} ${i.y} ${l} ${a.x} ${i.y+f} L ${a.x} ${a.y}`),i.x===a.x&&(p=`M ${i.x} ${i.y} L ${a.x} ${a.y}`)):yr==="BT"?(i.xa.x&&(l="A 20 20, 0, 0, 0,",u="A 20 20, 0, 0, 1,",h=20,f=20,r.type===Br.MERGE&&e.id!==r.parents[0]?p=`M ${i.x} ${i.y} L ${i.x} ${a.y+h} ${l} ${i.x-f} ${a.y} L ${a.x} ${a.y}`:p=`M ${i.x} ${i.y} L ${a.x-h} ${i.y} ${l} ${a.x} ${i.y-f} L ${a.x} ${a.y}`),i.x===a.x&&(p=`M ${i.x} ${i.y} L ${a.x} ${a.y}`)):(i.ya.y&&(r.type===Br.MERGE&&e.id!==r.parents[0]?p=`M ${i.x} ${i.y} L ${a.x-h} ${i.y} ${l} ${a.x} ${i.y-f} L ${a.x} ${a.y}`:p=`M ${i.x} ${i.y} L ${i.x} ${a.y+h} ${u} ${i.x+f} ${a.y} L ${a.x} ${a.y}`),i.y===a.y&&(p=`M ${i.x} ${i.y} L ${a.x} ${a.y}`));if(p===void 0)throw new Error("Line definition not found");t.append("path").attr("d",p).attr("class","arrow arrow"+d%f0)},"drawArrow"),eOe=s((t,e)=>{let r=t.append("g").attr("class","commit-arrows");[...e.keys()].forEach(n=>{let i=e.get(n);i.parents&&i.parents.length>0&&i.parents.forEach(a=>{JNe(r,e.get(a),i,e)})})},"drawArrows"),tOe=s((t,e)=>{let r=t.append("g");e.forEach((n,i)=>{let a=i%f0,o=As.get(n.name)?.pos;if(o===void 0)throw new Error(`Position not found for branch ${n.name}`);let l=r.append("line");l.attr("x1",0),l.attr("y1",o),l.attr("x2",tf),l.attr("y2",o),l.attr("class","branch branch"+a),yr==="TB"?(l.attr("y1",Ew),l.attr("x1",o),l.attr("y2",tf),l.attr("x2",o)):yr==="BT"&&(l.attr("y1",tf),l.attr("x1",o),l.attr("y2",Ew),l.attr("x2",o)),Cw.push(o);let u=n.name,h=noe(u),f=r.insert("rect"),p=r.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+a);p.node().appendChild(h);let m=h.getBBox();f.attr("class","branchLabelBkg label"+a).attr("rx",4).attr("ry",4).attr("x",-m.width-4-(Po?.rotateCommitLabel===!0?30:0)).attr("y",-m.height/2+8).attr("width",m.width+18).attr("height",m.height+4),p.attr("transform","translate("+(-m.width-14-(Po?.rotateCommitLabel===!0?30:0))+", "+(o-m.height/2-1)+")"),yr==="TB"?(f.attr("x",o-m.width/2-10).attr("y",0),p.attr("transform","translate("+(o-m.width/2-5)+", 0)")):yr==="BT"?(f.attr("x",o-m.width/2-10).attr("y",tf),p.attr("transform","translate("+(o-m.width/2-5)+", "+tf+")")):f.attr("transform","translate(-19, "+(o-m.height/2)+")")})},"drawBranches"),rOe=s(function(t,e,r,n,i){return As.set(t,{pos:e,index:r}),e+=50+(i?40:0)+(yr==="TB"||yr==="BT"?n.width/2:0),e},"setBranchPosition"),nOe=s(function(t,e,r,n){if(zNe(),V.debug("in gitgraph renderer",t+`
`,"id:",e,r),!Po)throw new Error("GitGraph config not found");let i=Po.rotateCommitLabel??!1,a=n.db;U2=a.getCommits();let o=a.getBranchesAsObjArray();yr=a.getDirection();let l=Me(`[id="${e}"]`),u=0;o.forEach((h,f)=>{let d=noe(h.name),p=l.append("g"),m=p.insert("g").attr("class","branchLabel"),g=m.insert("g").attr("class","label branch-label");g.node()?.appendChild(d);let y=d.getBBox();u=rOe(h.name,u,f,y,i),g.remove(),m.remove(),p.remove()}),roe(l,U2,!1),Po.showBranches&&tOe(l,o),eOe(l,U2),roe(l,U2,!0),dt.insertTitle(l,"gitTitleText",Po.titleTopMargin??0,a.getDiagramTitle()),mC(void 0,l,Po.diagramPadding,Po.useMaxWidth)},"draw"),aoe={draw:nOe}});var iOe,ooe,loe=_(()=>{"use strict";iOe=s(t=>`
.commit-id,
.commit-msg,
.branch-label {
fill: lightgrey;
color: lightgrey;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
${[0,1,2,3,4,5,6,7].map(e=>`
.branch-label${e} { fill: ${t["gitBranchLabel"+e]}; }
.commit${e} { stroke: ${t["git"+e]}; fill: ${t["git"+e]}; }
.commit-highlight${e} { stroke: ${t["gitInv"+e]}; fill: ${t["gitInv"+e]}; }
.label${e} { fill: ${t["git"+e]}; }
.arrow${e} { stroke: ${t["git"+e]}; }
`).join(`
`)}
.branch {
stroke-width: 1;
stroke: ${t.lineColor};
stroke-dasharray: 2;
}
.commit-label { font-size: ${t.commitLabelFontSize}; fill: ${t.commitLabelColor};}
.commit-label-bkg { font-size: ${t.commitLabelFontSize}; fill: ${t.commitLabelBackground}; opacity: 0.5; }
.tag-label { font-size: ${t.tagLabelFontSize}; fill: ${t.tagLabelColor};}
.tag-label-bkg { fill: ${t.tagLabelBackground}; stroke: ${t.tagLabelBorder}; }
.tag-hole { fill: ${t.textColor}; }
.commit-merge {
stroke: ${t.primaryColor};
fill: ${t.primaryColor};
}
.commit-reverse {
stroke: ${t.primaryColor};
fill: ${t.primaryColor};
stroke-width: 3;
}
.commit-highlight-outer {
}
.commit-highlight-inner {
stroke: ${t.primaryColor};
fill: ${t.primaryColor};
}
.arrow { stroke-width: 8; stroke-linecap: round; fill: none}
.gitTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${t.textColor};
}
`,"getStyles"),ooe=iOe});var coe={};ur(coe,{diagram:()=>aOe});var aOe,uoe=_(()=>{"use strict";toe();II();soe();loe();aOe={parser:eoe,db:Tw,renderer:aoe,styles:ooe}});var NI,doe,poe=_(()=>{"use strict";NI=function(){var t=s(function(P,M,F,I){for(F=F||{},I=P.length;I--;F[P[I]]=M);return F},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],r=[1,26],n=[1,27],i=[1,28],a=[1,29],o=[1,30],l=[1,31],u=[1,32],h=[1,33],f=[1,34],d=[1,9],p=[1,10],m=[1,11],g=[1,12],y=[1,13],v=[1,14],x=[1,15],b=[1,16],k=[1,19],A=[1,20],w=[1,21],T=[1,22],C=[1,23],E=[1,25],S=[1,35],R={trace:s(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:s(function(M,F,I,O,z,N,U){var $=N.length-1;switch(z){case 1:return N[$-1];case 2:this.$=[];break;case 3:N[$-1].push(N[$]),this.$=N[$-1];break;case 4:case 5:this.$=N[$];break;case 6:case 7:this.$=[];break;case 8:O.setWeekday("monday");break;case 9:O.setWeekday("tuesday");break;case 10:O.setWeekday("wednesday");break;case 11:O.setWeekday("thursday");break;case 12:O.setWeekday("friday");break;case 13:O.setWeekday("saturday");break;case 14:O.setWeekday("sunday");break;case 15:O.setWeekend("friday");break;case 16:O.setWeekend("saturday");break;case 17:O.setDateFormat(N[$].substr(11)),this.$=N[$].substr(11);break;case 18:O.enableInclusiveEndDates(),this.$=N[$].substr(18);break;case 19:O.TopAxis(),this.$=N[$].substr(8);break;case 20:O.setAxisFormat(N[$].substr(11)),this.$=N[$].substr(11);break;case 21:O.setTickInterval(N[$].substr(13)),this.$=N[$].substr(13);break;case 22:O.setExcludes(N[$].substr(9)),this.$=N[$].substr(9);break;case 23:O.setIncludes(N[$].substr(9)),this.$=N[$].substr(9);break;case 24:O.setTodayMarker(N[$].substr(12)),this.$=N[$].substr(12);break;case 27:O.setDiagramTitle(N[$].substr(6)),this.$=N[$].substr(6);break;case 28:this.$=N[$].trim(),O.setAccTitle(this.$);break;case 29:case 30:this.$=N[$].trim(),O.setAccDescription(this.$);break;case 31:O.addSection(N[$].substr(8)),this.$=N[$].substr(8);break;case 33:O.addTask(N[$-1],N[$]),this.$="task";break;case 34:this.$=N[$-1],O.setClickEvent(N[$-1],N[$],null);break;case 35:this.$=N[$-2],O.setClickEvent(N[$-2],N[$-1],N[$]);break;case 36:this.$=N[$-2],O.setClickEvent(N[$-2],N[$-1],null),O.setLink(N[$-2],N[$]);break;case 37:this.$=N[$-3],O.setClickEvent(N[$-3],N[$-2],N[$-1]),O.setLink(N[$-3],N[$]);break;case 38:this.$=N[$-2],O.setClickEvent(N[$-2],N[$],null),O.setLink(N[$-2],N[$-1]);break;case 39:this.$=N[$-3],O.setClickEvent(N[$-3],N[$-1],N[$]),O.setLink(N[$-3],N[$-2]);break;case 40:this.$=N[$-1],O.setLink(N[$-1],N[$]);break;case 41:case 47:this.$=N[$-1]+" "+N[$];break;case 42:case 43:case 45:this.$=N[$-2]+" "+N[$-1]+" "+N[$];break;case 44:case 46:this.$=N[$-3]+" "+N[$-2]+" "+N[$-1]+" "+N[$];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:i,15:a,16:o,17:l,18:u,19:18,20:h,21:f,22:d,23:p,24:m,25:g,26:y,27:v,28:x,29:b,30:k,31:A,33:w,35:T,36:C,37:24,38:E,40:S},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:r,13:n,14:i,15:a,16:o,17:l,18:u,19:18,20:h,21:f,22:d,23:p,24:m,25:g,26:y,27:v,28:x,29:b,30:k,31:A,33:w,35:T,36:C,37:24,38:E,40:S},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:s(function(M,F){if(F.recoverable)this.trace(M);else{var I=new Error(M);throw I.hash=F,I}},"parseError"),parse:s(function(M){var F=this,I=[0],O=[],z=[null],N=[],U=this.table,$="",W=0,ee=0,te=0,ce=2,Z=1,fe=N.slice.call(arguments,1),ne=Object.create(this.lexer),H={yy:{}};for(var Q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Q)&&(H.yy[Q]=this.yy[Q]);ne.setInput(M,H.yy),H.yy.lexer=ne,H.yy.parser=this,typeof ne.yylloc>"u"&&(ne.yylloc={});var K=ne.yylloc;N.push(K);var re=ne.options&&ne.options.ranges;typeof H.yy.parseError=="function"?this.parseError=H.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ie(ue){I.length=I.length-2*ue,z.length=z.length-ue,N.length=N.length-ue}s(ie,"popStack");function ye(){var ue;return ue=O.pop()||ne.lex()||Z,typeof ue!="number"&&(ue instanceof Array&&(O=ue,ue=O.pop()),ue=F.symbols_[ue]||ue),ue}s(ye,"lex");for(var j,De,oe,Re,Pe,Se,Ue={},Oe,_e,he,q;;){if(oe=I[I.length-1],this.defaultActions[oe]?Re=this.defaultActions[oe]:((j===null||typeof j>"u")&&(j=ye()),Re=U[oe]&&U[oe][j]),typeof Re>"u"||!Re.length||!Re[0]){var se="";q=[];for(Oe in U[oe])this.terminals_[Oe]&&Oe>ce&&q.push("'"+this.terminals_[Oe]+"'");ne.showPosition?se="Parse error on line "+(W+1)+`:
`+ne.showPosition()+`
Expecting `+q.join(", ")+", got '"+(this.terminals_[j]||j)+"'":se="Parse error on line "+(W+1)+": Unexpected "+(j==Z?"end of input":"'"+(this.terminals_[j]||j)+"'"),this.parseError(se,{text:ne.match,token:this.terminals_[j]||j,line:ne.yylineno,loc:K,expected:q})}if(Re[0]instanceof Array&&Re.length>1)throw new Error("Parse Error: multiple actions possible at state: "+oe+", token: "+j);switch(Re[0]){case 1:I.push(j),z.push(ne.yytext),N.push(ne.yylloc),I.push(Re[1]),j=null,De?(j=De,De=null):(ee=ne.yyleng,$=ne.yytext,W=ne.yylineno,K=ne.yylloc,te>0&&te--);break;case 2:if(_e=this.productions_[Re[1]][1],Ue.$=z[z.length-_e],Ue._$={first_line:N[N.length-(_e||1)].first_line,last_line:N[N.length-1].last_line,first_column:N[N.length-(_e||1)].first_column,last_column:N[N.length-1].last_column},re&&(Ue._$.range=[N[N.length-(_e||1)].range[0],N[N.length-1].range[1]]),Se=this.performAction.apply(Ue,[$,ee,W,H.yy,Re[1],z,N].concat(fe)),typeof Se<"u")return Se;_e&&(I=I.slice(0,-1*_e*2),z=z.slice(0,-1*_e),N=N.slice(0,-1*_e)),I.push(this.productions_[Re[1]][0]),z.push(Ue.$),N.push(Ue._$),he=U[I[I.length-2]][I[I.length-1]],I.push(he);break;case 3:return!0}}return!0},"parse")},D=function(){var P={EOF:1,parseError:s(function(F,I){if(this.yy.parser)this.yy.parser.parseError(F,I);else throw new Error(F)},"parseError"),setInput:s(function(M,F){return this.yy=F||this.yy||{},this._input=M,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:s(function(){var M=this._input[0];this.yytext+=M,this.yyleng++,this.offset++,this.match+=M,this.matched+=M;var F=M.match(/(?:\r\n?|\n).*/g);return F?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),M},"input"),unput:s(function(M){var F=M.length,I=M.split(/(?:\r\n?|\n)/g);this._input=M+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-F),this.offset-=F;var O=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),I.length-1&&(this.yylineno-=I.length-1);var z=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:I?(I.length===O.length?this.yylloc.first_column:0)+O[O.length-I.length].length-I[0].length:this.yylloc.first_column-F},this.options.ranges&&(this.yylloc.range=[z[0],z[0]+this.yyleng-F]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(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).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(M){this.unput(this.match.slice(M))},"less"),pastInput:s(function(){var M=this.matched.substr(0,this.matched.length-this.match.length);return(M.length>20?"...":"")+M.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var M=this.match;return M.length<20&&(M+=this._input.substr(0,20-M.length)),(M.substr(0,20)+(M.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var M=this.pastInput(),F=new Array(M.length+1).join("-");return M+this.upcomingInput()+`
`+F+"^"},"showPosition"),test_match:s(function(M,F){var I,O,z;if(this.options.backtrack_lexer&&(z={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&&(z.yylloc.range=this.yylloc.range.slice(0))),O=M[0].match(/(?:\r\n?|\n).*/g),O&&(this.yylineno+=O.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:O?O[O.length-1].length-O[O.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+M[0].length},this.yytext+=M[0],this.match+=M[0],this.matches=M,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(M[0].length),this.matched+=M[0],I=this.performAction.call(this,this.yy,this,F,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),I)return I;if(this._backtrack){for(var N in z)this[N]=z[N];return!1}return!1},"test_match"),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var M,F,I,O;this._more||(this.yytext="",this.match="");for(var z=this._currentRules(),N=0;NF[0].length)){if(F=I,O=N,this.options.backtrack_lexer){if(M=this.test_match(I,z[N]),M!==!1)return M;if(this._backtrack){F=!1;continue}else return!1}else if(!this.options.flex)break}return F?(M=this.test_match(F,z[O]),M!==!1?M:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var F=this.next();return F||this.lex()},"lex"),begin:s(function(F){this.conditionStack.push(F)},"begin"),popState:s(function(){var F=this.conditionStack.length-1;return F>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:s(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:s(function(F){return F=this.conditionStack.length-1-Math.abs(F||0),F>=0?this.conditionStack[F]:"INITIAL"},"topState"),pushState:s(function(F){this.begin(F)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s(function(F,I,O,z){var N=z;switch(O){case 0:return this.begin("open_directive"),"open_directive";break;case 1:return this.begin("acc_title"),31;break;case 2:return this.popState(),"acc_title_value";break;case 3:return this.begin("acc_descr"),33;break;case 4:return this.popState(),"acc_descr_value";break;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}();R.lexer=D;function L(){this.yy={}}return s(L,"Parser"),L.prototype=R,R.Parser=L,new L}();NI.parser=NI;doe=NI});var moe=is((OI,PI)=>{"use strict";(function(t,e){typeof OI=="object"&&typeof PI<"u"?PI.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_isoWeek=e()})(OI,function(){"use strict";var t="day";return function(e,r,n){var i=s(function(l){return l.add(4-l.isoWeekday(),t)},"a"),a=r.prototype;a.isoWeekYear=function(){return i(this).year()},a.isoWeek=function(l){if(!this.$utils().u(l))return this.add(7*(l-this.isoWeek()),t);var u,h,f,d,p=i(this),m=(u=this.isoWeekYear(),h=this.$u,f=(h?n.utc:n)().year(u).startOf("year"),d=4-f.isoWeekday(),f.isoWeekday()>4&&(d+=7),f.add(d,t));return p.diff(m,"week")+1},a.isoWeekday=function(l){return this.$utils().u(l)?this.day()||7:this.day(this.day()%7?l:l-7)};var o=a.startOf;a.startOf=function(l,u){var h=this.$utils(),f=!!h.u(u)||u;return h.p(l)==="isoweek"?f?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):o.bind(this)(l,u)}}})});var goe=is((BI,FI)=>{"use strict";(function(t,e){typeof BI=="object"&&typeof FI<"u"?FI.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_customParseFormat=e()})(BI,function(){"use strict";var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},e=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,n=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,a={},o=s(function(m){return(m=+m)+(m>68?1900:2e3)},"s"),l=s(function(m){return function(g){this[m]=+g}},"a"),u=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(g){if(!g||g==="Z")return 0;var y=g.match(/([+-]|\d\d)/g),v=60*y[1]+(+y[2]||0);return v===0?0:y[0]==="+"?-v:v}(m)}],h=s(function(m){var g=a[m];return g&&(g.indexOf?g:g.s.concat(g.f))},"h"),f=s(function(m,g){var y,v=a.meridiem;if(v){for(var x=1;x<=24;x+=1)if(m.indexOf(v(x,0,g))>-1){y=x>12;break}}else y=m===(g?"pm":"PM");return y},"u"),d={A:[i,function(m){this.afternoon=f(m,!1)}],a:[i,function(m){this.afternoon=f(m,!0)}],S:[/\d/,function(m){this.milliseconds=100*+m}],SS:[r,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[n,l("seconds")],ss:[n,l("seconds")],m:[n,l("minutes")],mm:[n,l("minutes")],H:[n,l("hours")],h:[n,l("hours")],HH:[n,l("hours")],hh:[n,l("hours")],D:[n,l("day")],DD:[r,l("day")],Do:[i,function(m){var g=a.ordinal,y=m.match(/\d+/);if(this.day=y[0],g)for(var v=1;v<=31;v+=1)g(v).replace(/\[|\]/g,"")===m&&(this.day=v)}],M:[n,l("month")],MM:[r,l("month")],MMM:[i,function(m){var g=h("months"),y=(h("monthsShort")||g.map(function(v){return v.slice(0,3)})).indexOf(m)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[i,function(m){var g=h("months").indexOf(m)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,l("year")],YY:[r,function(m){this.year=o(m)}],YYYY:[/\d{4}/,l("year")],Z:u,ZZ:u};function p(m){var g,y;g=m,y=a&&a.formats;for(var v=(m=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(C,E,S){var R=S&&S.toUpperCase();return E||y[S]||t[S]||y[R].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(D,L,P){return L||P.slice(1)})})).match(e),x=v.length,b=0;b-1)return new Date((F==="X"?1e3:1)*M);var O=p(F)(M),z=O.year,N=O.month,U=O.day,$=O.hours,W=O.minutes,ee=O.seconds,te=O.milliseconds,ce=O.zone,Z=new Date,fe=U||(z||N?1:Z.getDate()),ne=z||Z.getFullYear(),H=0;z&&!N||(H=N>0?N-1:Z.getMonth());var Q=$||0,K=W||0,re=ee||0,ie=te||0;return ce?new Date(Date.UTC(ne,H,fe,Q,K,re,ie+60*ce.offset*1e3)):I?new Date(Date.UTC(ne,H,fe,Q,K,re,ie)):new Date(ne,H,fe,Q,K,re,ie)}catch{return new Date("")}}(k,T,A),this.init(),R&&R!==!0&&(this.$L=this.locale(R).$L),S&&k!=this.format(T)&&(this.$d=new Date("")),a={}}else if(T instanceof Array)for(var D=T.length,L=1;L<=D;L+=1){w[1]=T[L-1];var P=y.apply(this,w);if(P.isValid()){this.$d=P.$d,this.$L=P.$L,this.init();break}L===D&&(this.$d=new Date(""))}else x.call(this,b)}}})});var yoe=is((zI,$I)=>{"use strict";(function(t,e){typeof zI=="object"&&typeof $I<"u"?$I.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_advancedFormat=e()})(zI,function(){"use strict";return function(t,e){var r=e.prototype,n=r.format;r.format=function(i){var a=this,o=this.$locale();if(!this.isValid())return n.bind(this)(i);var l=this.$utils(),u=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(h){switch(h){case"Q":return Math.ceil((a.$M+1)/3);case"Do":return o.ordinal(a.$D);case"gggg":return a.weekYear();case"GGGG":return a.isoWeekYear();case"wo":return o.ordinal(a.week(),"W");case"w":case"ww":return l.s(a.week(),h==="w"?1:2,"0");case"W":case"WW":return l.s(a.isoWeek(),h==="W"?1:2,"0");case"k":case"kk":return l.s(String(a.$H===0?24:a.$H),h==="k"?1:2,"0");case"X":return Math.floor(a.$d.getTime()/1e3);case"x":return a.$d.getTime();case"z":return"["+a.offsetName()+"]";case"zzz":return"["+a.offsetName("long")+"]";default:return h}});return n.bind(this)(u)}}})});function Ioe(t,e,r){let n=!0;for(;n;)n=!1,r.forEach(function(i){let a="^\\s*"+i+"\\s*$",o=new RegExp(a);t[0].match(o)&&(e[i]=!0,t.shift(1),n=!0)})}var boe,ao,koe,woe,Toe,voe,_c,qI,WI,HI,W2,H2,YI,XI,Aw,gg,jI,Eoe,KI,Y2,QI,ZI,Lw,GI,cOe,uOe,hOe,fOe,dOe,pOe,mOe,gOe,yOe,vOe,xOe,bOe,kOe,wOe,TOe,EOe,COe,SOe,_Oe,AOe,LOe,DOe,ROe,Coe,MOe,IOe,NOe,Soe,OOe,VI,_oe,Aoe,Sw,mg,POe,BOe,UI,_w,Ri,Loe,FOe,d0,zOe,xoe,$Oe,Doe,GOe,Roe,VOe,UOe,Moe,Noe=_(()=>{"use strict";boe=ka(_p(),1),ao=ka(cb(),1),koe=ka(moe(),1),woe=ka(goe(),1),Toe=ka(yoe(),1);it();gt();pr();Ci();ao.default.extend(koe.default);ao.default.extend(woe.default);ao.default.extend(Toe.default);voe={friday:5,saturday:6},_c="",qI="",HI="",W2=[],H2=[],YI=new Map,XI=[],Aw=[],gg="",jI="",Eoe=["active","done","crit","milestone"],KI=[],Y2=!1,QI=!1,ZI="sunday",Lw="saturday",GI=0,cOe=s(function(){XI=[],Aw=[],gg="",KI=[],Sw=0,UI=void 0,_w=void 0,Ri=[],_c="",qI="",jI="",WI=void 0,HI="",W2=[],H2=[],Y2=!1,QI=!1,GI=0,YI=new Map,br(),ZI="sunday",Lw="saturday"},"clear"),uOe=s(function(t){qI=t},"setAxisFormat"),hOe=s(function(){return qI},"getAxisFormat"),fOe=s(function(t){WI=t},"setTickInterval"),dOe=s(function(){return WI},"getTickInterval"),pOe=s(function(t){HI=t},"setTodayMarker"),mOe=s(function(){return HI},"getTodayMarker"),gOe=s(function(t){_c=t},"setDateFormat"),yOe=s(function(){Y2=!0},"enableInclusiveEndDates"),vOe=s(function(){return Y2},"endDatesAreInclusive"),xOe=s(function(){QI=!0},"enableTopAxis"),bOe=s(function(){return QI},"topAxisEnabled"),kOe=s(function(t){jI=t},"setDisplayMode"),wOe=s(function(){return jI},"getDisplayMode"),TOe=s(function(){return _c},"getDateFormat"),EOe=s(function(t){W2=t.toLowerCase().split(/[\s,]+/)},"setIncludes"),COe=s(function(){return W2},"getIncludes"),SOe=s(function(t){H2=t.toLowerCase().split(/[\s,]+/)},"setExcludes"),_Oe=s(function(){return H2},"getExcludes"),AOe=s(function(){return YI},"getLinks"),LOe=s(function(t){gg=t,XI.push(t)},"addSection"),DOe=s(function(){return XI},"getSections"),ROe=s(function(){let t=xoe(),e=10,r=0;for(;!t&&r[\d\w- ]+)/.exec(r);if(i!==null){let o=null;for(let u of i.groups.ids.split(" ")){let h=d0(u);h!==void 0&&(!o||h.endTime>o.endTime)&&(o=h)}if(o)return o.endTime;let l=new Date;return l.setHours(0,0,0,0),l}let a=(0,ao.default)(r,e.trim(),!0);if(a.isValid())return a.toDate();{V.debug("Invalid date:"+r),V.debug("With date format:"+e.trim());let o=new Date(r);if(o===void 0||isNaN(o.getTime())||o.getFullYear()<-1e4||o.getFullYear()>1e4)throw new Error("Invalid date:"+r);return o}},"getStartDate"),_oe=s(function(t){let e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return e!==null?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},"parseDuration"),Aoe=s(function(t,e,r,n=!1){r=r.trim();let a=/^until\s+(?[\d\w- ]+)/.exec(r);if(a!==null){let f=null;for(let p of a.groups.ids.split(" ")){let m=d0(p);m!==void 0&&(!f||m.startTime{window.open(r,"_self")}),YI.set(n,r))}),Doe(t,"clickable")},"setLink"),Doe=s(function(t,e){t.split(",").forEach(function(r){let n=d0(r);n!==void 0&&n.classes.push(e)})},"setClass"),GOe=s(function(t,e,r){if(le().securityLevel!=="loose"||e===void 0)return;let n=[];if(typeof r=="string"){n=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let a=0;a{dt.runFunc(e,...n)})},"setClickFun"),Roe=s(function(t,e){KI.push(function(){let r=document.querySelector(`[id="${t}"]`);r!==null&&r.addEventListener("click",function(){e()})},function(){let r=document.querySelector(`[id="${t}-text"]`);r!==null&&r.addEventListener("click",function(){e()})})},"pushFun"),VOe=s(function(t,e,r){t.split(",").forEach(function(n){GOe(n,e,r)}),Doe(t,"clickable")},"setClickEvent"),UOe=s(function(t){KI.forEach(function(e){e(t)})},"bindFunctions"),Moe={getConfig:s(()=>le().gantt,"getConfig"),clear:cOe,setDateFormat:gOe,getDateFormat:TOe,enableInclusiveEndDates:yOe,endDatesAreInclusive:vOe,enableTopAxis:xOe,topAxisEnabled:bOe,setAxisFormat:uOe,getAxisFormat:hOe,setTickInterval:fOe,getTickInterval:dOe,setTodayMarker:pOe,getTodayMarker:mOe,setAccTitle:Ar,getAccTitle:Gr,setDiagramTitle:an,getDiagramTitle:Qr,setDisplayMode:kOe,getDisplayMode:wOe,setAccDescription:Vr,getAccDescription:Ur,addSection:LOe,getSections:DOe,getTasks:ROe,addTask:FOe,findTaskById:d0,addTaskOrg:zOe,setIncludes:EOe,getIncludes:COe,setExcludes:SOe,getExcludes:_Oe,setClickEvent:VOe,setLink:$Oe,getLinks:AOe,bindFunctions:UOe,parseDuration:_oe,isInvalidDate:Coe,setWeekday:MOe,getWeekday:IOe,setWeekend:NOe};s(Ioe,"getTaskTags")});var Dw,qOe,Ooe,WOe,zu,HOe,Poe,Boe=_(()=>{"use strict";Dw=ka(cb(),1);it();Xt();Qt();gt();Un();qOe=s(function(){V.debug("Something is calling, setConf, remove the call")},"setConf"),Ooe={monday:wh,tuesday:H4,wednesday:Y4,thursday:Ql,friday:X4,saturday:j4,sunday:nl},WOe=s((t,e)=>{let r=[...t].map(()=>-1/0),n=[...t].sort((a,o)=>a.startTime-o.startTime||a.order-o.order),i=0;for(let a of n)for(let o=0;o=r[o]){r[o]=a.endTime,a.order=o+e,o>i&&(i=o);break}return i},"getMaxIntersections"),HOe=s(function(t,e,r,n){let i=le().gantt,a=le().securityLevel,o;a==="sandbox"&&(o=Me("#i"+e));let l=a==="sandbox"?Me(o.nodes()[0].contentDocument.body):Me("body"),u=a==="sandbox"?o.nodes()[0].contentDocument:document,h=u.getElementById(e);zu=h.parentElement.offsetWidth,zu===void 0&&(zu=1200),i.useWidth!==void 0&&(zu=i.useWidth);let f=n.db.getTasks(),d=[];for(let E of f)d.push(E.type);d=C(d);let p={},m=2*i.topPadding;if(n.db.getDisplayMode()==="compact"||i.displayMode==="compact"){let E={};for(let R of f)E[R.section]===void 0?E[R.section]=[R]:E[R.section].push(R);let S=0;for(let R of Object.keys(E)){let D=WOe(E[R],S)+1;S+=D,m+=D*(i.barHeight+i.barGap),p[R]=D}}else{m+=f.length*(i.barHeight+i.barGap);for(let E of d)p[E]=f.filter(S=>S.type===E).length}h.setAttribute("viewBox","0 0 "+zu+" "+m);let g=l.select(`[id="${e}"]`),y=Z4().domain([n4(f,function(E){return E.startTime}),r4(f,function(E){return E.endTime})]).rangeRound([0,zu-i.leftPadding-i.rightPadding]);function v(E,S){let R=E.startTime,D=S.startTime,L=0;return R>D?L=1:RU.order))].map(U=>E.find($=>$.order===U));g.append("g").selectAll("rect").data(I).enter().append("rect").attr("x",0).attr("y",function(U,$){return $=U.order,$*S+R-2}).attr("width",function(){return M-i.rightPadding/2}).attr("height",S).attr("class",function(U){for(let[$,W]of d.entries())if(U.type===W)return"section section"+$%i.numberSectionStyles;return"section section0"});let O=g.append("g").selectAll("rect").data(E).enter(),z=n.db.getLinks();if(O.append("rect").attr("id",function(U){return U.id}).attr("rx",3).attr("ry",3).attr("x",function(U){return U.milestone?y(U.startTime)+D+.5*(y(U.endTime)-y(U.startTime))-.5*L:y(U.startTime)+D}).attr("y",function(U,$){return $=U.order,$*S+R}).attr("width",function(U){return U.milestone?L:y(U.renderEndTime||U.endTime)-y(U.startTime)}).attr("height",L).attr("transform-origin",function(U,$){return $=U.order,(y(U.startTime)+D+.5*(y(U.endTime)-y(U.startTime))).toString()+"px "+($*S+R+.5*L).toString()+"px"}).attr("class",function(U){let $="task",W="";U.classes.length>0&&(W=U.classes.join(" "));let ee=0;for(let[ce,Z]of d.entries())U.type===Z&&(ee=ce%i.numberSectionStyles);let te="";return U.active?U.crit?te+=" activeCrit":te=" active":U.done?U.crit?te=" doneCrit":te=" done":U.crit&&(te+=" crit"),te.length===0&&(te=" task"),U.milestone&&(te=" milestone "+te),te+=ee,te+=" "+W,$+te}),O.append("text").attr("id",function(U){return U.id+"-text"}).text(function(U){return U.task}).attr("font-size",i.fontSize).attr("x",function(U){let $=y(U.startTime),W=y(U.renderEndTime||U.endTime);U.milestone&&($+=.5*(y(U.endTime)-y(U.startTime))-.5*L),U.milestone&&(W=$+L);let ee=this.getBBox().width;return ee>W-$?W+ee+1.5*i.leftPadding>M?$+D-5:W+D+5:(W-$)/2+$+D}).attr("y",function(U,$){return $=U.order,$*S+i.barHeight/2+(i.fontSize/2-2)+R}).attr("text-height",L).attr("class",function(U){let $=y(U.startTime),W=y(U.endTime);U.milestone&&(W=$+L);let ee=this.getBBox().width,te="";U.classes.length>0&&(te=U.classes.join(" "));let ce=0;for(let[fe,ne]of d.entries())U.type===ne&&(ce=fe%i.numberSectionStyles);let Z="";return U.active&&(U.crit?Z="activeCritText"+ce:Z="activeText"+ce),U.done?U.crit?Z=Z+" doneCritText"+ce:Z=Z+" doneText"+ce:U.crit&&(Z=Z+" critText"+ce),U.milestone&&(Z+=" milestoneText"),ee>W-$?W+ee+1.5*i.leftPadding>M?te+" taskTextOutsideLeft taskTextOutside"+ce+" "+Z:te+" taskTextOutsideRight taskTextOutside"+ce+" "+Z+" width-"+ee:te+" taskText taskText"+ce+" "+Z+" width-"+ee}),le().securityLevel==="sandbox"){let U;U=Me("#i"+e);let $=U.nodes()[0].contentDocument;O.filter(function(W){return z.has(W.id)}).each(function(W){var ee=$.querySelector("#"+W.id),te=$.querySelector("#"+W.id+"-text");let ce=ee.parentNode;var Z=$.createElement("a");Z.setAttribute("xlink:href",z.get(W.id)),Z.setAttribute("target","_top"),ce.appendChild(Z),Z.appendChild(ee),Z.appendChild(te)})}}s(b,"drawRects");function k(E,S,R,D,L,P,M,F){if(M.length===0&&F.length===0)return;let I,O;for(let{startTime:ee,endTime:te}of P)(I===void 0||eeO)&&(O=te);if(!I||!O)return;if((0,Dw.default)(O).diff((0,Dw.default)(I),"year")>5){V.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}let z=n.db.getDateFormat(),N=[],U=null,$=(0,Dw.default)(I);for(;$.valueOf()<=O;)n.db.isInvalidDate($,z,M,F)?U?U.end=$:U={start:$,end:$}:U&&(N.push(U),U=null),$=$.add(1,"d");g.append("g").selectAll("rect").data(N).enter().append("rect").attr("id",function(ee){return"exclude-"+ee.start.format("YYYY-MM-DD")}).attr("x",function(ee){return y(ee.start)+R}).attr("y",i.gridLineStartPadding).attr("width",function(ee){let te=ee.end.add(1,"day");return y(te)-y(ee.start)}).attr("height",L-S-i.gridLineStartPadding).attr("transform-origin",function(ee,te){return(y(ee.start)+R+.5*(y(ee.end)-y(ee.start))).toString()+"px "+(te*E+.5*L).toString()+"px"}).attr("class","exclude-range")}s(k,"drawExcludeDays");function A(E,S,R,D){let L=AC(y).tickSize(-D+S+i.gridLineStartPadding).tickFormat(nd(n.db.getAxisFormat()||i.axisFormat||"%Y-%m-%d")),M=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(n.db.getTickInterval()||i.tickInterval);if(M!==null){let F=M[1],I=M[2],O=n.db.getWeekday()||i.weekday;switch(I){case"millisecond":L.ticks(jl.every(F));break;case"second":L.ticks(Vs.every(F));break;case"minute":L.ticks(ou.every(F));break;case"hour":L.ticks(lu.every(F));break;case"day":L.ticks(vo.every(F));break;case"week":L.ticks(Ooe[O].every(F));break;case"month":L.ticks(cu.every(F));break}}if(g.append("g").attr("class","grid").attr("transform","translate("+E+", "+(D-50)+")").call(L).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),n.db.topAxisEnabled()||i.topAxis){let F=_C(y).tickSize(-D+S+i.gridLineStartPadding).tickFormat(nd(n.db.getAxisFormat()||i.axisFormat||"%Y-%m-%d"));if(M!==null){let I=M[1],O=M[2],z=n.db.getWeekday()||i.weekday;switch(O){case"millisecond":F.ticks(jl.every(I));break;case"second":F.ticks(Vs.every(I));break;case"minute":F.ticks(ou.every(I));break;case"hour":F.ticks(lu.every(I));break;case"day":F.ticks(vo.every(I));break;case"week":F.ticks(Ooe[z].every(I));break;case"month":F.ticks(cu.every(I));break}}g.append("g").attr("class","grid").attr("transform","translate("+E+", "+S+")").call(F).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}s(A,"makeGrid");function w(E,S){let R=0,D=Object.keys(p).map(L=>[L,p[L]]);g.append("g").selectAll("text").data(D).enter().append(function(L){let P=L[0].split($e.lineBreakRegex),M=-(P.length-1)/2,F=u.createElementNS("http://www.w3.org/2000/svg","text");F.setAttribute("dy",M+"em");for(let[I,O]of P.entries()){let z=u.createElementNS("http://www.w3.org/2000/svg","tspan");z.setAttribute("alignment-baseline","central"),z.setAttribute("x","10"),I>0&&z.setAttribute("dy","1em"),z.textContent=O,F.appendChild(z)}return F}).attr("x",10).attr("y",function(L,P){if(P>0)for(let M=0;M{"use strict";YOe=s(t=>`
.mermaid-main-font {
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
}
.exclude-range {
fill: ${t.excludeBkgColor};
}
.section {
stroke: none;
opacity: 0.2;
}
.section0 {
fill: ${t.sectionBkgColor};
}
.section2 {
fill: ${t.sectionBkgColor2};
}
.section1,
.section3 {
fill: ${t.altSectionBkgColor};
opacity: 0.2;
}
.sectionTitle0 {
fill: ${t.titleColor};
}
.sectionTitle1 {
fill: ${t.titleColor};
}
.sectionTitle2 {
fill: ${t.titleColor};
}
.sectionTitle3 {
fill: ${t.titleColor};
}
.sectionTitle {
text-anchor: start;
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
}
/* Grid and axis */
.grid .tick {
stroke: ${t.gridColor};
opacity: 0.8;
shape-rendering: crispEdges;
}
.grid .tick text {
font-family: ${t.fontFamily};
fill: ${t.textColor};
}
.grid path {
stroke-width: 0;
}
/* Today line */
.today {
fill: none;
stroke: ${t.todayLineColor};
stroke-width: 2px;
}
/* Task styling */
/* Default task */
.task {
stroke-width: 2;
}
.taskText {
text-anchor: middle;
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
}
.taskTextOutsideRight {
fill: ${t.taskTextDarkColor};
text-anchor: start;
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
}
.taskTextOutsideLeft {
fill: ${t.taskTextDarkColor};
text-anchor: end;
}
/* Special case clickable */
.task.clickable {
cursor: pointer;
}
.taskText.clickable {
cursor: pointer;
fill: ${t.taskTextClickableColor} !important;
font-weight: bold;
}
.taskTextOutsideLeft.clickable {
cursor: pointer;
fill: ${t.taskTextClickableColor} !important;
font-weight: bold;
}
.taskTextOutsideRight.clickable {
cursor: pointer;
fill: ${t.taskTextClickableColor} !important;
font-weight: bold;
}
/* Specific task settings for the sections*/
.taskText0,
.taskText1,
.taskText2,
.taskText3 {
fill: ${t.taskTextColor};
}
.task0,
.task1,
.task2,
.task3 {
fill: ${t.taskBkgColor};
stroke: ${t.taskBorderColor};
}
.taskTextOutside0,
.taskTextOutside2
{
fill: ${t.taskTextOutsideColor};
}
.taskTextOutside1,
.taskTextOutside3 {
fill: ${t.taskTextOutsideColor};
}
/* Active task */
.active0,
.active1,
.active2,
.active3 {
fill: ${t.activeTaskBkgColor};
stroke: ${t.activeTaskBorderColor};
}
.activeText0,
.activeText1,
.activeText2,
.activeText3 {
fill: ${t.taskTextDarkColor} !important;
}
/* Completed task */
.done0,
.done1,
.done2,
.done3 {
stroke: ${t.doneTaskBorderColor};
fill: ${t.doneTaskBkgColor};
stroke-width: 2;
}
.doneText0,
.doneText1,
.doneText2,
.doneText3 {
fill: ${t.taskTextDarkColor} !important;
}
/* Tasks on the critical line */
.crit0,
.crit1,
.crit2,
.crit3 {
stroke: ${t.critBorderColor};
fill: ${t.critBkgColor};
stroke-width: 2;
}
.activeCrit0,
.activeCrit1,
.activeCrit2,
.activeCrit3 {
stroke: ${t.critBorderColor};
fill: ${t.activeTaskBkgColor};
stroke-width: 2;
}
.doneCrit0,
.doneCrit1,
.doneCrit2,
.doneCrit3 {
stroke: ${t.critBorderColor};
fill: ${t.doneTaskBkgColor};
stroke-width: 2;
cursor: pointer;
shape-rendering: crispEdges;
}
.milestone {
transform: rotate(45deg) scale(0.8,0.8);
}
.milestoneText {
font-style: italic;
}
.doneCritText0,
.doneCritText1,
.doneCritText2,
.doneCritText3 {
fill: ${t.taskTextDarkColor} !important;
}
.activeCritText0,
.activeCritText1,
.activeCritText2,
.activeCritText3 {
fill: ${t.taskTextDarkColor} !important;
}
.titleText {
text-anchor: middle;
font-size: 18px;
fill: ${t.titleColor||t.textColor};
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
}
`,"getStyles"),Foe=YOe});var $oe={};ur($oe,{diagram:()=>XOe});var XOe,Goe=_(()=>{"use strict";poe();Noe();Boe();zoe();XOe={parser:doe,db:Moe,renderer:Poe,styles:Foe}});var qoe,Woe=_(()=>{"use strict";V2();it();qoe={parse:s(async t=>{let e=await Bu("info",t);V.debug(e)},"parse")}});var X2,JI=_(()=>{X2="11.0.2"});var JOe,ePe,Hoe,Yoe=_(()=>{"use strict";JI();JOe={version:X2},ePe=s(()=>JOe.version,"getVersion"),Hoe={getVersion:ePe}});var Bo,p0=_(()=>{"use strict";Xt();gt();Bo=s(t=>{let{securityLevel:e}=le(),r=Me("body");if(e==="sandbox"){let a=Me(`#i${t}`).node()?.contentDocument??document;r=Me(a.body)}return r.select(`#${t}`)},"selectSvgElement")});var tPe,Xoe,joe=_(()=>{"use strict";it();p0();Un();tPe=s((t,e,r)=>{V.debug(`rendering info diagram
`+t);let n=Bo(e);xr(n,100,400,!0),n.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${r}`)},"draw"),Xoe={draw:tPe}});var Koe={};ur(Koe,{diagram:()=>rPe});var rPe,Qoe=_(()=>{"use strict";Woe();Yoe();joe();rPe={parser:qoe,db:Hoe,renderer:Xoe}});var ele,eN,Rw,tN,aPe,sPe,oPe,lPe,cPe,uPe,hPe,Mw,rN=_(()=>{"use strict";it();Ci();Pl();ele=dr.pie,eN={sections:new Map,showData:!1,config:ele},Rw=eN.sections,tN=eN.showData,aPe=structuredClone(ele),sPe=s(()=>structuredClone(aPe),"getConfig"),oPe=s(()=>{Rw=new Map,tN=eN.showData,br()},"clear"),lPe=s(({label:t,value:e})=>{Rw.has(t)||(Rw.set(t,e),V.debug(`added new section: ${t}, with value: ${e}`))},"addSection"),cPe=s(()=>Rw,"getSections"),uPe=s(t=>{tN=t},"setShowData"),hPe=s(()=>tN,"getShowData"),Mw={getConfig:sPe,clear:oPe,setDiagramTitle:an,getDiagramTitle:Qr,setAccTitle:Ar,getAccTitle:Gr,setAccDescription:Vr,getAccDescription:Ur,addSection:lPe,getSections:cPe,setShowData:uPe,getShowData:hPe}});var fPe,tle,rle=_(()=>{"use strict";V2();it();kw();rN();fPe=s((t,e)=>{dg(t,e),e.setShowData(t.showData),t.sections.map(e.addSection)},"populateDb"),tle={parse:s(async t=>{let e=await Bu("pie",t);V.debug(e),fPe(e,Mw)},"parse")}});var dPe,nle,ile=_(()=>{"use strict";dPe=s(t=>`
.pieCircle{
stroke: ${t.pieStrokeColor};
stroke-width : ${t.pieStrokeWidth};
opacity : ${t.pieOpacity};
}
.pieOuterCircle{
stroke: ${t.pieOuterStrokeColor};
stroke-width: ${t.pieOuterStrokeWidth};
fill: none;
}
.pieTitleText {
text-anchor: middle;
font-size: ${t.pieTitleTextSize};
fill: ${t.pieTitleTextColor};
font-family: ${t.fontFamily};
}
.slice {
font-family: ${t.fontFamily};
fill: ${t.pieSectionTextColor};
font-size:${t.pieSectionTextSize};
// fill: white;
}
.legend text {
fill: ${t.pieLegendTextColor};
font-family: ${t.fontFamily};
font-size: ${t.pieLegendTextSize};
}
`,"getStyles"),nle=dPe});var pPe,mPe,ale,sle=_(()=>{"use strict";Xt();gt();it();p0();Un();pr();pPe=s(t=>{let e=[...t.entries()].map(n=>({label:n[0],value:n[1]})).sort((n,i)=>i.value-n.value);return i3().value(n=>n.value)(e)},"createPieArcs"),mPe=s((t,e,r,n)=>{V.debug(`rendering pie chart
`+t);let i=n.db,a=le(),o=ms(i.getConfig(),a.pie),l=40,u=18,h=4,f=450,d=f,p=Bo(e),m=p.append("g");m.attr("transform","translate("+d/2+","+f/2+")");let{themeVariables:g}=a,[y]=nc(g.pieOuterStrokeWidth);y??=2;let v=o.textPosition,x=Math.min(d,f)/2-l,b=sl().innerRadius(0).outerRadius(x),k=sl().innerRadius(x*v).outerRadius(x*v);m.append("circle").attr("cx",0).attr("cy",0).attr("r",x+y/2).attr("class","pieOuterCircle");let A=i.getSections(),w=pPe(A),T=[g.pie1,g.pie2,g.pie3,g.pie4,g.pie5,g.pie6,g.pie7,g.pie8,g.pie9,g.pie10,g.pie11,g.pie12],C=au(T);m.selectAll("mySlices").data(w).enter().append("path").attr("d",b).attr("fill",L=>C(L.data.label)).attr("class","pieCircle");let E=0;A.forEach(L=>{E+=L}),m.selectAll("mySlices").data(w).enter().append("text").text(L=>(L.data.value/E*100).toFixed(0)+"%").attr("transform",L=>"translate("+k.centroid(L)+")").style("text-anchor","middle").attr("class","slice"),m.append("text").text(i.getDiagramTitle()).attr("x",0).attr("y",-(f-50)/2).attr("class","pieTitleText");let S=m.selectAll(".legend").data(C.domain()).enter().append("g").attr("class","legend").attr("transform",(L,P)=>{let M=u+h,F=M*C.domain().length/2,I=12*u,O=P*M-F;return"translate("+I+","+O+")"});S.append("rect").attr("width",u).attr("height",u).style("fill",C).style("stroke",C),S.data(w).append("text").attr("x",u+h).attr("y",u-h).text(L=>{let{label:P,value:M}=L.data;return i.getShowData()?`${P} [${M}]`:P});let R=Math.max(...S.selectAll("text").nodes().map(L=>L?.getBoundingClientRect().width??0)),D=d+l+u+h+R;p.attr("viewBox",`0 0 ${D} ${f}`),xr(p,f,D,o.useMaxWidth)},"draw"),ale={draw:mPe}});var ole={};ur(ole,{diagram:()=>gPe});var gPe,lle=_(()=>{"use strict";rle();rN();ile();sle();gPe={parser:tle,db:Mw,renderer:ale,styles:nle}});var nN,hle,fle=_(()=>{"use strict";nN=function(){var t=s(function(Ie,Ne,Be,ze){for(Be=Be||{},ze=Ie.length;ze--;Be[Ie[ze]]=Ne);return Be},"o"),e=[1,3],r=[1,4],n=[1,5],i=[1,6],a=[1,7],o=[1,4,5,10,12,13,14,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],l=[1,4,5,10,12,13,14,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],u=[55,56,57],h=[2,36],f=[1,37],d=[1,36],p=[1,38],m=[1,35],g=[1,43],y=[1,41],v=[1,14],x=[1,23],b=[1,18],k=[1,19],A=[1,20],w=[1,21],T=[1,22],C=[1,24],E=[1,25],S=[1,26],R=[1,27],D=[1,28],L=[1,29],P=[1,32],M=[1,33],F=[1,34],I=[1,39],O=[1,40],z=[1,42],N=[1,44],U=[1,62],$=[1,61],W=[4,5,8,10,12,13,14,18,44,47,49,55,56,57,63,64,65,66,67],ee=[1,65],te=[1,66],ce=[1,67],Z=[1,68],fe=[1,69],ne=[1,70],H=[1,71],Q=[1,72],K=[1,73],re=[1,74],ie=[1,75],ye=[1,76],j=[4,5,6,7,8,9,10,11,12,13,14,15,18],De=[1,90],oe=[1,91],Re=[1,92],Pe=[1,99],Se=[1,93],Ue=[1,96],Oe=[1,94],_e=[1,95],he=[1,97],q=[1,98],se=[1,102],ue=[10,55,56,57],X=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],ae={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:s(function(Ne,Be,ze,qe,Fe,we,Je){var We=we.length-1;switch(Fe){case 23:this.$=we[We];break;case 24:this.$=we[We-1]+""+we[We];break;case 26:this.$=we[We-1]+we[We];break;case 27:this.$=[we[We].trim()];break;case 28:we[We-2].push(we[We].trim()),this.$=we[We-2];break;case 29:this.$=we[We-4],qe.addClass(we[We-2],we[We]);break;case 37:this.$=[];break;case 42:this.$=we[We].trim(),qe.setDiagramTitle(this.$);break;case 43:this.$=we[We].trim(),qe.setAccTitle(this.$);break;case 44:case 45:this.$=we[We].trim(),qe.setAccDescription(this.$);break;case 46:qe.addSection(we[We].substr(8)),this.$=we[We].substr(8);break;case 47:qe.addPoint(we[We-3],"",we[We-1],we[We],[]);break;case 48:qe.addPoint(we[We-4],we[We-3],we[We-1],we[We],[]);break;case 49:qe.addPoint(we[We-4],"",we[We-2],we[We-1],we[We]);break;case 50:qe.addPoint(we[We-5],we[We-4],we[We-2],we[We-1],we[We]);break;case 51:qe.setXAxisLeftText(we[We-2]),qe.setXAxisRightText(we[We]);break;case 52:we[We-1].text+=" \u27F6 ",qe.setXAxisLeftText(we[We-1]);break;case 53:qe.setXAxisLeftText(we[We]);break;case 54:qe.setYAxisBottomText(we[We-2]),qe.setYAxisTopText(we[We]);break;case 55:we[We-1].text+=" \u27F6 ",qe.setYAxisBottomText(we[We-1]);break;case 56:qe.setYAxisBottomText(we[We]);break;case 57:qe.setQuadrant1Text(we[We]);break;case 58:qe.setQuadrant2Text(we[We]);break;case 59:qe.setQuadrant3Text(we[We]);break;case 60:qe.setQuadrant4Text(we[We]);break;case 64:this.$={text:we[We],type:"text"};break;case 65:this.$={text:we[We-1].text+""+we[We],type:we[We-1].type};break;case 66:this.$={text:we[We],type:"text"};break;case 67:this.$={text:we[We],type:"markdown"};break;case 68:this.$=we[We];break;case 69:this.$=we[We-1]+""+we[We];break}},"anonymous"),table:[{18:e,26:1,27:2,28:r,55:n,56:i,57:a},{1:[3]},{18:e,26:8,27:2,28:r,55:n,56:i,57:a},{18:e,26:9,27:2,28:r,55:n,56:i,57:a},t(o,[2,33],{29:10}),t(l,[2,61]),t(l,[2,62]),t(l,[2,63]),{1:[2,30]},{1:[2,31]},t(u,h,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:f,5:d,10:p,12:m,13:g,14:y,18:v,25:x,35:b,37:k,39:A,41:w,42:T,48:C,50:E,51:S,52:R,53:D,54:L,60:P,61:M,63:F,64:I,65:O,66:z,67:N}),t(o,[2,34]),{27:45,55:n,56:i,57:a},t(u,[2,37]),t(u,h,{24:13,32:15,33:16,34:17,43:30,58:31,31:46,4:f,5:d,10:p,12:m,13:g,14:y,18:v,25:x,35:b,37:k,39:A,41:w,42:T,48:C,50:E,51:S,52:R,53:D,54:L,60:P,61:M,63:F,64:I,65:O,66:z,67:N}),t(u,[2,39]),t(u,[2,40]),t(u,[2,41]),{36:[1,47]},{38:[1,48]},{40:[1,49]},t(u,[2,45]),t(u,[2,46]),{18:[1,50]},{4:f,5:d,10:p,12:m,13:g,14:y,43:51,58:31,60:P,61:M,63:F,64:I,65:O,66:z,67:N},{4:f,5:d,10:p,12:m,13:g,14:y,43:52,58:31,60:P,61:M,63:F,64:I,65:O,66:z,67:N},{4:f,5:d,10:p,12:m,13:g,14:y,43:53,58:31,60:P,61:M,63:F,64:I,65:O,66:z,67:N},{4:f,5:d,10:p,12:m,13:g,14:y,43:54,58:31,60:P,61:M,63:F,64:I,65:O,66:z,67:N},{4:f,5:d,10:p,12:m,13:g,14:y,43:55,58:31,60:P,61:M,63:F,64:I,65:O,66:z,67:N},{4:f,5:d,10:p,12:m,13:g,14:y,43:56,58:31,60:P,61:M,63:F,64:I,65:O,66:z,67:N},{4:f,5:d,8:U,10:p,12:m,13:g,14:y,18:$,44:[1,57],47:[1,58],58:60,59:59,63:F,64:I,65:O,66:z,67:N},t(W,[2,64]),t(W,[2,66]),t(W,[2,67]),t(W,[2,70]),t(W,[2,71]),t(W,[2,72]),t(W,[2,73]),t(W,[2,74]),t(W,[2,75]),t(W,[2,76]),t(W,[2,77]),t(W,[2,78]),t(W,[2,79]),t(W,[2,80]),t(o,[2,35]),t(u,[2,38]),t(u,[2,42]),t(u,[2,43]),t(u,[2,44]),{3:64,4:ee,5:te,6:ce,7:Z,8:fe,9:ne,10:H,11:Q,12:K,13:re,14:ie,15:ye,21:63},t(u,[2,53],{59:59,58:60,4:f,5:d,8:U,10:p,12:m,13:g,14:y,18:$,49:[1,77],63:F,64:I,65:O,66:z,67:N}),t(u,[2,56],{59:59,58:60,4:f,5:d,8:U,10:p,12:m,13:g,14:y,18:$,49:[1,78],63:F,64:I,65:O,66:z,67:N}),t(u,[2,57],{59:59,58:60,4:f,5:d,8:U,10:p,12:m,13:g,14:y,18:$,63:F,64:I,65:O,66:z,67:N}),t(u,[2,58],{59:59,58:60,4:f,5:d,8:U,10:p,12:m,13:g,14:y,18:$,63:F,64:I,65:O,66:z,67:N}),t(u,[2,59],{59:59,58:60,4:f,5:d,8:U,10:p,12:m,13:g,14:y,18:$,63:F,64:I,65:O,66:z,67:N}),t(u,[2,60],{59:59,58:60,4:f,5:d,8:U,10:p,12:m,13:g,14:y,18:$,63:F,64:I,65:O,66:z,67:N}),{45:[1,79]},{44:[1,80]},t(W,[2,65]),t(W,[2,81]),t(W,[2,82]),t(W,[2,83]),{3:82,4:ee,5:te,6:ce,7:Z,8:fe,9:ne,10:H,11:Q,12:K,13:re,14:ie,15:ye,18:[1,81]},t(j,[2,23]),t(j,[2,1]),t(j,[2,2]),t(j,[2,3]),t(j,[2,4]),t(j,[2,5]),t(j,[2,6]),t(j,[2,7]),t(j,[2,8]),t(j,[2,9]),t(j,[2,10]),t(j,[2,11]),t(j,[2,12]),t(u,[2,52],{58:31,43:83,4:f,5:d,10:p,12:m,13:g,14:y,60:P,61:M,63:F,64:I,65:O,66:z,67:N}),t(u,[2,55],{58:31,43:84,4:f,5:d,10:p,12:m,13:g,14:y,60:P,61:M,63:F,64:I,65:O,66:z,67:N}),{46:[1,85]},{45:[1,86]},{4:De,5:oe,6:Re,8:Pe,11:Se,13:Ue,16:89,17:Oe,18:_e,19:he,20:q,22:88,23:87},t(j,[2,24]),t(u,[2,51],{59:59,58:60,4:f,5:d,8:U,10:p,12:m,13:g,14:y,18:$,63:F,64:I,65:O,66:z,67:N}),t(u,[2,54],{59:59,58:60,4:f,5:d,8:U,10:p,12:m,13:g,14:y,18:$,63:F,64:I,65:O,66:z,67:N}),t(u,[2,47],{22:88,16:89,23:100,4:De,5:oe,6:Re,8:Pe,11:Se,13:Ue,17:Oe,18:_e,19:he,20:q}),{46:[1,101]},t(u,[2,29],{10:se}),t(ue,[2,27],{16:103,4:De,5:oe,6:Re,8:Pe,11:Se,13:Ue,17:Oe,18:_e,19:he,20:q}),t(X,[2,25]),t(X,[2,13]),t(X,[2,14]),t(X,[2,15]),t(X,[2,16]),t(X,[2,17]),t(X,[2,18]),t(X,[2,19]),t(X,[2,20]),t(X,[2,21]),t(X,[2,22]),t(u,[2,49],{10:se}),t(u,[2,48],{22:88,16:89,23:104,4:De,5:oe,6:Re,8:Pe,11:Se,13:Ue,17:Oe,18:_e,19:he,20:q}),{4:De,5:oe,6:Re,8:Pe,11:Se,13:Ue,16:89,17:Oe,18:_e,19:he,20:q,22:105},t(X,[2,26]),t(u,[2,50],{10:se}),t(ue,[2,28],{16:103,4:De,5:oe,6:Re,8:Pe,11:Se,13:Ue,17:Oe,18:_e,19:he,20:q})],defaultActions:{8:[2,30],9:[2,31]},parseError:s(function(Ne,Be){if(Be.recoverable)this.trace(Ne);else{var ze=new Error(Ne);throw ze.hash=Be,ze}},"parseError"),parse:s(function(Ne){var Be=this,ze=[0],qe=[],Fe=[null],we=[],Je=this.table,We="",or=0,Cr=0,Ut=0,ar=2,ut=1,Rt=we.slice.call(arguments,1),Qe=Object.create(this.lexer),Dt={yy:{}};for(var qt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,qt)&&(Dt.yy[qt]=this.yy[qt]);Qe.setInput(Ne,Dt.yy),Dt.yy.lexer=Qe,Dt.yy.parser=this,typeof Qe.yylloc>"u"&&(Qe.yylloc={});var yt=Qe.yylloc;we.push(yt);var Et=Qe.options&&Qe.options.ranges;typeof Dt.yy.parseError=="function"?this.parseError=Dt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(En){ze.length=ze.length-2*En,Fe.length=Fe.length-En,we.length=we.length-En}s(pt,"popStack");function Wt(){var En;return En=qe.pop()||Qe.lex()||ut,typeof En!="number"&&(En instanceof Array&&(qe=En,En=qe.pop()),En=Be.symbols_[En]||En),En}s(Wt,"lex");for(var ot,fr,vt,Bt,Sr,zi,rr={},Vn,Tn,Ki,ci;;){if(vt=ze[ze.length-1],this.defaultActions[vt]?Bt=this.defaultActions[vt]:((ot===null||typeof ot>"u")&&(ot=Wt()),Bt=Je[vt]&&Je[vt][ot]),typeof Bt>"u"||!Bt.length||!Bt[0]){var Pa="";ci=[];for(Vn in Je[vt])this.terminals_[Vn]&&Vn>ar&&ci.push("'"+this.terminals_[Vn]+"'");Qe.showPosition?Pa="Parse error on line "+(or+1)+`:
`+Qe.showPosition()+`
Expecting `+ci.join(", ")+", got '"+(this.terminals_[ot]||ot)+"'":Pa="Parse error on line "+(or+1)+": Unexpected "+(ot==ut?"end of input":"'"+(this.terminals_[ot]||ot)+"'"),this.parseError(Pa,{text:Qe.match,token:this.terminals_[ot]||ot,line:Qe.yylineno,loc:yt,expected:ci})}if(Bt[0]instanceof Array&&Bt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+vt+", token: "+ot);switch(Bt[0]){case 1:ze.push(ot),Fe.push(Qe.yytext),we.push(Qe.yylloc),ze.push(Bt[1]),ot=null,fr?(ot=fr,fr=null):(Cr=Qe.yyleng,We=Qe.yytext,or=Qe.yylineno,yt=Qe.yylloc,Ut>0&&Ut--);break;case 2:if(Tn=this.productions_[Bt[1]][1],rr.$=Fe[Fe.length-Tn],rr._$={first_line:we[we.length-(Tn||1)].first_line,last_line:we[we.length-1].last_line,first_column:we[we.length-(Tn||1)].first_column,last_column:we[we.length-1].last_column},Et&&(rr._$.range=[we[we.length-(Tn||1)].range[0],we[we.length-1].range[1]]),zi=this.performAction.apply(rr,[We,Cr,or,Dt.yy,Bt[1],Fe,we].concat(Rt)),typeof zi<"u")return zi;Tn&&(ze=ze.slice(0,-1*Tn*2),Fe=Fe.slice(0,-1*Tn),we=we.slice(0,-1*Tn)),ze.push(this.productions_[Bt[1]][0]),Fe.push(rr.$),we.push(rr._$),Ki=Je[ze[ze.length-2]][ze[ze.length-1]],ze.push(Ki);break;case 3:return!0}}return!0},"parse")},pe=function(){var Ie={EOF:1,parseError:s(function(Be,ze){if(this.yy.parser)this.yy.parser.parseError(Be,ze);else throw new Error(Be)},"parseError"),setInput:s(function(Ne,Be){return this.yy=Be||this.yy||{},this._input=Ne,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:s(function(){var Ne=this._input[0];this.yytext+=Ne,this.yyleng++,this.offset++,this.match+=Ne,this.matched+=Ne;var Be=Ne.match(/(?:\r\n?|\n).*/g);return Be?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Ne},"input"),unput:s(function(Ne){var Be=Ne.length,ze=Ne.split(/(?:\r\n?|\n)/g);this._input=Ne+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Be),this.offset-=Be;var qe=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),ze.length-1&&(this.yylineno-=ze.length-1);var Fe=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:ze?(ze.length===qe.length?this.yylloc.first_column:0)+qe[qe.length-ze.length].length-ze[0].length:this.yylloc.first_column-Be},this.options.ranges&&(this.yylloc.range=[Fe[0],Fe[0]+this.yyleng-Be]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(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).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(Ne){this.unput(this.match.slice(Ne))},"less"),pastInput:s(function(){var Ne=this.matched.substr(0,this.matched.length-this.match.length);return(Ne.length>20?"...":"")+Ne.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var Ne=this.match;return Ne.length<20&&(Ne+=this._input.substr(0,20-Ne.length)),(Ne.substr(0,20)+(Ne.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var Ne=this.pastInput(),Be=new Array(Ne.length+1).join("-");return Ne+this.upcomingInput()+`
`+Be+"^"},"showPosition"),test_match:s(function(Ne,Be){var ze,qe,Fe;if(this.options.backtrack_lexer&&(Fe={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&&(Fe.yylloc.range=this.yylloc.range.slice(0))),qe=Ne[0].match(/(?:\r\n?|\n).*/g),qe&&(this.yylineno+=qe.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:qe?qe[qe.length-1].length-qe[qe.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Ne[0].length},this.yytext+=Ne[0],this.match+=Ne[0],this.matches=Ne,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(Ne[0].length),this.matched+=Ne[0],ze=this.performAction.call(this,this.yy,this,Be,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ze)return ze;if(this._backtrack){for(var we in Fe)this[we]=Fe[we];return!1}return!1},"test_match"),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Ne,Be,ze,qe;this._more||(this.yytext="",this.match="");for(var Fe=this._currentRules(),we=0;weBe[0].length)){if(Be=ze,qe=we,this.options.backtrack_lexer){if(Ne=this.test_match(ze,Fe[we]),Ne!==!1)return Ne;if(this._backtrack){Be=!1;continue}else return!1}else if(!this.options.flex)break}return Be?(Ne=this.test_match(Be,Fe[qe]),Ne!==!1?Ne:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var Be=this.next();return Be||this.lex()},"lex"),begin:s(function(Be){this.conditionStack.push(Be)},"begin"),popState:s(function(){var Be=this.conditionStack.length-1;return Be>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:s(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:s(function(Be){return Be=this.conditionStack.length-1-Math.abs(Be||0),Be>=0?this.conditionStack[Be]:"INITIAL"},"topState"),pushState:s(function(Be){this.begin(Be)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s(function(Be,ze,qe,Fe){var we=Fe;switch(qe){case 0:break;case 1:break;case 2:return 55;case 3:break;case 4:return this.begin("title"),35;break;case 5:return this.popState(),"title_value";break;case 6:return this.begin("acc_title"),37;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),39;break;case 9:return this.popState(),"acc_descr_value";break;case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin("md_string");break;case 22:return"MD_STR";case 23:this.popState();break;case 24:this.begin("string");break;case 25:this.popState();break;case 26:return"STR";case 27:this.begin("class_name");break;case 28:return this.popState(),47;break;case 29:return this.begin("point_start"),44;break;case 30:return this.begin("point_x"),45;break;case 31:this.popState();break;case 32:this.popState(),this.begin("point_y");break;case 33:return this.popState(),46;break;case 34:return 28;case 35:return 4;case 36:return 11;case 37:return 64;case 38:return 10;case 39:return 65;case 40:return 65;case 41:return 14;case 42:return 13;case 43:return 67;case 44:return 66;case 45:return 12;case 46:return 8;case 47:return 5;case 48:return 18;case 49:return 56;case 50:return 63;case 51:return 57}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],inclusive:!0}}};return Ie}();ae.lexer=pe;function de(){this.yy={}}return s(de,"Parser"),de.prototype=ae,ae.Parser=de,new de}();nN.parser=nN;hle=nN});var Ja,Iw,dle=_(()=>{"use strict";Xt();Pl();it();vb();Ja=j0(),Iw=class{constructor(){this.classes=new Map;this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}static{s(this,"QuadrantBuilder")}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:dr.quadrantChart?.chartWidth||500,chartWidth:dr.quadrantChart?.chartHeight||500,titlePadding:dr.quadrantChart?.titlePadding||10,titleFontSize:dr.quadrantChart?.titleFontSize||20,quadrantPadding:dr.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:dr.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:dr.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:dr.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:dr.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:dr.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:dr.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:dr.quadrantChart?.pointTextPadding||5,pointLabelFontSize:dr.quadrantChart?.pointLabelFontSize||12,pointRadius:dr.quadrantChart?.pointRadius||5,xAxisPosition:dr.quadrantChart?.xAxisPosition||"top",yAxisPosition:dr.quadrantChart?.yAxisPosition||"left",quadrantInternalBorderStrokeWidth:dr.quadrantChart?.quadrantInternalBorderStrokeWidth||1,quadrantExternalBorderStrokeWidth:dr.quadrantChart?.quadrantExternalBorderStrokeWidth||2}}getDefaultThemeConfig(){return{quadrant1Fill:Ja.quadrant1Fill,quadrant2Fill:Ja.quadrant2Fill,quadrant3Fill:Ja.quadrant3Fill,quadrant4Fill:Ja.quadrant4Fill,quadrant1TextFill:Ja.quadrant1TextFill,quadrant2TextFill:Ja.quadrant2TextFill,quadrant3TextFill:Ja.quadrant3TextFill,quadrant4TextFill:Ja.quadrant4TextFill,quadrantPointFill:Ja.quadrantPointFill,quadrantPointTextFill:Ja.quadrantPointTextFill,quadrantXAxisTextFill:Ja.quadrantXAxisTextFill,quadrantYAxisTextFill:Ja.quadrantYAxisTextFill,quadrantTitleFill:Ja.quadrantTitleFill,quadrantInternalBorderStrokeFill:Ja.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:Ja.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,V.info("clear called")}setData(e){this.data={...this.data,...e}}addPoints(e){this.data.points=[...e,...this.data.points]}addClass(e,r){this.classes.set(e,r)}setConfig(e){V.trace("setConfig called with: ",e),this.config={...this.config,...e}}setThemeConfig(e){V.trace("setThemeConfig called with: ",e),this.themeConfig={...this.themeConfig,...e}}calculateSpace(e,r,n,i){let a=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,o={top:e==="top"&&r?a:0,bottom:e==="bottom"&&r?a:0},l=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,u={left:this.config.yAxisPosition==="left"&&n?l:0,right:this.config.yAxisPosition==="right"&&n?l:0},h=this.config.titleFontSize+this.config.titlePadding*2,f={top:i?h:0},d=this.config.quadrantPadding+u.left,p=this.config.quadrantPadding+o.top+f.top,m=this.config.chartWidth-this.config.quadrantPadding*2-u.left-u.right,g=this.config.chartHeight-this.config.quadrantPadding*2-o.top-o.bottom-f.top,y=m/2,v=g/2;return{xAxisSpace:o,yAxisSpace:u,titleSpace:f,quadrantSpace:{quadrantLeft:d,quadrantTop:p,quadrantWidth:m,quadrantHalfWidth:y,quadrantHeight:g,quadrantHalfHeight:v}}}getAxisLabels(e,r,n,i){let{quadrantSpace:a,titleSpace:o}=i,{quadrantHalfHeight:l,quadrantHeight:u,quadrantLeft:h,quadrantHalfWidth:f,quadrantTop:d,quadrantWidth:p}=a,m=!!this.data.xAxisRightText,g=!!this.data.yAxisTopText,y=[];return this.data.xAxisLeftText&&r&&y.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:h+(m?f/2:0),y:e==="top"?this.config.xAxisLabelPadding+o.top:this.config.xAxisLabelPadding+d+u+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:m?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&r&&y.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:h+f+(m?f/2:0),y:e==="top"?this.config.xAxisLabelPadding+o.top:this.config.xAxisLabelPadding+d+u+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:m?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&n&&y.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+h+p+this.config.quadrantPadding,y:d+u-(g?l/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:g?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&n&&y.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+h+p+this.config.quadrantPadding,y:d+l-(g?l/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:g?"center":"left",horizontalPos:"top",rotation:-90}),y}getQuadrants(e){let{quadrantSpace:r}=e,{quadrantHalfHeight:n,quadrantLeft:i,quadrantHalfWidth:a,quadrantTop:o}=r,l=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i+a,y:o,width:a,height:n,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i,y:o,width:a,height:n,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i,y:o+n,width:a,height:n,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i+a,y:o+n,width:a,height:n,fill:this.themeConfig.quadrant4Fill}];for(let u of l)u.text.x=u.x+u.width/2,this.data.points.length===0?(u.text.y=u.y+u.height/2,u.text.horizontalPos="middle"):(u.text.y=u.y+this.config.quadrantTextTopPadding,u.text.horizontalPos="top");return l}getQuadrantPoints(e){let{quadrantSpace:r}=e,{quadrantHeight:n,quadrantLeft:i,quadrantTop:a,quadrantWidth:o}=r,l=rl().domain([0,1]).range([i,o+i]),u=rl().domain([0,1]).range([n+a,a]);return this.data.points.map(f=>{let d=this.classes.get(f.className);return d&&(f={...d,...f}),{x:l(f.x),y:u(f.y),fill:f.color??this.themeConfig.quadrantPointFill,radius:f.radius??this.config.pointRadius,text:{text:f.text,fill:this.themeConfig.quadrantPointTextFill,x:l(f.x),y:u(f.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:f.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:f.strokeWidth??"0px"}})}getBorders(e){let r=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:n}=e,{quadrantHalfHeight:i,quadrantHeight:a,quadrantLeft:o,quadrantHalfWidth:l,quadrantTop:u,quadrantWidth:h}=n;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:o-r,y1:u,x2:o+h+r,y2:u},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:o+h,y1:u+r,x2:o+h,y2:u+a-r},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:o-r,y1:u+a,x2:o+h+r,y2:u+a},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:o,y1:u+r,x2:o,y2:u+a-r},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:o+l,y1:u+r,x2:o+l,y2:u+a-r},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:o+r,y1:u+i,x2:o+h-r,y2:u+i}]}getTitle(e){if(e)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){let e=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),r=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),n=this.config.showTitle&&!!this.data.titleText,i=this.data.points.length>0?"bottom":this.config.xAxisPosition,a=this.calculateSpace(i,e,r,n);return{points:this.getQuadrantPoints(a),quadrants:this.getQuadrants(a),axisLabels:this.getAxisLabels(i,e,r,a),borderLines:this.getBorders(a),title:this.getTitle(n)}}}});function iN(t){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(t)}function ple(t){return!/^\d+$/.test(t)}function mle(t){return!/^\d+px$/.test(t)}var m0,gle=_(()=>{"use strict";m0=class extends Error{static{s(this,"InvalidStyleError")}constructor(e,r,n){super(`value for ${e} ${r} is invalid, please use a valid ${n}`),this.name="InvalidStyleError"}};s(iN,"validateHexCode");s(ple,"validateNumber");s(mle,"validateSizeInPixels")});function $u(t){return $r(t.trim(),xPe)}function bPe(t){fa.setData({quadrant1Text:$u(t.text)})}function kPe(t){fa.setData({quadrant2Text:$u(t.text)})}function wPe(t){fa.setData({quadrant3Text:$u(t.text)})}function TPe(t){fa.setData({quadrant4Text:$u(t.text)})}function EPe(t){fa.setData({xAxisLeftText:$u(t.text)})}function CPe(t){fa.setData({xAxisRightText:$u(t.text)})}function SPe(t){fa.setData({yAxisTopText:$u(t.text)})}function _Pe(t){fa.setData({yAxisBottomText:$u(t.text)})}function aN(t){let e={};for(let r of t){let[n,i]=r.trim().split(/\s*:\s*/);if(n==="radius"){if(ple(i))throw new m0(n,i,"number");e.radius=parseInt(i)}else if(n==="color"){if(iN(i))throw new m0(n,i,"hex code");e.color=i}else if(n==="stroke-color"){if(iN(i))throw new m0(n,i,"hex code");e.strokeColor=i}else if(n==="stroke-width"){if(mle(i))throw new m0(n,i,"number of pixels (eg. 10px)");e.strokeWidth=i}else throw new Error(`style named ${n} is not supported.`)}return e}function APe(t,e,r,n,i){let a=aN(i);fa.addPoints([{x:r,y:n,text:$u(t.text),className:e,...a}])}function LPe(t,e){fa.addClass(t,aN(e))}function DPe(t){fa.setConfig({chartWidth:t})}function RPe(t){fa.setConfig({chartHeight:t})}function MPe(){let t=le(),{themeVariables:e,quadrantChart:r}=t;return r&&fa.setConfig(r),fa.setThemeConfig({quadrant1Fill:e.quadrant1Fill,quadrant2Fill:e.quadrant2Fill,quadrant3Fill:e.quadrant3Fill,quadrant4Fill:e.quadrant4Fill,quadrant1TextFill:e.quadrant1TextFill,quadrant2TextFill:e.quadrant2TextFill,quadrant3TextFill:e.quadrant3TextFill,quadrant4TextFill:e.quadrant4TextFill,quadrantPointFill:e.quadrantPointFill,quadrantPointTextFill:e.quadrantPointTextFill,quadrantXAxisTextFill:e.quadrantXAxisTextFill,quadrantYAxisTextFill:e.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:e.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:e.quadrantInternalBorderStrokeFill,quadrantTitleFill:e.quadrantTitleFill}),fa.setData({titleText:Qr()}),fa.build()}var xPe,fa,IPe,yle,vle=_(()=>{"use strict";gt();Qt();Ci();dle();gle();xPe=le();s($u,"textSanitizer");fa=new Iw;s(bPe,"setQuadrant1Text");s(kPe,"setQuadrant2Text");s(wPe,"setQuadrant3Text");s(TPe,"setQuadrant4Text");s(EPe,"setXAxisLeftText");s(CPe,"setXAxisRightText");s(SPe,"setYAxisTopText");s(_Pe,"setYAxisBottomText");s(aN,"parseStyles");s(APe,"addPoint");s(LPe,"addClass");s(DPe,"setWidth");s(RPe,"setHeight");s(MPe,"getQuadrantData");IPe=s(function(){fa.clear(),br()},"clear"),yle={setWidth:DPe,setHeight:RPe,setQuadrant1Text:bPe,setQuadrant2Text:kPe,setQuadrant3Text:wPe,setQuadrant4Text:TPe,setXAxisLeftText:EPe,setXAxisRightText:CPe,setYAxisTopText:SPe,setYAxisBottomText:_Pe,parseStyles:aN,addPoint:APe,addClass:LPe,getQuadrantData:MPe,clear:IPe,setAccTitle:Ar,getAccTitle:Gr,setDiagramTitle:an,getDiagramTitle:Qr,getAccDescription:Ur,setAccDescription:Vr}});var NPe,xle,ble=_(()=>{"use strict";Xt();gt();it();Un();NPe=s((t,e,r,n)=>{function i(E){return E==="top"?"hanging":"middle"}s(i,"getDominantBaseLine");function a(E){return E==="left"?"start":"middle"}s(a,"getTextAnchor");function o(E){return`translate(${E.x}, ${E.y}) rotate(${E.rotation||0})`}s(o,"getTransformation");let l=le();V.debug(`Rendering quadrant chart
`+t);let u=l.securityLevel,h;u==="sandbox"&&(h=Me("#i"+e));let d=(u==="sandbox"?Me(h.nodes()[0].contentDocument.body):Me("body")).select(`[id="${e}"]`),p=d.append("g").attr("class","main"),m=l.quadrantChart?.chartWidth??500,g=l.quadrantChart?.chartHeight??500;xr(d,g,m,l.quadrantChart?.useMaxWidth??!0),d.attr("viewBox","0 0 "+m+" "+g),n.db.setHeight(g),n.db.setWidth(m);let y=n.db.getQuadrantData(),v=p.append("g").attr("class","quadrants"),x=p.append("g").attr("class","border"),b=p.append("g").attr("class","data-points"),k=p.append("g").attr("class","labels"),A=p.append("g").attr("class","title");y.title&&A.append("text").attr("x",0).attr("y",0).attr("fill",y.title.fill).attr("font-size",y.title.fontSize).attr("dominant-baseline",i(y.title.horizontalPos)).attr("text-anchor",a(y.title.verticalPos)).attr("transform",o(y.title)).text(y.title.text),y.borderLines&&x.selectAll("line").data(y.borderLines).enter().append("line").attr("x1",E=>E.x1).attr("y1",E=>E.y1).attr("x2",E=>E.x2).attr("y2",E=>E.y2).style("stroke",E=>E.strokeFill).style("stroke-width",E=>E.strokeWidth);let w=v.selectAll("g.quadrant").data(y.quadrants).enter().append("g").attr("class","quadrant");w.append("rect").attr("x",E=>E.x).attr("y",E=>E.y).attr("width",E=>E.width).attr("height",E=>E.height).attr("fill",E=>E.fill),w.append("text").attr("x",0).attr("y",0).attr("fill",E=>E.text.fill).attr("font-size",E=>E.text.fontSize).attr("dominant-baseline",E=>i(E.text.horizontalPos)).attr("text-anchor",E=>a(E.text.verticalPos)).attr("transform",E=>o(E.text)).text(E=>E.text.text),k.selectAll("g.label").data(y.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(E=>E.text).attr("fill",E=>E.fill).attr("font-size",E=>E.fontSize).attr("dominant-baseline",E=>i(E.horizontalPos)).attr("text-anchor",E=>a(E.verticalPos)).attr("transform",E=>o(E));let C=b.selectAll("g.data-point").data(y.points).enter().append("g").attr("class","data-point");C.append("circle").attr("cx",E=>E.x).attr("cy",E=>E.y).attr("r",E=>E.radius).attr("fill",E=>E.fill).attr("stroke",E=>E.strokeColor).attr("stroke-width",E=>E.strokeWidth),C.append("text").attr("x",0).attr("y",0).text(E=>E.text.text).attr("fill",E=>E.text.fill).attr("font-size",E=>E.text.fontSize).attr("dominant-baseline",E=>i(E.text.horizontalPos)).attr("text-anchor",E=>a(E.text.verticalPos)).attr("transform",E=>o(E.text))},"draw"),xle={draw:NPe}});var kle={};ur(kle,{diagram:()=>OPe});var OPe,wle=_(()=>{"use strict";fle();vle();ble();OPe={parser:hle,db:yle,renderer:xle,styles:s(()=>"","styles")}});var sN,Cle,Sle=_(()=>{"use strict";sN=function(){var t=s(function(F,I,O,z){for(O=O||{},z=F.length;z--;O[F[z]]=I);return O},"o"),e=[1,10,12,14,16,18,19,21,23],r=[2,6],n=[1,3],i=[1,5],a=[1,6],o=[1,7],l=[1,5,10,12,14,16,18,19,21,23,34,35,36],u=[1,25],h=[1,26],f=[1,28],d=[1,29],p=[1,30],m=[1,31],g=[1,32],y=[1,33],v=[1,34],x=[1,35],b=[1,36],k=[1,37],A=[1,43],w=[1,42],T=[1,47],C=[1,50],E=[1,10,12,14,16,18,19,21,23,34,35,36],S=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],R=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],D=[1,64],L={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:s(function(I,O,z,N,U,$,W){var ee=$.length-1;switch(U){case 5:N.setOrientation($[ee]);break;case 9:N.setDiagramTitle($[ee].text.trim());break;case 12:N.setLineData({text:"",type:"text"},$[ee]);break;case 13:N.setLineData($[ee-1],$[ee]);break;case 14:N.setBarData({text:"",type:"text"},$[ee]);break;case 15:N.setBarData($[ee-1],$[ee]);break;case 16:this.$=$[ee].trim(),N.setAccTitle(this.$);break;case 17:case 18:this.$=$[ee].trim(),N.setAccDescription(this.$);break;case 19:this.$=$[ee-1];break;case 20:this.$=[Number($[ee-2]),...$[ee]];break;case 21:this.$=[Number($[ee])];break;case 22:N.setXAxisTitle($[ee]);break;case 23:N.setXAxisTitle($[ee-1]);break;case 24:N.setXAxisTitle({type:"text",text:""});break;case 25:N.setXAxisBand($[ee]);break;case 26:N.setXAxisRangeData(Number($[ee-2]),Number($[ee]));break;case 27:this.$=$[ee-1];break;case 28:this.$=[$[ee-2],...$[ee]];break;case 29:this.$=[$[ee]];break;case 30:N.setYAxisTitle($[ee]);break;case 31:N.setYAxisTitle($[ee-1]);break;case 32:N.setYAxisTitle({type:"text",text:""});break;case 33:N.setYAxisRangeData(Number($[ee-2]),Number($[ee]));break;case 37:this.$={text:$[ee],type:"text"};break;case 38:this.$={text:$[ee],type:"text"};break;case 39:this.$={text:$[ee],type:"markdown"};break;case 40:this.$=$[ee];break;case 41:this.$=$[ee-1]+""+$[ee];break}},"anonymous"),table:[t(e,r,{3:1,4:2,7:4,5:n,34:i,35:a,36:o}),{1:[3]},t(e,r,{4:2,7:4,3:8,5:n,34:i,35:a,36:o}),t(e,r,{4:2,7:4,6:9,3:10,5:n,8:[1,11],34:i,35:a,36:o}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},t(l,[2,34]),t(l,[2,35]),t(l,[2,36]),{1:[2,1]},t(e,r,{4:2,7:4,3:21,5:n,34:i,35:a,36:o}),{1:[2,3]},t(l,[2,5]),t(e,[2,7],{4:22,34:i,35:a,36:o}),{11:23,37:24,38:u,39:h,40:27,41:f,42:d,43:p,44:m,45:g,46:y,47:v,48:x,49:b,50:k},{11:39,13:38,24:A,27:w,29:40,30:41,37:24,38:u,39:h,40:27,41:f,42:d,43:p,44:m,45:g,46:y,47:v,48:x,49:b,50:k},{11:45,15:44,27:T,33:46,37:24,38:u,39:h,40:27,41:f,42:d,43:p,44:m,45:g,46:y,47:v,48:x,49:b,50:k},{11:49,17:48,24:C,37:24,38:u,39:h,40:27,41:f,42:d,43:p,44:m,45:g,46:y,47:v,48:x,49:b,50:k},{11:52,17:51,24:C,37:24,38:u,39:h,40:27,41:f,42:d,43:p,44:m,45:g,46:y,47:v,48:x,49:b,50:k},{20:[1,53]},{22:[1,54]},t(E,[2,18]),{1:[2,2]},t(E,[2,8]),t(E,[2,9]),t(S,[2,37],{40:55,41:f,42:d,43:p,44:m,45:g,46:y,47:v,48:x,49:b,50:k}),t(S,[2,38]),t(S,[2,39]),t(R,[2,40]),t(R,[2,42]),t(R,[2,43]),t(R,[2,44]),t(R,[2,45]),t(R,[2,46]),t(R,[2,47]),t(R,[2,48]),t(R,[2,49]),t(R,[2,50]),t(R,[2,51]),t(E,[2,10]),t(E,[2,22],{30:41,29:56,24:A,27:w}),t(E,[2,24]),t(E,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:u,39:h,40:27,41:f,42:d,43:p,44:m,45:g,46:y,47:v,48:x,49:b,50:k},t(E,[2,11]),t(E,[2,30],{33:60,27:T}),t(E,[2,32]),{31:[1,61]},t(E,[2,12]),{17:62,24:C},{25:63,27:D},t(E,[2,14]),{17:65,24:C},t(E,[2,16]),t(E,[2,17]),t(R,[2,41]),t(E,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},t(E,[2,31]),{27:[1,69]},t(E,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},t(E,[2,15]),t(E,[2,26]),t(E,[2,27]),{11:59,32:72,37:24,38:u,39:h,40:27,41:f,42:d,43:p,44:m,45:g,46:y,47:v,48:x,49:b,50:k},t(E,[2,33]),t(E,[2,19]),{25:73,27:D},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:s(function(I,O){if(O.recoverable)this.trace(I);else{var z=new Error(I);throw z.hash=O,z}},"parseError"),parse:s(function(I){var O=this,z=[0],N=[],U=[null],$=[],W=this.table,ee="",te=0,ce=0,Z=0,fe=2,ne=1,H=$.slice.call(arguments,1),Q=Object.create(this.lexer),K={yy:{}};for(var re in this.yy)Object.prototype.hasOwnProperty.call(this.yy,re)&&(K.yy[re]=this.yy[re]);Q.setInput(I,K.yy),K.yy.lexer=Q,K.yy.parser=this,typeof Q.yylloc>"u"&&(Q.yylloc={});var ie=Q.yylloc;$.push(ie);var ye=Q.options&&Q.options.ranges;typeof K.yy.parseError=="function"?this.parseError=K.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function j(ae){z.length=z.length-2*ae,U.length=U.length-ae,$.length=$.length-ae}s(j,"popStack");function De(){var ae;return ae=N.pop()||Q.lex()||ne,typeof ae!="number"&&(ae instanceof Array&&(N=ae,ae=N.pop()),ae=O.symbols_[ae]||ae),ae}s(De,"lex");for(var oe,Re,Pe,Se,Ue,Oe,_e={},he,q,se,ue;;){if(Pe=z[z.length-1],this.defaultActions[Pe]?Se=this.defaultActions[Pe]:((oe===null||typeof oe>"u")&&(oe=De()),Se=W[Pe]&&W[Pe][oe]),typeof Se>"u"||!Se.length||!Se[0]){var X="";ue=[];for(he in W[Pe])this.terminals_[he]&&he>fe&&ue.push("'"+this.terminals_[he]+"'");Q.showPosition?X="Parse error on line "+(te+1)+`:
`+Q.showPosition()+`
Expecting `+ue.join(", ")+", got '"+(this.terminals_[oe]||oe)+"'":X="Parse error on line "+(te+1)+": Unexpected "+(oe==ne?"end of input":"'"+(this.terminals_[oe]||oe)+"'"),this.parseError(X,{text:Q.match,token:this.terminals_[oe]||oe,line:Q.yylineno,loc:ie,expected:ue})}if(Se[0]instanceof Array&&Se.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Pe+", token: "+oe);switch(Se[0]){case 1:z.push(oe),U.push(Q.yytext),$.push(Q.yylloc),z.push(Se[1]),oe=null,Re?(oe=Re,Re=null):(ce=Q.yyleng,ee=Q.yytext,te=Q.yylineno,ie=Q.yylloc,Z>0&&Z--);break;case 2:if(q=this.productions_[Se[1]][1],_e.$=U[U.length-q],_e._$={first_line:$[$.length-(q||1)].first_line,last_line:$[$.length-1].last_line,first_column:$[$.length-(q||1)].first_column,last_column:$[$.length-1].last_column},ye&&(_e._$.range=[$[$.length-(q||1)].range[0],$[$.length-1].range[1]]),Oe=this.performAction.apply(_e,[ee,ce,te,K.yy,Se[1],U,$].concat(H)),typeof Oe<"u")return Oe;q&&(z=z.slice(0,-1*q*2),U=U.slice(0,-1*q),$=$.slice(0,-1*q)),z.push(this.productions_[Se[1]][0]),U.push(_e.$),$.push(_e._$),se=W[z[z.length-2]][z[z.length-1]],z.push(se);break;case 3:return!0}}return!0},"parse")},P=function(){var F={EOF:1,parseError:s(function(O,z){if(this.yy.parser)this.yy.parser.parseError(O,z);else throw new Error(O)},"parseError"),setInput:s(function(I,O){return this.yy=O||this.yy||{},this._input=I,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:s(function(){var I=this._input[0];this.yytext+=I,this.yyleng++,this.offset++,this.match+=I,this.matched+=I;var O=I.match(/(?:\r\n?|\n).*/g);return O?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),I},"input"),unput:s(function(I){var O=I.length,z=I.split(/(?:\r\n?|\n)/g);this._input=I+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-O),this.offset-=O;var N=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),z.length-1&&(this.yylineno-=z.length-1);var U=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:z?(z.length===N.length?this.yylloc.first_column:0)+N[N.length-z.length].length-z[0].length:this.yylloc.first_column-O},this.options.ranges&&(this.yylloc.range=[U[0],U[0]+this.yyleng-O]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(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).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(I){this.unput(this.match.slice(I))},"less"),pastInput:s(function(){var I=this.matched.substr(0,this.matched.length-this.match.length);return(I.length>20?"...":"")+I.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var I=this.match;return I.length<20&&(I+=this._input.substr(0,20-I.length)),(I.substr(0,20)+(I.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var I=this.pastInput(),O=new Array(I.length+1).join("-");return I+this.upcomingInput()+`
`+O+"^"},"showPosition"),test_match:s(function(I,O){var z,N,U;if(this.options.backtrack_lexer&&(U={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&&(U.yylloc.range=this.yylloc.range.slice(0))),N=I[0].match(/(?:\r\n?|\n).*/g),N&&(this.yylineno+=N.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:N?N[N.length-1].length-N[N.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+I[0].length},this.yytext+=I[0],this.match+=I[0],this.matches=I,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(I[0].length),this.matched+=I[0],z=this.performAction.call(this,this.yy,this,O,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),z)return z;if(this._backtrack){for(var $ in U)this[$]=U[$];return!1}return!1},"test_match"),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var I,O,z,N;this._more||(this.yytext="",this.match="");for(var U=this._currentRules(),$=0;$O[0].length)){if(O=z,N=$,this.options.backtrack_lexer){if(I=this.test_match(z,U[$]),I!==!1)return I;if(this._backtrack){O=!1;continue}else return!1}else if(!this.options.flex)break}return O?(I=this.test_match(O,U[N]),I!==!1?I:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var O=this.next();return O||this.lex()},"lex"),begin:s(function(O){this.conditionStack.push(O)},"begin"),popState:s(function(){var O=this.conditionStack.length-1;return O>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:s(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:s(function(O){return O=this.conditionStack.length-1-Math.abs(O||0),O>=0?this.conditionStack[O]:"INITIAL"},"topState"),pushState:s(function(O){this.begin(O)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s(function(O,z,N,U){var $=U;switch(N){case 0:break;case 1:break;case 2:return this.popState(),34;break;case 3:return this.popState(),34;break;case 4:return 34;case 5:break;case 6:return 10;case 7:return this.pushState("acc_title"),19;break;case 8:return this.popState(),"acc_title_value";break;case 9:return this.pushState("acc_descr"),21;break;case 10:return this.popState(),"acc_descr_value";break;case 11:this.pushState("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 5;case 15:return 8;case 16:return this.pushState("axis_data"),"X_AXIS";break;case 17:return this.pushState("axis_data"),"Y_AXIS";break;case 18:return this.pushState("axis_band_data"),24;break;case 19:return 31;case 20:return this.pushState("data"),16;break;case 21:return this.pushState("data"),18;break;case 22:return this.pushState("data_inner"),24;break;case 23:return 27;case 24:return this.popState(),26;break;case 25:this.popState();break;case 26:this.pushState("string");break;case 27:this.popState();break;case 28:return"STR";case 29:return 24;case 30:return 26;case 31:return 43;case 32:return"COLON";case 33:return 44;case 34:return 28;case 35:return 45;case 36:return 46;case 37:return 48;case 38:return 50;case 39:return 47;case 40:return 41;case 41:return 49;case 42:return 42;case 43:break;case 44:return 35;case 45:return 36}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\{)/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,23,24,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,20,21,22,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,24,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,23,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[27,28],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0}}};return F}();L.lexer=P;function M(){this.yy={}}return s(M,"Parser"),M.prototype=L,L.Parser=M,new M}();sN.parser=sN;Cle=sN});function oN(t){return t.type==="bar"}function Nw(t){return t.type==="band"}function yg(t){return t.type==="linear"}var Ow=_(()=>{"use strict";s(oN,"isBarPlot");s(Nw,"isBandAxisData");s(yg,"isLinearAxisData")});var vg,lN=_(()=>{"use strict";ic();vg=class{constructor(e){this.parentGroup=e}static{s(this,"TextDimensionCalculatorWithFont")}getMaxDimension(e,r){if(!this.parentGroup)return{width:e.reduce((a,o)=>Math.max(o.length,a),0)*r,height:r};let n={width:0,height:0},i=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",r);for(let a of e){let o=KY(i,1,a),l=o?o.width:a.length*r,u=o?o.height:r;n.width=Math.max(n.width,l),n.height=Math.max(n.height,u)}return i.remove(),n}}});var xg,cN=_(()=>{"use strict";xg=class{constructor(e,r,n,i){this.axisConfig=e;this.title=r;this.textDimensionCalculator=n;this.axisThemeConfig=i;this.boundingRect={x:0,y:0,width:0,height:0};this.axisPosition="left";this.showTitle=!1;this.showLabel=!1;this.showTick=!1;this.showAxisLine=!1;this.outerPadding=0;this.titleTextHeight=0;this.labelTextHeight=0;this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left"}static{s(this,"BaseAxis")}setRange(e){this.range=e,this.axisPosition==="left"||this.axisPosition==="right"?this.boundingRect.height=e[1]-e[0]:this.boundingRect.width=e[1]-e[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(e){this.axisPosition=e,this.setRange(this.range)}getTickDistance(){let e=this.getRange();return Math.abs(e[0]-e[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(e=>e.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){.7*this.getTickDistance()>this.outerPadding*2&&(this.outerPadding=Math.floor(.7*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(e){let r=e.height;if(this.axisConfig.showAxisLine&&r>this.axisConfig.axisLineWidth&&(r-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){let n=this.getLabelDimension(),i=.2*e.width;this.outerPadding=Math.min(n.width/2,i);let a=n.height+this.axisConfig.labelPadding*2;this.labelTextHeight=n.height,a<=r&&(r-=a,this.showLabel=!0)}if(this.axisConfig.showTick&&r>=this.axisConfig.tickLength&&(this.showTick=!0,r-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){let n=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),i=n.height+this.axisConfig.titlePadding*2;this.titleTextHeight=n.height,i<=r&&(r-=i,this.showTitle=!0)}this.boundingRect.width=e.width,this.boundingRect.height=e.height-r}calculateSpaceIfDrawnVertical(e){let r=e.width;if(this.axisConfig.showAxisLine&&r>this.axisConfig.axisLineWidth&&(r-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){let n=this.getLabelDimension(),i=.2*e.height;this.outerPadding=Math.min(n.height/2,i);let a=n.width+this.axisConfig.labelPadding*2;a<=r&&(r-=a,this.showLabel=!0)}if(this.axisConfig.showTick&&r>=this.axisConfig.tickLength&&(this.showTick=!0,r-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){let n=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),i=n.height+this.axisConfig.titlePadding*2;this.titleTextHeight=n.height,i<=r&&(r-=i,this.showTitle=!0)}this.boundingRect.width=e.width-r,this.boundingRect.height=e.height}calculateSpace(e){return this.axisPosition==="left"||this.axisPosition==="right"?this.calculateSpaceIfDrawnVertical(e):this.calculateSpaceIfDrawnHorizontally(e),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}getDrawableElementsForLeftAxis(){let e=[];if(this.showAxisLine){let r=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;e.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${r},${this.boundingRect.y} L ${r},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&e.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(r=>({text:r.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(r),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){let r=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);e.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(n=>({path:`M ${r},${this.getScaleValue(n)} L ${r-this.axisConfig.tickLength},${this.getScaleValue(n)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&e.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]}),e}getDrawableElementsForBottomAxis(){let e=[];if(this.showAxisLine){let r=this.boundingRect.y+this.axisConfig.axisLineWidth/2;e.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${r} L ${this.boundingRect.x+this.boundingRect.width},${r}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&e.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(r=>({text:r.toString(),x:this.getScaleValue(r),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){let r=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);e.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(n=>({path:`M ${this.getScaleValue(n)},${r} L ${this.getScaleValue(n)},${r+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&e.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),e}getDrawableElementsForTopAxis(){let e=[];if(this.showAxisLine){let r=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;e.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${r} L ${this.boundingRect.x+this.boundingRect.width},${r}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&e.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(r=>({text:r.toString(),x:this.getScaleValue(r),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+this.axisConfig.titlePadding*2:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){let r=this.boundingRect.y;e.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(n=>({path:`M ${this.getScaleValue(n)},${r+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(n)},${r+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&e.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),e}getDrawableElements(){if(this.axisPosition==="left")return this.getDrawableElementsForLeftAxis();if(this.axisPosition==="right")throw Error("Drawing of right axis is not implemented");return this.axisPosition==="bottom"?this.getDrawableElementsForBottomAxis():this.axisPosition==="top"?this.getDrawableElementsForTopAxis():[]}}});var Pw,_le=_(()=>{"use strict";Xt();it();cN();Pw=class extends xg{static{s(this,"BandAxis")}constructor(e,r,n,i,a){super(e,i,a,r),this.categories=n,this.scale=xp().domain(this.categories).range(this.getRange())}setRange(e){super.setRange(e)}recalculateScale(){this.scale=xp().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),V.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(e){return this.scale(e)??this.getRange()[0]}}});var Bw,Ale=_(()=>{"use strict";Xt();cN();Bw=class extends xg{static{s(this,"LinearAxis")}constructor(e,r,n,i,a){super(e,i,a,r),this.domain=n,this.scale=rl().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){let e=[...this.domain];this.axisPosition==="left"&&e.reverse(),this.scale=rl().domain(e).range(this.getRange())}getScaleValue(e){return this.scale(e)}}});function uN(t,e,r,n){let i=new vg(n);return Nw(t)?new Pw(e,r,t.categories,t.title,i):new Bw(e,r,[t.min,t.max],t.title,i)}var Lle=_(()=>{"use strict";Ow();lN();_le();Ale();s(uN,"getAxis")});function Dle(t,e,r,n){let i=new vg(n);return new hN(i,t,e,r)}var hN,Rle=_(()=>{"use strict";lN();hN=class{constructor(e,r,n,i){this.textDimensionCalculator=e;this.chartConfig=r;this.chartData=n;this.chartThemeConfig=i;this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}static{s(this,"ChartTitle")}setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}calculateSpace(e){let r=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),n=Math.max(r.width,e.width),i=r.height+2*this.chartConfig.titlePadding;return r.width<=n&&r.height<=i&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=n,this.boundingRect.height=i,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){let e=[];return this.showChartTitle&&e.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),e}};s(Dle,"getChartTitleComponent")});var Fw,Mle=_(()=>{"use strict";Xt();Fw=class{constructor(e,r,n,i,a){this.plotData=e;this.xAxis=r;this.yAxis=n;this.orientation=i;this.plotIndex=a}static{s(this,"LinePlot")}getDrawableElement(){let e=this.plotData.data.map(n=>[this.xAxis.getScaleValue(n[0]),this.yAxis.getScaleValue(n[1])]),r;return this.orientation==="horizontal"?r=ra().y(n=>n[0]).x(n=>n[1])(e):r=ra().x(n=>n[0]).y(n=>n[1])(e),r?[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:r,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}]:[]}}});var zw,Ile=_(()=>{"use strict";zw=class{constructor(e,r,n,i,a,o){this.barData=e;this.boundingRect=r;this.xAxis=n;this.yAxis=i;this.orientation=a;this.plotIndex=o}static{s(this,"BarPlot")}getDrawableElement(){let e=this.barData.data.map(a=>[this.xAxis.getScaleValue(a[0]),this.yAxis.getScaleValue(a[1])]),n=Math.min(this.xAxis.getAxisOuterPadding()*2,this.xAxis.getTickDistance())*(1-.05),i=n/2;return this.orientation==="horizontal"?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:e.map(a=>({x:this.boundingRect.x,y:a[0]-i,height:n,width:a[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:e.map(a=>({x:a[0]-i,y:a[1],width:n,height:this.boundingRect.y+this.boundingRect.height-a[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}}});function Nle(t,e,r){return new fN(t,e,r)}var fN,Ole=_(()=>{"use strict";Mle();Ile();fN=class{constructor(e,r,n){this.chartConfig=e;this.chartData=r;this.chartThemeConfig=n;this.boundingRect={x:0,y:0,width:0,height:0}}static{s(this,"BasePlot")}setAxes(e,r){this.xAxis=e,this.yAxis=r}setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}calculateSpace(e){return this.boundingRect.width=e.width,this.boundingRect.height=e.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!(this.xAxis&&this.yAxis))throw Error("Axes must be passed to render Plots");let e=[];for(let[r,n]of this.chartData.plots.entries())switch(n.type){case"line":{let i=new Fw(n,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,r);e.push(...i.getDrawableElement())}break;case"bar":{let i=new zw(n,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,r);e.push(...i.getDrawableElement())}break}return e}};s(Nle,"getPlotComponent")});var $w,Ple=_(()=>{"use strict";Lle();Rle();Ole();Ow();$w=class{constructor(e,r,n,i){this.chartConfig=e;this.chartData=r;this.componentStore={title:Dle(e,r,n,i),plot:Nle(e,r,n),xAxis:uN(r.xAxis,e.xAxis,{titleColor:n.xAxisTitleColor,labelColor:n.xAxisLabelColor,tickColor:n.xAxisTickColor,axisLineColor:n.xAxisLineColor},i),yAxis:uN(r.yAxis,e.yAxis,{titleColor:n.yAxisTitleColor,labelColor:n.yAxisLabelColor,tickColor:n.yAxisTickColor,axisLineColor:n.yAxisLineColor},i)}}static{s(this,"Orchestrator")}calculateVerticalSpace(){let e=this.chartConfig.width,r=this.chartConfig.height,n=0,i=0,a=Math.floor(e*this.chartConfig.plotReservedSpacePercent/100),o=Math.floor(r*this.chartConfig.plotReservedSpacePercent/100),l=this.componentStore.plot.calculateSpace({width:a,height:o});e-=l.width,r-=l.height,l=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:r}),i=l.height,r-=l.height,this.componentStore.xAxis.setAxisPosition("bottom"),l=this.componentStore.xAxis.calculateSpace({width:e,height:r}),r-=l.height,this.componentStore.yAxis.setAxisPosition("left"),l=this.componentStore.yAxis.calculateSpace({width:e,height:r}),n=l.width,e-=l.width,e>0&&(a+=e,e=0),r>0&&(o+=r,r=0),this.componentStore.plot.calculateSpace({width:a,height:o}),this.componentStore.plot.setBoundingBoxXY({x:n,y:i}),this.componentStore.xAxis.setRange([n,n+a]),this.componentStore.xAxis.setBoundingBoxXY({x:n,y:i+o}),this.componentStore.yAxis.setRange([i,i+o]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:i}),this.chartData.plots.some(u=>oN(u))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let e=this.chartConfig.width,r=this.chartConfig.height,n=0,i=0,a=0,o=Math.floor(e*this.chartConfig.plotReservedSpacePercent/100),l=Math.floor(r*this.chartConfig.plotReservedSpacePercent/100),u=this.componentStore.plot.calculateSpace({width:o,height:l});e-=u.width,r-=u.height,u=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:r}),n=u.height,r-=u.height,this.componentStore.xAxis.setAxisPosition("left"),u=this.componentStore.xAxis.calculateSpace({width:e,height:r}),e-=u.width,i=u.width,this.componentStore.yAxis.setAxisPosition("top"),u=this.componentStore.yAxis.calculateSpace({width:e,height:r}),r-=u.height,a=n+u.height,e>0&&(o+=e,e=0),r>0&&(l+=r,r=0),this.componentStore.plot.calculateSpace({width:o,height:l}),this.componentStore.plot.setBoundingBoxXY({x:i,y:a}),this.componentStore.yAxis.setRange([i,i+o]),this.componentStore.yAxis.setBoundingBoxXY({x:i,y:n}),this.componentStore.xAxis.setRange([a,a+l]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:a}),this.chartData.plots.some(h=>oN(h))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){this.chartConfig.chartOrientation==="horizontal"?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();let e=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(let r of Object.values(this.componentStore))e.push(...r.getDrawableElements());return e}}});var Gw,Ble=_(()=>{"use strict";Ple();Gw=class{static{s(this,"XYChartBuilder")}static build(e,r,n,i){return new $w(e,r,n,i).getDrawableElement()}}});function zle(){let t=j0(),e=_r();return ms(t.xyChart,e.themeVariables.xyChart)}function $le(){let t=_r();return ms(dr.xyChart,t.xyChart)}function Gle(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}function mN(t){let e=_r();return $r(t.trim(),e)}function zPe(t){Fle=t}function $Pe(t){t==="horizontal"?K2.chartOrientation="horizontal":K2.chartOrientation="vertical"}function GPe(t){Jr.xAxis.title=mN(t.text)}function Vle(t,e){Jr.xAxis={type:"linear",title:Jr.xAxis.title,min:t,max:e},Vw=!0}function VPe(t){Jr.xAxis={type:"band",title:Jr.xAxis.title,categories:t.map(e=>mN(e.text))},Vw=!0}function UPe(t){Jr.yAxis.title=mN(t.text)}function qPe(t,e){Jr.yAxis={type:"linear",title:Jr.yAxis.title,min:t,max:e},pN=!0}function WPe(t){let e=Math.min(...t),r=Math.max(...t),n=yg(Jr.yAxis)?Jr.yAxis.min:1/0,i=yg(Jr.yAxis)?Jr.yAxis.max:-1/0;Jr.yAxis={type:"linear",title:Jr.yAxis.title,min:Math.min(n,e),max:Math.max(i,r)}}function Ule(t){let e=[];if(t.length===0)return e;if(!Vw){let r=yg(Jr.xAxis)?Jr.xAxis.min:1/0,n=yg(Jr.xAxis)?Jr.xAxis.max:-1/0;Vle(Math.min(r,1),Math.max(n,t.length))}if(pN||WPe(t),Nw(Jr.xAxis)&&(e=Jr.xAxis.categories.map((r,n)=>[r,t[n]])),yg(Jr.xAxis)){let r=Jr.xAxis.min,n=Jr.xAxis.max,i=(n-r)/(t.length-1),a=[];for(let o=r;o<=n;o+=i)a.push(`${o}`);e=a.map((o,l)=>[o,t[l]])}return e}function qle(t){return dN[t===0?0:t%dN.length]}function HPe(t,e){let r=Ule(e);Jr.plots.push({type:"line",strokeFill:qle(j2),strokeWidth:2,data:r}),j2++}function YPe(t,e){let r=Ule(e);Jr.plots.push({type:"bar",fill:qle(j2),data:r}),j2++}function XPe(){if(Jr.plots.length===0)throw Error("No Plot to render, please provide a plot with some data");return Jr.title=Qr(),Gw.build(K2,Jr,Q2,Fle)}function jPe(){return Q2}function KPe(){return K2}var j2,Fle,K2,Q2,Jr,dN,Vw,pN,QPe,Wle,Hle=_(()=>{"use strict";zs();Pl();vb();pr();Qt();Ci();Ble();Ow();j2=0,K2=$le(),Q2=zle(),Jr=Gle(),dN=Q2.plotColorPalette.split(",").map(t=>t.trim()),Vw=!1,pN=!1;s(zle,"getChartDefaultThemeConfig");s($le,"getChartDefaultConfig");s(Gle,"getChartDefaultData");s(mN,"textSanitizer");s(zPe,"setTmpSVGG");s($Pe,"setOrientation");s(GPe,"setXAxisTitle");s(Vle,"setXAxisRangeData");s(VPe,"setXAxisBand");s(UPe,"setYAxisTitle");s(qPe,"setYAxisRangeData");s(WPe,"setYAxisRangeFromPlotData");s(Ule,"transformDataWithoutCategory");s(qle,"getPlotColorFromPalette");s(HPe,"setLineData");s(YPe,"setBarData");s(XPe,"getDrawableElem");s(jPe,"getChartThemeConfig");s(KPe,"getChartConfig");QPe=s(function(){br(),j2=0,K2=$le(),Jr=Gle(),Q2=zle(),dN=Q2.plotColorPalette.split(",").map(t=>t.trim()),Vw=!1,pN=!1},"clear"),Wle={getDrawableElem:XPe,clear:QPe,setAccTitle:Ar,getAccTitle:Gr,setDiagramTitle:an,getDiagramTitle:Qr,getAccDescription:Ur,setAccDescription:Vr,setOrientation:$Pe,setXAxisTitle:GPe,setXAxisRangeData:Vle,setXAxisBand:VPe,setYAxisTitle:UPe,setYAxisRangeData:qPe,setLineData:HPe,setBarData:YPe,setTmpSVGG:zPe,getChartThemeConfig:jPe,getChartConfig:KPe}});var ZPe,Yle,Xle=_(()=>{"use strict";it();p0();Un();ZPe=s((t,e,r,n)=>{let i=n.db,a=i.getChartThemeConfig(),o=i.getChartConfig();function l(v){return v==="top"?"text-before-edge":"middle"}s(l,"getDominantBaseLine");function u(v){return v==="left"?"start":v==="right"?"end":"middle"}s(u,"getTextAnchor");function h(v){return`translate(${v.x}, ${v.y}) rotate(${v.rotation||0})`}s(h,"getTextTransformation"),V.debug(`Rendering xychart chart
`+t);let f=Bo(e),d=f.append("g").attr("class","main"),p=d.append("rect").attr("width",o.width).attr("height",o.height).attr("class","background");xr(f,o.height,o.width,!0),f.attr("viewBox",`0 0 ${o.width} ${o.height}`),p.attr("fill",a.backgroundColor),i.setTmpSVGG(f.append("g").attr("class","mermaid-tmp-group"));let m=i.getDrawableElem(),g={};function y(v){let x=d,b="";for(let[k]of v.entries()){let A=d;k>0&&g[b]&&(A=g[b]),b+=v[k],x=g[b],x||(x=g[b]=A.append("g").attr("class",v[k]))}return x}s(y,"getGroup");for(let v of m){if(v.data.length===0)continue;let x=y(v.groupTexts);switch(v.type){case"rect":x.selectAll("rect").data(v.data).enter().append("rect").attr("x",b=>b.x).attr("y",b=>b.y).attr("width",b=>b.width).attr("height",b=>b.height).attr("fill",b=>b.fill).attr("stroke",b=>b.strokeFill).attr("stroke-width",b=>b.strokeWidth);break;case"text":x.selectAll("text").data(v.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",b=>b.fill).attr("font-size",b=>b.fontSize).attr("dominant-baseline",b=>l(b.verticalPos)).attr("text-anchor",b=>u(b.horizontalPos)).attr("transform",b=>h(b)).text(b=>b.text);break;case"path":x.selectAll("path").data(v.data).enter().append("path").attr("d",b=>b.path).attr("fill",b=>b.fill?b.fill:"none").attr("stroke",b=>b.strokeFill).attr("stroke-width",b=>b.strokeWidth);break}}},"draw"),Yle={draw:ZPe}});var jle={};ur(jle,{diagram:()=>JPe});var JPe,Kle=_(()=>{"use strict";Sle();Hle();Xle();JPe={parser:Cle,db:Wle,renderer:Yle}});var gN,Jle,ece=_(()=>{"use strict";gN=function(){var t=s(function(ce,Z,fe,ne){for(fe=fe||{},ne=ce.length;ne--;fe[ce[ne]]=Z);return fe},"o"),e=[1,3],r=[1,4],n=[1,5],i=[1,6],a=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],o=[1,18],l=[2,7],u=[1,22],h=[1,23],f=[1,24],d=[1,25],p=[1,26],m=[1,27],g=[1,20],y=[1,28],v=[1,29],x=[62,63],b=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],k=[1,47],A=[1,48],w=[1,49],T=[1,50],C=[1,51],E=[1,52],S=[1,53],R=[53,54],D=[1,64],L=[1,60],P=[1,61],M=[1,62],F=[1,63],I=[1,65],O=[1,69],z=[1,70],N=[1,67],U=[1,68],$=[5,8,9,11,13,31,32,33,34,35,36,44,62,63],W={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,requirementType:17,requirementName:18,STRUCT_START:19,requirementBody:20,ID:21,COLONSEP:22,id:23,TEXT:24,text:25,RISK:26,riskLevel:27,VERIFYMTHD:28,verifyType:29,STRUCT_STOP:30,REQUIREMENT:31,FUNCTIONAL_REQUIREMENT:32,INTERFACE_REQUIREMENT:33,PERFORMANCE_REQUIREMENT:34,PHYSICAL_REQUIREMENT:35,DESIGN_CONSTRAINT:36,LOW_RISK:37,MED_RISK:38,HIGH_RISK:39,VERIFY_ANALYSIS:40,VERIFY_DEMONSTRATION:41,VERIFY_INSPECTION:42,VERIFY_TEST:43,ELEMENT:44,elementName:45,elementBody:46,TYPE:47,type:48,DOCREF:49,ref:50,END_ARROW_L:51,relationship:52,LINE:53,END_ARROW_R:54,CONTAINS:55,COPIES:56,DERIVES:57,SATISFIES:58,VERIFIES:59,REFINES:60,TRACES:61,unqString:62,qString:63,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",19:"STRUCT_START",21:"ID",22:"COLONSEP",24:"TEXT",26:"RISK",28:"VERIFYMTHD",30:"STRUCT_STOP",31:"REQUIREMENT",32:"FUNCTIONAL_REQUIREMENT",33:"INTERFACE_REQUIREMENT",34:"PERFORMANCE_REQUIREMENT",35:"PHYSICAL_REQUIREMENT",36:"DESIGN_CONSTRAINT",37:"LOW_RISK",38:"MED_RISK",39:"HIGH_RISK",40:"VERIFY_ANALYSIS",41:"VERIFY_DEMONSTRATION",42:"VERIFY_INSPECTION",43:"VERIFY_TEST",44:"ELEMENT",47:"TYPE",49:"DOCREF",51:"END_ARROW_L",53:"LINE",54:"END_ARROW_R",55:"CONTAINS",56:"COPIES",57:"DERIVES",58:"SATISFIES",59:"VERIFIES",60:"REFINES",61:"TRACES",62:"unqString",63:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[14,5],[20,5],[20,5],[20,5],[20,5],[20,2],[20,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[27,1],[27,1],[27,1],[29,1],[29,1],[29,1],[29,1],[15,5],[46,5],[46,5],[46,2],[46,1],[16,5],[16,5],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[18,1],[18,1],[23,1],[23,1],[25,1],[25,1],[45,1],[45,1],[48,1],[48,1],[50,1],[50,1]],performAction:s(function(Z,fe,ne,H,Q,K,re){var ie=K.length-1;switch(Q){case 4:this.$=K[ie].trim(),H.setAccTitle(this.$);break;case 5:case 6:this.$=K[ie].trim(),H.setAccDescription(this.$);break;case 7:this.$=[];break;case 13:H.addRequirement(K[ie-3],K[ie-4]);break;case 14:H.setNewReqId(K[ie-2]);break;case 15:H.setNewReqText(K[ie-2]);break;case 16:H.setNewReqRisk(K[ie-2]);break;case 17:H.setNewReqVerifyMethod(K[ie-2]);break;case 20:this.$=H.RequirementType.REQUIREMENT;break;case 21:this.$=H.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 22:this.$=H.RequirementType.INTERFACE_REQUIREMENT;break;case 23:this.$=H.RequirementType.PERFORMANCE_REQUIREMENT;break;case 24:this.$=H.RequirementType.PHYSICAL_REQUIREMENT;break;case 25:this.$=H.RequirementType.DESIGN_CONSTRAINT;break;case 26:this.$=H.RiskLevel.LOW_RISK;break;case 27:this.$=H.RiskLevel.MED_RISK;break;case 28:this.$=H.RiskLevel.HIGH_RISK;break;case 29:this.$=H.VerifyType.VERIFY_ANALYSIS;break;case 30:this.$=H.VerifyType.VERIFY_DEMONSTRATION;break;case 31:this.$=H.VerifyType.VERIFY_INSPECTION;break;case 32:this.$=H.VerifyType.VERIFY_TEST;break;case 33:H.addElement(K[ie-3]);break;case 34:H.setNewElementType(K[ie-2]);break;case 35:H.setNewElementDocRef(K[ie-2]);break;case 38:H.addRelationship(K[ie-2],K[ie],K[ie-4]);break;case 39:H.addRelationship(K[ie-2],K[ie-4],K[ie]);break;case 40:this.$=H.Relationships.CONTAINS;break;case 41:this.$=H.Relationships.COPIES;break;case 42:this.$=H.Relationships.DERIVES;break;case 43:this.$=H.Relationships.SATISFIES;break;case 44:this.$=H.Relationships.VERIFIES;break;case 45:this.$=H.Relationships.REFINES;break;case 46:this.$=H.Relationships.TRACES;break}},"anonymous"),table:[{3:1,4:2,6:e,9:r,11:n,13:i},{1:[3]},{3:8,4:2,5:[1,7],6:e,9:r,11:n,13:i},{5:[1,9]},{10:[1,10]},{12:[1,11]},t(a,[2,6]),{3:12,4:2,6:e,9:r,11:n,13:i},{1:[2,2]},{4:17,5:o,7:13,8:l,9:r,11:n,13:i,14:14,15:15,16:16,17:19,23:21,31:u,32:h,33:f,34:d,35:p,36:m,44:g,62:y,63:v},t(a,[2,4]),t(a,[2,5]),{1:[2,1]},{8:[1,30]},{4:17,5:o,7:31,8:l,9:r,11:n,13:i,14:14,15:15,16:16,17:19,23:21,31:u,32:h,33:f,34:d,35:p,36:m,44:g,62:y,63:v},{4:17,5:o,7:32,8:l,9:r,11:n,13:i,14:14,15:15,16:16,17:19,23:21,31:u,32:h,33:f,34:d,35:p,36:m,44:g,62:y,63:v},{4:17,5:o,7:33,8:l,9:r,11:n,13:i,14:14,15:15,16:16,17:19,23:21,31:u,32:h,33:f,34:d,35:p,36:m,44:g,62:y,63:v},{4:17,5:o,7:34,8:l,9:r,11:n,13:i,14:14,15:15,16:16,17:19,23:21,31:u,32:h,33:f,34:d,35:p,36:m,44:g,62:y,63:v},{4:17,5:o,7:35,8:l,9:r,11:n,13:i,14:14,15:15,16:16,17:19,23:21,31:u,32:h,33:f,34:d,35:p,36:m,44:g,62:y,63:v},{18:36,62:[1,37],63:[1,38]},{45:39,62:[1,40],63:[1,41]},{51:[1,42],53:[1,43]},t(x,[2,20]),t(x,[2,21]),t(x,[2,22]),t(x,[2,23]),t(x,[2,24]),t(x,[2,25]),t(b,[2,49]),t(b,[2,50]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{19:[1,44]},{19:[2,47]},{19:[2,48]},{19:[1,45]},{19:[2,53]},{19:[2,54]},{52:46,55:k,56:A,57:w,58:T,59:C,60:E,61:S},{52:54,55:k,56:A,57:w,58:T,59:C,60:E,61:S},{5:[1,55]},{5:[1,56]},{53:[1,57]},t(R,[2,40]),t(R,[2,41]),t(R,[2,42]),t(R,[2,43]),t(R,[2,44]),t(R,[2,45]),t(R,[2,46]),{54:[1,58]},{5:D,20:59,21:L,24:P,26:M,28:F,30:I},{5:O,30:z,46:66,47:N,49:U},{23:71,62:y,63:v},{23:72,62:y,63:v},t($,[2,13]),{22:[1,73]},{22:[1,74]},{22:[1,75]},{22:[1,76]},{5:D,20:77,21:L,24:P,26:M,28:F,30:I},t($,[2,19]),t($,[2,33]),{22:[1,78]},{22:[1,79]},{5:O,30:z,46:80,47:N,49:U},t($,[2,37]),t($,[2,38]),t($,[2,39]),{23:81,62:y,63:v},{25:82,62:[1,83],63:[1,84]},{27:85,37:[1,86],38:[1,87],39:[1,88]},{29:89,40:[1,90],41:[1,91],42:[1,92],43:[1,93]},t($,[2,18]),{48:94,62:[1,95],63:[1,96]},{50:97,62:[1,98],63:[1,99]},t($,[2,36]),{5:[1,100]},{5:[1,101]},{5:[2,51]},{5:[2,52]},{5:[1,102]},{5:[2,26]},{5:[2,27]},{5:[2,28]},{5:[1,103]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[2,32]},{5:[1,104]},{5:[2,55]},{5:[2,56]},{5:[1,105]},{5:[2,57]},{5:[2,58]},{5:D,20:106,21:L,24:P,26:M,28:F,30:I},{5:D,20:107,21:L,24:P,26:M,28:F,30:I},{5:D,20:108,21:L,24:P,26:M,28:F,30:I},{5:D,20:109,21:L,24:P,26:M,28:F,30:I},{5:O,30:z,46:110,47:N,49:U},{5:O,30:z,46:111,47:N,49:U},t($,[2,14]),t($,[2,15]),t($,[2,16]),t($,[2,17]),t($,[2,34]),t($,[2,35])],defaultActions:{8:[2,2],12:[2,1],30:[2,3],31:[2,8],32:[2,9],33:[2,10],34:[2,11],35:[2,12],37:[2,47],38:[2,48],40:[2,53],41:[2,54],83:[2,51],84:[2,52],86:[2,26],87:[2,27],88:[2,28],90:[2,29],91:[2,30],92:[2,31],93:[2,32],95:[2,55],96:[2,56],98:[2,57],99:[2,58]},parseError:s(function(Z,fe){if(fe.recoverable)this.trace(Z);else{var ne=new Error(Z);throw ne.hash=fe,ne}},"parseError"),parse:s(function(Z){var fe=this,ne=[0],H=[],Q=[null],K=[],re=this.table,ie="",ye=0,j=0,De=0,oe=2,Re=1,Pe=K.slice.call(arguments,1),Se=Object.create(this.lexer),Ue={yy:{}};for(var Oe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Oe)&&(Ue.yy[Oe]=this.yy[Oe]);Se.setInput(Z,Ue.yy),Ue.yy.lexer=Se,Ue.yy.parser=this,typeof Se.yylloc>"u"&&(Se.yylloc={});var _e=Se.yylloc;K.push(_e);var he=Se.options&&Se.options.ranges;typeof Ue.yy.parseError=="function"?this.parseError=Ue.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function q(Je){ne.length=ne.length-2*Je,Q.length=Q.length-Je,K.length=K.length-Je}s(q,"popStack");function se(){var Je;return Je=H.pop()||Se.lex()||Re,typeof Je!="number"&&(Je instanceof Array&&(H=Je,Je=H.pop()),Je=fe.symbols_[Je]||Je),Je}s(se,"lex");for(var ue,X,ae,pe,de,Ie,Ne={},Be,ze,qe,Fe;;){if(ae=ne[ne.length-1],this.defaultActions[ae]?pe=this.defaultActions[ae]:((ue===null||typeof ue>"u")&&(ue=se()),pe=re[ae]&&re[ae][ue]),typeof pe>"u"||!pe.length||!pe[0]){var we="";Fe=[];for(Be in re[ae])this.terminals_[Be]&&Be>oe&&Fe.push("'"+this.terminals_[Be]+"'");Se.showPosition?we="Parse error on line "+(ye+1)+`:
`+Se.showPosition()+`
Expecting `+Fe.join(", ")+", got '"+(this.terminals_[ue]||ue)+"'":we="Parse error on line "+(ye+1)+": Unexpected "+(ue==Re?"end of input":"'"+(this.terminals_[ue]||ue)+"'"),this.parseError(we,{text:Se.match,token:this.terminals_[ue]||ue,line:Se.yylineno,loc:_e,expected:Fe})}if(pe[0]instanceof Array&&pe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ae+", token: "+ue);switch(pe[0]){case 1:ne.push(ue),Q.push(Se.yytext),K.push(Se.yylloc),ne.push(pe[1]),ue=null,X?(ue=X,X=null):(j=Se.yyleng,ie=Se.yytext,ye=Se.yylineno,_e=Se.yylloc,De>0&&De--);break;case 2:if(ze=this.productions_[pe[1]][1],Ne.$=Q[Q.length-ze],Ne._$={first_line:K[K.length-(ze||1)].first_line,last_line:K[K.length-1].last_line,first_column:K[K.length-(ze||1)].first_column,last_column:K[K.length-1].last_column},he&&(Ne._$.range=[K[K.length-(ze||1)].range[0],K[K.length-1].range[1]]),Ie=this.performAction.apply(Ne,[ie,j,ye,Ue.yy,pe[1],Q,K].concat(Pe)),typeof Ie<"u")return Ie;ze&&(ne=ne.slice(0,-1*ze*2),Q=Q.slice(0,-1*ze),K=K.slice(0,-1*ze)),ne.push(this.productions_[pe[1]][0]),Q.push(Ne.$),K.push(Ne._$),qe=re[ne[ne.length-2]][ne[ne.length-1]],ne.push(qe);break;case 3:return!0}}return!0},"parse")},ee=function(){var ce={EOF:1,parseError:s(function(fe,ne){if(this.yy.parser)this.yy.parser.parseError(fe,ne);else throw new Error(fe)},"parseError"),setInput:s(function(Z,fe){return this.yy=fe||this.yy||{},this._input=Z,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:s(function(){var Z=this._input[0];this.yytext+=Z,this.yyleng++,this.offset++,this.match+=Z,this.matched+=Z;var fe=Z.match(/(?:\r\n?|\n).*/g);return fe?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Z},"input"),unput:s(function(Z){var fe=Z.length,ne=Z.split(/(?:\r\n?|\n)/g);this._input=Z+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-fe),this.offset-=fe;var H=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),ne.length-1&&(this.yylineno-=ne.length-1);var Q=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:ne?(ne.length===H.length?this.yylloc.first_column:0)+H[H.length-ne.length].length-ne[0].length:this.yylloc.first_column-fe},this.options.ranges&&(this.yylloc.range=[Q[0],Q[0]+this.yyleng-fe]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(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).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(Z){this.unput(this.match.slice(Z))},"less"),pastInput:s(function(){var Z=this.matched.substr(0,this.matched.length-this.match.length);return(Z.length>20?"...":"")+Z.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var Z=this.match;return Z.length<20&&(Z+=this._input.substr(0,20-Z.length)),(Z.substr(0,20)+(Z.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var Z=this.pastInput(),fe=new Array(Z.length+1).join("-");return Z+this.upcomingInput()+`
`+fe+"^"},"showPosition"),test_match:s(function(Z,fe){var ne,H,Q;if(this.options.backtrack_lexer&&(Q={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&&(Q.yylloc.range=this.yylloc.range.slice(0))),H=Z[0].match(/(?:\r\n?|\n).*/g),H&&(this.yylineno+=H.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:H?H[H.length-1].length-H[H.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Z[0].length},this.yytext+=Z[0],this.match+=Z[0],this.matches=Z,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(Z[0].length),this.matched+=Z[0],ne=this.performAction.call(this,this.yy,this,fe,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ne)return ne;if(this._backtrack){for(var K in Q)this[K]=Q[K];return!1}return!1},"test_match"),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Z,fe,ne,H;this._more||(this.yytext="",this.match="");for(var Q=this._currentRules(),K=0;Kfe[0].length)){if(fe=ne,H=K,this.options.backtrack_lexer){if(Z=this.test_match(ne,Q[K]),Z!==!1)return Z;if(this._backtrack){fe=!1;continue}else return!1}else if(!this.options.flex)break}return fe?(Z=this.test_match(fe,Q[H]),Z!==!1?Z:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var fe=this.next();return fe||this.lex()},"lex"),begin:s(function(fe){this.conditionStack.push(fe)},"begin"),popState:s(function(){var fe=this.conditionStack.length-1;return fe>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:s(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:s(function(fe){return fe=this.conditionStack.length-1-Math.abs(fe||0),fe>=0?this.conditionStack[fe]:"INITIAL"},"topState"),pushState:s(function(fe){this.begin(fe)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s(function(fe,ne,H,Q){var K=Q;switch(H){case 0:return"title";case 1:return this.begin("acc_title"),9;break;case 2:return this.popState(),"acc_title_value";break;case 3:return this.begin("acc_descr"),11;break;case 4:return this.popState(),"acc_descr_value";break;case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 5;case 9:break;case 10:break;case 11:break;case 12:return 8;case 13:return 6;case 14:return 19;case 15:return 30;case 16:return 22;case 17:return 21;case 18:return 24;case 19:return 26;case 20:return 28;case 21:return 31;case 22:return 32;case 23:return 33;case 24:return 34;case 25:return 35;case 26:return 36;case 27:return 37;case 28:return 38;case 29:return 39;case 30:return 40;case 31:return 41;case 32:return 42;case 33:return 43;case 34:return 44;case 35:return 55;case 36:return 56;case 37:return 57;case 38:return 58;case 39:return 59;case 40:return 60;case 41:return 61;case 42:return 47;case 43:return 49;case 44:return 51;case 45:return 54;case 46:return 53;case 47:this.begin("string");break;case 48:this.popState();break;case 49:return"qString";case 50:return ne.yytext=ne.yytext.trim(),62;break}},"anonymous"),rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^\r\n\{\<\>\-\=]*)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},unqString:{rules:[],inclusive:!1},token:{rules:[],inclusive:!1},string:{rules:[48,49],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,50],inclusive:!0}}};return ce}();W.lexer=ee;function te(){this.yy={}}return s(te,"Parser"),te.prototype=W,W.Parser=te,new te}();gN.parser=gN;Jle=gN});var yN,Ds,Z2,af,J2,nBe,iBe,aBe,sBe,oBe,lBe,cBe,uBe,hBe,fBe,dBe,pBe,mBe,gBe,yBe,vBe,xBe,tce,rce=_(()=>{"use strict";gt();it();Ci();yN=[],Ds={},Z2=new Map,af={},J2=new Map,nBe={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},iBe={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},aBe={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},sBe={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},oBe=s((t,e)=>(Z2.has(t)||Z2.set(t,{name:t,type:e,id:Ds.id,text:Ds.text,risk:Ds.risk,verifyMethod:Ds.verifyMethod}),Ds={},Z2.get(t)),"addRequirement"),lBe=s(()=>Z2,"getRequirements"),cBe=s(t=>{Ds!==void 0&&(Ds.id=t)},"setNewReqId"),uBe=s(t=>{Ds!==void 0&&(Ds.text=t)},"setNewReqText"),hBe=s(t=>{Ds!==void 0&&(Ds.risk=t)},"setNewReqRisk"),fBe=s(t=>{Ds!==void 0&&(Ds.verifyMethod=t)},"setNewReqVerifyMethod"),dBe=s(t=>(J2.has(t)||(J2.set(t,{name:t,type:af.type,docRef:af.docRef}),V.info("Added new requirement: ",t)),af={},J2.get(t)),"addElement"),pBe=s(()=>J2,"getElements"),mBe=s(t=>{af!==void 0&&(af.type=t)},"setNewElementType"),gBe=s(t=>{af!==void 0&&(af.docRef=t)},"setNewElementDocRef"),yBe=s((t,e,r)=>{yN.push({type:t,src:e,dst:r})},"addRelationship"),vBe=s(()=>yN,"getRelationships"),xBe=s(()=>{yN=[],Ds={},Z2=new Map,af={},J2=new Map,br()},"clear"),tce={RequirementType:nBe,RiskLevel:iBe,VerifyType:aBe,Relationships:sBe,getConfig:s(()=>le().req,"getConfig"),addRequirement:oBe,getRequirements:lBe,setNewReqId:cBe,setNewReqText:uBe,setNewReqRisk:hBe,setNewReqVerifyMethod:fBe,setAccTitle:Ar,getAccTitle:Gr,setAccDescription:Vr,getAccDescription:Ur,addElement:dBe,getElements:pBe,setNewElementType:mBe,setNewElementDocRef:gBe,addRelationship:yBe,getRelationships:vBe,clear:xBe}});var bBe,nce,ice=_(()=>{"use strict";bBe=s(t=>`
marker {
fill: ${t.relationColor};
stroke: ${t.relationColor};
}
marker.cross {
stroke: ${t.lineColor};
}
svg {
font-family: ${t.fontFamily};
font-size: ${t.fontSize};
}
.reqBox {
fill: ${t.requirementBackground};
fill-opacity: 1.0;
stroke: ${t.requirementBorderColor};
stroke-width: ${t.requirementBorderSize};
}
.reqTitle, .reqLabel{
fill: ${t.requirementTextColor};
}
.reqLabelBox {
fill: ${t.relationLabelBackground};
fill-opacity: 1.0;
}
.req-title-line {
stroke: ${t.requirementBorderColor};
stroke-width: ${t.requirementBorderSize};
}
.relationshipLine {
stroke: ${t.relationColor};
stroke-width: 1;
}
.relationshipLabel {
fill: ${t.relationLabelColor};
}
`,"getStyles"),nce=bBe});var vN,kBe,xN,ace=_(()=>{"use strict";vN={CONTAINS:"contains",ARROW:"arrow"},kBe=s((t,e)=>{let r=t.append("defs").append("marker").attr("id",vN.CONTAINS+"_line_ending").attr("refX",0).attr("refY",e.line_height/2).attr("markerWidth",e.line_height).attr("markerHeight",e.line_height).attr("orient","auto").append("g");r.append("circle").attr("cx",e.line_height/2).attr("cy",e.line_height/2).attr("r",e.line_height/2).attr("fill","none"),r.append("line").attr("x1",0).attr("x2",e.line_height).attr("y1",e.line_height/2).attr("y2",e.line_height/2).attr("stroke-width",1),r.append("line").attr("y1",0).attr("y2",e.line_height).attr("x1",e.line_height/2).attr("x2",e.line_height/2).attr("stroke-width",1),t.append("defs").append("marker").attr("id",vN.ARROW+"_line_ending").attr("refX",e.line_height).attr("refY",.5*e.line_height).attr("markerWidth",e.line_height).attr("markerHeight",e.line_height).attr("orient","auto").append("path").attr("d",`M0,0
L${e.line_height},${e.line_height/2}
M${e.line_height},${e.line_height/2}
L0,${e.line_height}`).attr("stroke-width",1)},"insertLineEndings"),xN={ReqMarkers:vN,insertLineEndings:kBe}});var Qn,sce,oce,lce,cce,wBe,TBe,EBe,CBe,SBe,_Be,bg,ABe,uce,hce=_(()=>{"use strict";Xt();Dd();la();gt();it();Un();Qt();ace();Qn={},sce=0,oce=s((t,e)=>t.insert("rect","#"+e).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",Qn.rect_min_width+"px").attr("height",Qn.rect_min_height+"px"),"newRectNode"),lce=s((t,e,r)=>{let n=Qn.rect_min_width/2,i=t.append("text").attr("class","req reqLabel reqTitle").attr("id",e).attr("x",n).attr("y",Qn.rect_padding).attr("dominant-baseline","hanging"),a=0;r.forEach(h=>{a==0?i.append("tspan").attr("text-anchor","middle").attr("x",Qn.rect_min_width/2).attr("dy",0).text(h):i.append("tspan").attr("text-anchor","middle").attr("x",Qn.rect_min_width/2).attr("dy",Qn.line_height*.75).text(h),a++});let o=1.5*Qn.rect_padding,l=a*Qn.line_height*.75,u=o+l;return t.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",Qn.rect_min_width).attr("y1",u).attr("y2",u),{titleNode:i,y:u}},"newTitleNode"),cce=s((t,e,r,n)=>{let i=t.append("text").attr("class","req reqLabel").attr("id",e).attr("x",Qn.rect_padding).attr("y",n).attr("dominant-baseline","hanging"),a=0,o=30,l=[];return r.forEach(u=>{let h=u.length;for(;h>o&&a<3;){let f=u.substring(0,o);u=u.substring(o,u.length),h=u.length,l[l.length]=f,a++}if(a==3){let f=l[l.length-1];l[l.length-1]=f.substring(0,f.length-4)+"..."}else l[l.length]=u;a=0}),l.forEach(u=>{i.append("tspan").attr("x",Qn.rect_padding).attr("dy",Qn.line_height).text(u)}),i},"newBodyNode"),wBe=s((t,e,r,n)=>{let i=e.node().getTotalLength(),a=e.node().getPointAtLength(i*.5),o="rel"+sce;sce++;let u=t.append("text").attr("class","req relationshipLabel").attr("id",o).attr("x",a.x).attr("y",a.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(n).node().getBBox();t.insert("rect","#"+o).attr("class","req reqLabelBox").attr("x",a.x-u.width/2).attr("y",a.y-u.height/2).attr("width",u.width).attr("height",u.height).attr("fill","white").attr("fill-opacity","85%")},"addEdgeLabel"),TBe=s(function(t,e,r,n,i){let a=r.edge(bg(e.src),bg(e.dst)),o=ra().x(function(u){return u.x}).y(function(u){return u.y}),l=t.insert("path","#"+n).attr("class","er relationshipLine").attr("d",o(a.points)).attr("fill","none");e.type==i.db.Relationships.CONTAINS?l.attr("marker-start","url("+$e.getUrl(Qn.arrowMarkerAbsolute)+"#"+e.type+"_line_ending)"):(l.attr("stroke-dasharray","10,7"),l.attr("marker-end","url("+$e.getUrl(Qn.arrowMarkerAbsolute)+"#"+xN.ReqMarkers.ARROW+"_line_ending)")),wBe(t,l,Qn,`<<${e.type}>>`)},"drawRelationshipFromLayout"),EBe=s((t,e,r)=>{t.forEach((n,i)=>{i=bg(i),V.info("Added new requirement: ",i);let a=r.append("g").attr("id",i),o="req-"+i,l=oce(a,o),u=[],h=lce(a,i+"_title",[`<<${n.type}>>`,`${n.name}`]);u.push(h.titleNode);let f=cce(a,i+"_body",[`Id: ${n.id}`,`Text: ${n.text}`,`Risk: ${n.risk}`,`Verification: ${n.verifyMethod}`],h.y);u.push(f);let d=l.node().getBBox();e.setNode(i,{width:d.width,height:d.height,shape:"rect",id:i})})},"drawReqs"),CBe=s((t,e,r)=>{t.forEach((n,i)=>{let a=bg(i),o=r.append("g").attr("id",a),l="element-"+a,u=oce(o,l),h=[],f=lce(o,l+"_title",["<